/* ============================================
   LEGAL PAGES — privacy / terms / returns
   Standalone static pages (not part of the SPA).
   Same dark-stage palette as styles.css; kept in
   its own sheet so the long-form legal layout
   doesn't entangle with the single-page app.
   CSP-safe: external only, no inline styles.
============================================ */
:root {
    --bg:      #0e0f12;
    --surface: #15171c;
    --ink:     #f0f1f4;
    --body:    #cfd3da;
    --muted:   #9aa0ab;
    --line:    rgba(255, 255, 255, 0.09);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body.legal {
    font-family: 'Space Grotesk', sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

/* header — just the logo, a home link */
.legal-header {
    padding: 26px 24px;
    border-bottom: 1px solid var(--line);
}
.legal-header .logo { display: inline-block; }
.legal-header .logo img { height: 34px; width: auto; display: block; }

/* body column */
main.legal-body {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    padding: 56px 24px 80px;
    flex: 1;
}

.legal-body h1 {
    font-size: 1.9rem;
    letter-spacing: 0.01em;
    line-height: 1.2;
    margin-bottom: 8px;
}
.legal-body .updated {
    color: var(--muted);
    font-size: 0.85rem;
    margin-bottom: 40px;
}
.legal-body .intro {
    color: var(--body);
    margin-bottom: 8px;
}

.legal-body h2 {
    font-size: 0.82rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink);
    margin: 40px 0 14px;
}

.legal-body p,
.legal-body li {
    color: var(--body);
    margin-bottom: 14px;
    font-size: 0.98rem;
}
.legal-body ul { padding-left: 22px; margin-bottom: 14px; }
.legal-body li { margin-bottom: 8px; }

.legal-body a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.legal-body a:hover { color: var(--muted); }
.legal-body strong { color: #fff; }

/* highlighted fill-me-in placeholders (must be replaced before launch) */
.placeholder {
    background: rgba(255, 214, 110, 0.15);
    border: 1px solid rgba(255, 214, 110, 0.4);
    border-radius: 4px;
    padding: 0 6px;
    color: #ffe4a3;
    white-space: nowrap;
}

/* footer — back link */
.legal-footer {
    border-top: 1px solid var(--line);
    padding: 26px 24px;
    text-align: center;
}
.legal-footer a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.9rem;
}
.legal-footer a:hover { color: #fff; }

@media (max-width: 640px) {
    main.legal-body { padding: 40px 20px 64px; }
    .legal-body h1 { font-size: 1.6rem; }
}
