/**
 * 이용약관 및 개인정보처리방침 모달 스타일
 * v17.0 - 2026-02-07
 */

/* 모달 오버레이 */
.terms-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10001;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(4px);
    padding: 1rem;
}

.terms-modal.show {
    opacity: 1;
}

/* 모달 컨텐츠 */
.terms-modal-content {
    background: white;
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* 모달 헤더 */
.terms-modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    text-align: center;
    position: relative;
    border-radius: 16px 16px 0 0;
}

.terms-modal-header i:first-child {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    display: block;
}

.terms-modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.terms-modal-header .close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.terms-modal-header .close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* 모달 본문 */
.terms-modal-body {
    padding: 2rem;
}

/* 공지 박스 */
.notice-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.notice-box i {
    font-size: 2rem;
    flex-shrink: 0;
}

.notice-box p {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* 안내 텍스트 */
.notice-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 2rem;
    text-align: center;
}

.notice-text strong {
    color: #00C73C;
    font-weight: 700;
}

/* 약관 안내 */
.terms-notice {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid #667eea;
    margin-bottom: 2rem;
}

.terms-notice.privacy {
    border-left-color: #764ba2;
}

.terms-notice h4 {
    margin: 0 0 1rem 0;
    font-size: 1.2rem;
    color: #333;
}

.terms-notice p {
    margin: 0;
    line-height: 1.8;
    color: #555;
}

.terms-notice .sub-text {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #888;
    font-style: italic;
}

/* 네이버 링크 */
.naver-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.naver-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 1.5rem;
    background: white;
    border: 2px solid #00C73C;
    border-radius: 12px;
    text-decoration: none;
    color: #00C73C;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
}

.naver-link:hover {
    background: #00C73C;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 199, 60, 0.3);
}

.naver-link i:first-child {
    font-size: 1.5rem;
}

.naver-link i:last-child {
    margin-left: auto;
    font-size: 0.9rem;
}

/* 정보 안내 */
.info-notice {
    background: #e8f5e9;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.info-notice i {
    color: #4caf50;
    font-size: 1.5rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.info-notice p {
    margin: 0;
    color: #2e7d32;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* 반응형 */
@media (max-width: 640px) {
    .terms-modal-content {
        max-width: 100%;
        width: 95%;
    }

    .terms-modal-header {
        padding: 1.5rem;
    }

    .terms-modal-header i:first-child {
        font-size: 2.5rem;
    }

    .terms-modal-header h3 {
        font-size: 1.3rem;
    }

    .terms-modal-body {
        padding: 1.5rem;
    }

    .notice-box {
        flex-direction: column;
        text-align: center;
    }

    .notice-box p {
        font-size: 1rem;
    }

    .notice-text {
        font-size: 1rem;
    }

    .naver-link {
        padding: 1rem;
        font-size: 0.9rem;
    }
}

/* 다크모드 */
@media (prefers-color-scheme: dark) {
    .terms-modal-content {
        background: #2d2d2d;
        color: #e0e0e0;
    }

    .notice-text {
        color: #e0e0e0;
    }

    .terms-notice {
        background: #3a3a3a;
    }

    .terms-notice h4 {
        color: #e0e0e0;
    }

    .terms-notice p {
        color: #b0b0b0;
    }

    .naver-link {
        background: #3a3a3a;
        border-color: #00C73C;
    }

    .naver-link:hover {
        background: #00C73C;
        color: white;
    }
}
