/* ── Legal pages (terms.html) ──
   Long-form reading page: narrow column, calm type, no animated background.
   The retro display font is kept for headings only — body copy uses a
   system font so pages of legal text stay readable. */
body {
    background:
        radial-gradient(ellipse at 50% 0%, rgba(123, 104, 238, 0.14) 0%, transparent 55%),
        var(--bg-primary);
}

.legal {
    padding: 56px 24px 80px;
}

.legal-inner {
    max-width: 760px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-primary);
}

.legal-back {
    display: inline-block;
    margin-bottom: 32px;
    font-family: var(--font-primary);
    font-size: 0.8em;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.legal-back:hover {
    color: var(--accent-gold);
}

.legal h1 {
    font-family: var(--font-primary);
    font-size: 2.2em;
    color: var(--accent-gold);
    margin-bottom: 8px;
}

.legal-meta {
    color: var(--text-secondary);
    font-size: 0.9em;
    margin-bottom: 32px;
}

.legal-toc {
    background: var(--bg-surface-1);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    margin-bottom: 40px;
}

.legal-toc ol {
    list-style: decimal;
    padding-left: 1.4em;
    columns: 2;
    column-gap: 32px;
    font-size: 0.92em;
}

.legal-toc li {
    break-inside: avoid;
    margin-bottom: 4px;
}

.legal-toc a,
.legal section a {
    color: var(--text-link);
    transition: color var(--transition-fast);
}

.legal-toc a:hover,
.legal section a:hover {
    color: var(--text-white);
}

.legal section {
    margin-bottom: 36px;
    scroll-margin-top: calc(var(--header-height) + 16px);
}

.legal h2 {
    font-family: var(--font-primary);
    font-size: 1.15em;
    color: var(--text-white);
    margin-bottom: 12px;
}

.legal h3 {
    font-size: 1em;
    color: var(--accent-gold);
    margin: 16px 0 8px;
}

.legal p {
    margin-bottom: 12px;
}

.legal ul {
    list-style: disc;
    padding-left: 1.4em;
    margin-bottom: 12px;
}

.legal li {
    margin-bottom: 6px;
}

.legal strong {
    color: var(--text-white);
}

.legal-contact {
    background: var(--bg-surface-1);
    border-left: 3px solid var(--accent-gold);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: 16px 20px;
}

@media (max-width: 768px) {
    .legal {
        padding: 40px 16px 56px;
    }

    .legal h1 {
        font-size: 1.6em;
    }

    .legal-toc ol {
        columns: 1;
    }
}
