/* ============================================================
   Shared styling for NextStop legal pages (/privacy, /terms).
   Calm, readable, on-brand. No heavy animation — legal pages
   should load instantly and read cleanly.
   ============================================================ */

:root {
  --bg:        #0a0a1c;
  --bg-2:      #0f0a20;
  --ink:       #ffffff;
  --ink-7:     rgba(255,255,255,0.78);
  --ink-5:     rgba(255,255,255,0.55);
  --ink-3:     rgba(255,255,255,0.34);
  --line:      rgba(255,255,255,0.10);
  --pink:      #f25599;
}

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

html { scroll-behavior: smooth; }

body {
  background:
    linear-gradient(180deg, #0a0a1c 0%, #0f0a20 60%, #150a1c 100%);
  background-attachment: fixed;
  color: var(--ink-7);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.65;
  min-height: 100vh;
}

::selection { background: rgba(242,85,153,0.55); color: #fff; }

/* ── Top nav ─────────────────────────────────────────────── */
.legal-nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px;
  background: rgba(10,10,28,0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.legal-nav .brand {
  display: flex; align-items: center; gap: 11px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700; font-size: 17px; color: #fff;
  letter-spacing: -0.4px; text-decoration: none;
}
.legal-nav .brand img { width: 28px; height: 28px; border-radius: 7px; display: block; }
.legal-nav .back {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px; font-weight: 700; letter-spacing: 0.3px;
  color: var(--ink-7); text-decoration: none;
  padding: 8px 14px; border-radius: 10px;
  border: 1px solid var(--line);
  transition: color 160ms cubic-bezier(0.23,1,0.32,1), border-color 160ms cubic-bezier(0.23,1,0.32,1);
}
.legal-nav .back:hover { color: #fff; border-color: var(--ink-3); }

/* ── Document body ───────────────────────────────────────── */
.legal-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}
.legal-wrap .eyebrow {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--pink);
  margin-bottom: 14px;
}
.legal-wrap h1 {
  font-family: 'Inter', sans-serif;
  font-weight: 900; font-size: clamp(34px, 6vw, 52px);
  letter-spacing: -0.03em; line-height: 1.05;
  color: #fff; margin-bottom: 12px;
}
.legal-wrap .updated {
  font-size: 13.5px; color: var(--ink-5);
  margin-bottom: 44px;
}
.legal-wrap h2 {
  font-family: 'Inter', sans-serif;
  font-weight: 800; font-size: 21px;
  letter-spacing: -0.02em; color: #fff;
  margin: 40px 0 12px;
  scroll-margin-top: 80px;
}
.legal-wrap h2 .num { color: var(--pink); margin-right: 8px; }
.legal-wrap p { margin-bottom: 14px; font-size: 16px; }
.legal-wrap ul { margin: 0 0 16px 0; padding-left: 22px; }
.legal-wrap li { margin-bottom: 9px; font-size: 16px; }
.legal-wrap strong { color: #fff; font-weight: 700; }
.legal-wrap a { color: var(--pink); text-decoration: none; }
.legal-wrap a:hover { text-decoration: underline; }

/* Highlighted callout (affiliate disclosure) */
.legal-wrap .callout {
  margin: 28px 0;
  padding: 20px 22px;
  border-radius: 14px;
  background: rgba(242,85,153,0.07);
  border: 1px solid rgba(242,85,153,0.28);
}
.legal-wrap .callout p { margin: 0; color: var(--ink-7); }
.legal-wrap .callout strong { color: #fff; }

/* Lead paragraph under the title */
.legal-wrap .lead {
  font-size: 18px; color: var(--ink-7); line-height: 1.6;
  margin-bottom: 8px;
}

/* ── Footer ──────────────────────────────────────────────── */
.legal-foot {
  border-top: 1px solid var(--line);
  padding: 32px 24px;
  text-align: center;
  font-size: 13.5px; color: var(--ink-5);
}
.legal-foot a { color: var(--ink-7); text-decoration: none; }
.legal-foot a:hover { color: #fff; }
.legal-foot .row {
  display: flex; gap: 20px; justify-content: center; flex-wrap: wrap;
  margin-bottom: 14px;
}

@media (max-width: 520px) {
  .legal-wrap { padding: 44px 20px 72px; }
  .legal-nav { padding: 14px 18px; }
}
