

:root {
    --bg-color: #0f0f13;
    --card-bg: rgba(16, 16, 24, 0.55);
    --text-primary: #ffffff;
    --text-secondary: #c8c8d8;
    --text-muted: #7a7a90;
    --accent-purple: #764ba2;
    --accent-blue: #667eea;
    --accent-pink: #e94a8a;
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-border-hover: rgba(255, 255, 255, 0.15);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.35);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.75;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(ellipse at 15% 10%, rgba(102, 126, 234, 0.07) 0%, transparent 50%),
        radial-gradient(ellipse at 85% 90%, rgba(118, 75, 162, 0.07) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(233, 74, 138, 0.03) 0%, transparent 60%);
    pointer-events: none;
    animation: bgShift 20s ease-in-out infinite alternate;
}

@keyframes bgShift {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}


.legal-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 50;
    background: rgba(15, 15, 19, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--glass-border);
}

.legal-header .header-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.legal-header .logo {
    font-size: 1.4rem;
    font-weight: 700;
    text-decoration: none;
    color: #fff;
    letter-spacing: 0.5px;
    transition: transform 0.3s ease;
}

.legal-header .logo:hover { transform: scale(1.03); }

.legal-header .logo span {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.legal-header .back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 8px 18px;
    border-radius: 50px;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.3s ease;
}

.legal-header .back-link:hover {
    color: #fff;
    border-color: var(--glass-border-hover);
    background: rgba(255, 255, 255, 0.06);
    transform: translateX(-4px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}


.legal-main {
    max-width: 960px;
    margin: 0 auto;
    padding: 110px 24px 60px;
}


.legal-title-area {
    text-align: center;
    margin-bottom: 45px;
    animation: fadeInDown 0.8s ease-out;
}

.legal-title-area .title-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: var(--primary-gradient);
    margin-bottom: 20px;
    font-size: 1.6rem;
    color: #fff;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.legal-title-area h1 {
    font-size: 2.3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.legal-title-area .subtitle {
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 300;
    max-width: 520px;
    margin: 0 auto 12px;
}

.legal-title-area .date {
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 300;
    opacity: 0.5;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}


.legal-toc {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 26px 30px;
    margin-bottom: 28px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--glass-shadow);
    animation: fadeInUp 0.7s ease-out 0.1s backwards;
}

.legal-toc .toc-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.legal-toc ol {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px 20px;
    counter-reset: toc-counter;
}

.legal-toc ol li { counter-increment: toc-counter; }

.legal-toc ol li a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.86rem;
    font-weight: 400;
    padding: 5px 10px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.25s ease;
}

.legal-toc ol li a::before {
    content: counter(toc-counter, decimal-leading-zero);
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--accent-blue);
    opacity: 0.5;
    min-width: 18px;
}

.legal-toc ol li a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.04);
}


.legal-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 0;
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    box-shadow: var(--glass-shadow);
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out 0.25s backwards;
}


.legal-card section {
    padding: 30px 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.035);
    transition: background 0.3s ease;
}

.legal-card section:last-child { border-bottom: none; }
.legal-card section:hover { background: rgba(255, 255, 255, 0.012); }

.legal-card .section-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.legal-card .section-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.legal-card .section-icon.purple { background: rgba(102, 126, 234, 0.12); color: var(--accent-blue); }
.legal-card .section-icon.pink { background: rgba(233, 74, 138, 0.12); color: var(--accent-pink); }
.legal-card .section-icon.violet { background: rgba(118, 75, 162, 0.12); color: var(--accent-purple); }

.legal-card h2 {
    font-size: 1.12rem;
    font-weight: 700;
    letter-spacing: 0.2px;
    margin: 0;
}

.legal-card p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    font-weight: 300;
    margin-bottom: 10px;
    line-height: 1.85;
}

.legal-card p:last-child { margin-bottom: 0; }
.legal-card strong { color: #fff; font-weight: 600; }


.legal-card ul {
    list-style: none;
    padding: 0;
    margin: 12px 0;
}

.legal-card ul li {
    color: var(--text-secondary);
    font-size: 0.92rem;
    font-weight: 300;
    padding: 6px 0 6px 26px;
    position: relative;
    line-height: 1.75;
}

.legal-card ul li::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 14px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--primary-gradient);
    opacity: 0.6;
}


.legal-card .highlight-box {
    background: rgba(102, 126, 234, 0.06);
    border: 1px solid rgba(102, 126, 234, 0.12);
    border-radius: 12px;
    padding: 16px 20px;
    margin: 14px 0;
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.legal-card .highlight-box.warning {
    background: rgba(233, 74, 138, 0.06);
    border-color: rgba(233, 74, 138, 0.12);
}

.legal-card .highlight-box i {
    color: var(--accent-blue);
    font-size: 0.95rem;
    margin-top: 3px;
    flex-shrink: 0;
}

.legal-card .highlight-box.warning i { color: var(--accent-pink); }
.legal-card .highlight-box p { margin: 0; font-size: 0.87rem; }


.legal-card a {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.legal-card a:hover {
    color: #fff;
    border-bottom-color: rgba(255, 255, 255, 0.25);
}


.legal-card .contact-card {
    background: rgba(102, 126, 234, 0.07);
    border: 1px solid rgba(102, 126, 234, 0.12);
    border-radius: 14px;
    padding: 24px;
    text-align: center;
}

.legal-card .contact-card p { margin-bottom: 12px; }
.legal-card .contact-card a { font-size: 1.05rem; font-weight: 600; border-bottom: none; }


.legal-footer {
    max-width: 960px;
    margin: 0 auto;
    padding: 40px 24px;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.legal-footer .copyright {
    color: var(--text-muted);
    font-size: 0.76rem;
    opacity: 0.35;
    margin-bottom: 14px;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.legal-footer .footer-links {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.legal-footer .footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.82rem;
    padding: 6px 14px;
    border-radius: 50px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    opacity: 0.45;
}

.legal-footer .footer-links a:hover {
    color: #fff;
    opacity: 1;
    border-color: var(--glass-border);
    background: rgba(255, 255, 255, 0.03);
}


@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-25px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(25px); }
    to { opacity: 1; transform: translateY(0); }
}


@media (max-width: 768px) {
    .legal-card section { padding: 24px 22px; }
    .legal-title-area h1 { font-size: 1.7rem; }
    .legal-main { padding: 95px 16px 40px; }
    .legal-toc ol { grid-template-columns: 1fr; }
    .legal-title-area .title-icon { width: 52px; height: 52px; font-size: 1.3rem; }
}

@media (max-width: 480px) {
    .legal-card section { padding: 20px 16px; }
    .legal-title-area h1 { font-size: 1.35rem; }
    .legal-header .logo { font-size: 1.15rem; }
    .legal-header .back-link span { display: none; }
    .legal-card .section-icon { width: 30px; height: 30px; font-size: 0.75rem; }
    .legal-card h2 { font-size: 1rem; }
}

