/* ==========================================================================
   TriaView Premium Legal Center Stylesheet (legal_v2.css)
   ========================================================================== */

/* 1. 기본 레이아웃 및 다크 테마 배경 */
body.legal-page-body {
    background-color: #090a0f !important;
    font-family: 'Pretendard', -apple-system, sans-serif;
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    position: relative;
    overflow-x: hidden;
    padding-bottom: 80px;
}

/* 법률 센터 고유 메쉬 그라디언트 배경 */
.legal-bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at 10% 20%, rgba(255, 215, 0, 0.05), transparent 45%),
                radial-gradient(circle at 90% 80%, rgba(59, 130, 246, 0.05), transparent 50%),
                radial-gradient(circle at 50% 50%, rgba(168, 85, 247, 0.03), transparent 60%);
    filter: blur(60px);
    z-index: -1;
}

/* 2. 중앙 법률 센터 메인 카드 컨테이너 (Glassmorphism) */
.legal-container {
    width: 92%;
    max-width: 900px;
    margin: 60px auto 40px auto;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: 28px;
    padding: 50px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 5;
    animation: fadeInContainer 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

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

/* 3. 헤더 영역 및 타이틀 데코 */
.legal-header {
    text-align: center;
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 30px;
}

.legal-header-glow {
    font-size: 13px;
    font-weight: 800;
    color: #ffd700;
    letter-spacing: 3px;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 12px;
}

.legal-header h1 {
    font-size: 38px;
    font-weight: 800;
    letter-spacing: -1.5px;
    background: linear-gradient(135deg, #ffffff 40%, rgba(255, 255, 255, 0.7) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 14px;
}

.legal-version-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

/* 4. 고해상도 다국어 토글 탭 */
.legal-tab-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.legal-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 5px;
    border-radius: 30px;
    gap: 4px;
}

.legal-tab-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    padding: 10px 24px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    display: flex;
    align-items: center;
    gap: 8px;
}

.legal-tab-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

.legal-tab-btn.active {
    background: #ffd700;
    color: #06070a;
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.25);
}

/* 5. 법률 콘텐츠 본문 가독성 스타일링 */
.legal-content-body {
    display: none; /* 기본 숨김, JS로 active 상태 제어 */
    line-height: 1.8;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.75);
    animation: fadeInTab 0.4s ease;
}

.legal-content-body.active {
    display: block;
}

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

/* 타이포그래피 세부 요소 */
.legal-content-body h2 {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin-top: 36px;
    margin-bottom: 14px;
    border-left: 3px solid #ffd700;
    padding-left: 14px;
}

.legal-content-body h3 {
    font-size: 16px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 24px;
    margin-bottom: 8px;
}

.legal-content-body p {
    margin-bottom: 18px;
    word-break: keep-all;
}

.legal-content-body ul, .legal-content-body ol {
    margin-left: 20px;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.legal-content-body li {
    padding-left: 4px;
}

.legal-content-body strong {
    color: #ffffff;
    font-weight: 600;
}

/* 특별 정보 고지 상자 (Warning / Notification box) */
.legal-notice-box {
    background: rgba(255, 215, 0, 0.03);
    border: 1px solid rgba(255, 215, 0, 0.15);
    border-radius: 16px;
    padding: 24px;
    margin: 30px 0;
    font-size: 14px;
}

.legal-notice-box h4 {
    color: #ffd700;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.legal-notice-box p {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.65);
}

/* 6. 홈으로 돌아가기 버튼 */
.btn-legal-home {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 12px 28px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 30px;
}

.btn-legal-home:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-legal-home svg {
    transition: transform 0.3s ease;
}

.btn-legal-home:hover svg {
    transform: translateX(-4px);
}

/* ==========================================================================
   7. 모바일 반응형 레이아웃 (768px 이하)
   ========================================================================== */
@media (max-width: 768px) {
    .legal-container {
        padding: 30px 20px;
        margin-top: 30px;
        border-radius: 20px;
    }

    .legal-header h1 {
        font-size: 26px;
    }

    .legal-content-body h2 {
        font-size: 17px;
        margin-top: 28px;
    }

    .legal-tab-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
}
