/* Shared styling for the legal pages (/terms, /privacy).
 *
 * The rest of the site inlines its CSS because it is one page. These are two
 * long documents with identical needs, so the styles live once here instead of
 * being copy-pasted and drifting apart the first time one is edited.
 *
 * Same tokens as index.html — navy surface, Hanken for text, Graduate for the
 * wordmark — but tuned for READING: a measure that caps around 70 characters,
 * generous line-height, and headings that can be scanned to find a clause.
 */

:root {
  --navy: #0D1F3C;
  --navy-deep: #0A1730;
  --green: #1FB26B;
  --gold: #F5B23E;
  --ink: #0A1320;
  --cloud: #fff;
  --steel: #5B6B7F;
  --mist: #B7C2D0;
  --line: rgba(183, 194, 208, .18);
  --head: "Hanken Grotesk", system-ui, sans-serif;
  --collegiate: "Graduate", Rockwell, serif;
  --sans: "Hanken Grotesk", system-ui, sans-serif;
}

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

body {
  font-family: var(--sans);
  color: var(--cloud);
  background: var(--navy);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  line-height: 1.65;
}

/* Same deep-navy glow as the home page, minus the animation: a legal page
   should feel like the same product, not a different site. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(60rem 40rem at 50% -10%, rgba(31, 178, 107, .10), transparent 60%),
    radial-gradient(48rem 36rem at 110% 15%, rgba(245, 178, 62, .07), transparent 55%);
}

.wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 46rem; /* ~70ch: past this, the eye loses the line it's on */
  margin: 0 auto;
  padding: 40px 20px 64px;
  flex: 1;
}

.topbar { margin-bottom: 36px }

.topbar a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--cloud);
  font-family: var(--collegiate);
  font-size: 20px;
  letter-spacing: .02em;
}

.topbar .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}

h1 {
  font-family: var(--collegiate);
  font-size: clamp(28px, 5vw, 40px);
  line-height: 1.15;
  letter-spacing: .01em;
  margin-bottom: 10px;
}

.effective {
  color: var(--gold);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

h2 {
  font-family: var(--head);
  font-size: 20px;
  font-weight: 700;
  margin: 34px 0 10px;
  color: var(--cloud);
  scroll-margin-top: 20px;
}

h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 20px 0 6px;
  color: var(--cloud);
}

p, li { color: var(--mist); font-size: 15.5px }
p + p { margin-top: 12px }
ul, ol { margin: 10px 0 10px 22px }
li { margin-bottom: 6px }
strong { color: var(--cloud) }

a { color: var(--green); text-decoration: underline; text-underline-offset: 2px }
a:hover { color: var(--gold) }

/* Table of contents — a long document needs a way in. */
.toc {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 20px;
  margin: 26px 0 8px;
  background: rgba(10, 23, 48, .5);
}

.toc h2 { margin: 0 0 8px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--steel) }
.toc ol { margin: 0 0 0 18px }
.toc li { margin-bottom: 3px; font-size: 14px }
.toc a { color: var(--mist); text-decoration: none }
.toc a:hover { color: var(--green); text-decoration: underline }

/* A boxed callout for the things a reader most needs to actually notice
   (auto-renew is opt-in; how to exercise a data right). */
.note {
  border-left: 3px solid var(--green);
  background: rgba(31, 178, 107, .07);
  border-radius: 0 10px 10px 0;
  padding: 12px 16px;
  margin: 14px 0;
}

.note.warn { border-left-color: var(--gold); background: rgba(245, 178, 62, .07) }
