/* ── Legal Pages (Terms, Privacy) ───────────────────────── */

html.legal-html,
html.legal-html body {
    height: auto;
    overflow: auto;
    background: #030306;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.legal-bg-glow {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(ellipse 70% 50% at 15% 10%, rgba(124,58,237,0.12) 0%, transparent 60%),
        radial-gradient(ellipse 50% 70% at 90% 80%, rgba(34,211,238,0.07) 0%, transparent 55%);
}

.legal-page {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    max-width: 760px;
    margin: 0 auto;
    padding: 3rem 2rem 2rem;
}

.legal-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2.5rem;
    padding-bottom: 1.75rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.legal-header h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: #e8e8ed;
    margin-bottom: 0.25rem;
    background: linear-gradient(135deg, #e8e8ed 0%, #c4b5fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.legal-updated {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.3);
    font-weight: 500;
}

.legal-header .back-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    color: rgba(255,255,255,0.4);
    text-decoration: none;
    transition: all 0.2s;
    flex-shrink: 0;
    margin-top: 0.15rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
}

.legal-header .back-btn:hover {
    background: rgba(124,58,237,0.1);
    border-color: rgba(124,58,237,0.25);
    color: #c4b5fd;
}

.legal-body {
    line-height: 1.75;
    color: rgba(255,255,255,0.55);
    font-size: 0.9rem;
}

.legal-body h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #e8e8ed;
    margin: 2.5rem 0 0.85rem;
    padding-top: 0.75rem;
    letter-spacing: -0.3px;
    position: relative;
}

.legal-body h2::before {
    content: '';
    display: block;
    width: 28px;
    height: 2px;
    background: linear-gradient(to right, #7c3aed, #22d3ee);
    border-radius: 9999px;
    margin-bottom: 0.75rem;
}

.legal-body h2:first-child {
    margin-top: 0;
}

.legal-body h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.98rem;
    font-weight: 600;
    color: rgba(255,255,255,0.8);
    margin: 1.5rem 0 0.6rem;
    letter-spacing: -0.2px;
}

.legal-body p {
    margin-bottom: 0.85rem;
}

.legal-body ul {
    margin: 0.6rem 0 1.1rem;
    padding-left: 0;
    list-style: none;
}

.legal-body li {
    margin-bottom: 0.5rem;
    padding-left: 1.25rem;
    position: relative;
}

.legal-body li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(124,58,237,0.5);
    box-shadow: 0 0 6px rgba(124,58,237,0.3);
}

.legal-body a {
    color: #a78bfa;
    text-decoration: underline;
    text-decoration-color: rgba(167,139,250,0.3);
    text-underline-offset: 2px;
    transition: text-decoration-color 0.2s;
}

.legal-body a:hover {
    text-decoration-color: #a78bfa;
}

.legal-body strong {
    color: rgba(255,255,255,0.85);
    font-weight: 600;
}

.legal-footer {
    margin-top: 3.5rem;
    padding-top: 1.75rem;
    border-top: 1px solid rgba(255,255,255,0.06);
    text-align: center;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.2);
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.legal-footer a {
    color: rgba(255,255,255,0.35);
    text-decoration: none;
    transition: color 0.2s;
}

.legal-footer a:hover {
    color: #a78bfa;
}

.legal-footer span {
    color: rgba(255,255,255,0.12);
}

@media (max-width: 767px) {
    .legal-page {
        padding: 1.5rem 1.25rem;
    }

    .legal-header h1 {
        font-size: 1.4rem;
    }

    .legal-body {
        font-size: 0.86rem;
    }

    .legal-body h2 {
        font-size: 1.05rem;
    }
}
