@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Syncopate:wght@400;700&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-blue: #0a6cff;
    --deep-blue: #0229a8;
    --electric: #22d3ee;
    --dark: #02020a;
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

html { scroll-behavior: smooth; }

body.legal-page {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    background-color: var(--dark);
    background-image:
        radial-gradient(ellipse 90% 50% at 50% -5%, rgba(10, 108, 255, 0.12), transparent 55%),
        radial-gradient(ellipse 40% 30% at 100% 80%, rgba(34, 211, 238, 0.06), transparent);
    color: #e4e4e7;
    min-height: 100vh;
}

.font-title { font-family: 'Syncopate', sans-serif; }
.font-serif-display { font-family: 'Instrument Serif', Georgia, serif; }

.legal-gradient-text {
    background: linear-gradient(120deg, #38bdf8, var(--electric));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.legal-glass {
    background: rgba(12, 12, 20, 0.78);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.65);
}

.legal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.legal-nav-link {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #71717a;
    transition: color 0.2s ease;
}
.legal-nav-link:hover,
.legal-nav-link.active { color: #fff; }
.legal-nav-link.active { color: var(--electric); }

.legal-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(34, 211, 238, 0.25);
    background: rgba(10, 108, 255, 0.08);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #67e8f9;
}

.legal-toc a {
    display: block;
    padding: 0.55rem 0.85rem;
    border-radius: 0.75rem;
    font-size: 0.82rem;
    color: #a1a1aa;
    border: 1px solid transparent;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.legal-toc a:hover {
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.06);
}

.legal-section {
    scroll-margin-top: 6rem;
}

.legal-section h2 {
    font-family: 'Syncopate', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fafafa;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.legal-section h2 i {
    color: var(--electric);
    font-size: 0.9rem;
    opacity: 0.9;
}

.legal-section p,
.legal-section li {
    font-size: 0.92rem;
    line-height: 1.75;
    color: #a1a1aa;
}

.legal-section ul {
    list-style: none;
    padding: 0;
    margin: 0.75rem 0 0;
}

.legal-section ul li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.5rem;
}

.legal-section ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-blue), var(--electric));
}

.legal-callout {
    border-left: 3px solid var(--primary-blue);
    padding: 1rem 1.15rem;
    border-radius: 0 0.75rem 0.75rem 0;
    background: rgba(10, 108, 255, 0.06);
    margin: 1.25rem 0;
}

.legal-callout p {
    margin: 0;
    color: #d4d4d8;
    font-size: 0.88rem;
}

.legal-table-wrap {
    overflow-x: auto;
    margin: 1rem 0;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.legal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
}

.legal-table th,
.legal-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.legal-table th {
    background: rgba(255, 255, 255, 0.03);
    color: #e4e4e7;
    font-weight: 700;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.legal-table td { color: #a1a1aa; }
.legal-table tr:last-child td { border-bottom: none; }

.legal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: #020208;
}

.legal-chip {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    border-radius: 0.4rem;
    background: rgba(255, 255, 255, 0.06);
    font-size: 0.75rem;
    color: #d4d4d8;
}

@media (max-width: 1023px) {
    .legal-sidebar { order: 2; }
    .legal-content { order: 1; }
}
