/* ═══════════════════════════════════════════════════════════════════════
   STORPWR — legal pages (/privacy)
   Layers on top of styles.css and inherits its tokens, type, buttons, and
   footer. Only what a long-form reading page adds lives here.

   No film, no GSAP, no model-viewer, no main.js: this is a document, and it
   has to render for a regulator, a screen reader, and a phone on cellular
   with scripts blocked. Every token below carries a literal fallback so the
   page is correct even against an older cached styles.css.
   ═══════════════════════════════════════════════════════════════════════ */

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* The nav is transparent until main.js adds .scrolled. Nothing sequences it
   here, and body copy sliding under clear glass is unreadable — so on legal
   pages it is opaque from the first pixel. */
body.legal .nav {
  background: rgba(4, 6, 11, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--line, rgba(244, 242, 236, 0.1));
}

/* ── masthead ──────────────────────────────────────────────────────── */
.legal-hero {
  padding: clamp(7rem, 14vh, 9rem) var(--gutter) clamp(1.5rem, 3vh, 2.5rem);
}
.legal-wrap { max-width: 46rem; margin: 0 auto; }
.legal-hero h1 {
  /* the site h1 runs to 9rem for a title card over film; a document needs a
     heading, not a title card — so it steps down to the documented headline
     token (typography.headline), the same step the deck h2s use */
  font-size: clamp(2.4rem, 1.5rem + 3.8vw, 4.6rem);
  line-height: 1.02;
}
.legal-dates {
  margin-top: 1.6rem;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  color: var(--faint, #79828e);
}
.legal-dates b { color: var(--dim, #aab2ba); font-weight: 400; }

/* ── the short version ─────────────────────────────────────────────── */
.tldr {
  margin-top: 2.6rem;
  padding: clamp(1.6rem, 3.5vw, 2.2rem);
  border: 1px solid var(--line, rgba(244, 242, 236, 0.1));
  border-radius: var(--radius, 20px);
  background: var(--glass, rgba(9, 13, 22, 0.55));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.tldr-label {
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  color: var(--blue, #2dd4bf);
  margin-bottom: 1.2rem;
}
.tldr ul { list-style: none; display: grid; gap: 0.85rem; }
.tldr li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--dim, #aab2ba);
  line-height: 1.6;
}
.tldr li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 1px;
  background: var(--blue, #2dd4bf);
}
.tldr li b { color: var(--text, #f4f2ec); font-weight: 600; }
/* styles.css strips link decoration globally, so an unstyled anchor in here
   would read as plain text — the email and phone have to look clickable */
.tldr a {
  color: var(--text, #f4f2ec);
  border-bottom: 1px solid var(--line, rgba(244, 242, 236, 0.1));
  padding-bottom: 1px;
  transition: color 0.2s, border-color 0.2s;
}
@media (hover: hover) and (pointer: fine) {
  .tldr a:hover { color: var(--blue, #2dd4bf); border-color: var(--blue, #2dd4bf); }
}
.tldr-foot {
  margin-top: 1.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line, rgba(244, 242, 236, 0.1));
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--faint, #79828e);
}

/* ── contents ──────────────────────────────────────────────────────── */
.legal-toc { margin-top: 2.8rem; }
.legal-toc > p {
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  color: var(--faint, #79828e);
  margin-bottom: 1rem;
}
.legal-toc ol {
  list-style: none;
  counter-reset: toc;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem 2rem;
}
.legal-toc li { counter-increment: toc; }
.legal-toc a {
  display: block;
  font-size: 0.85rem;
  color: var(--dim, #aab2ba);
  transition: color 0.2s;
}
.legal-toc a::before {
  content: counter(toc, decimal-leading-zero) " ";
  font-family: var(--mono-f, monospace);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--faint, #79828e);
  margin-right: 0.5rem;
}
@media (hover: hover) and (pointer: fine) {
  .legal-toc a:hover { color: var(--blue, #2dd4bf); }
}

/* ── the document ──────────────────────────────────────────────────── */
.legal-body {
  padding: clamp(2.5rem, 6vh, 4rem) var(--gutter) clamp(4rem, 9vh, 6rem);
}
.legal-body section {
  /* clears the fixed nav when a contents link jumps here */
  scroll-margin-top: 5.5rem;
  padding-top: clamp(2.2rem, 5vh, 3.2rem);
}
.legal-body section + section {
  margin-top: clamp(1rem, 2vh, 1.6rem);
  border-top: 1px solid var(--line, rgba(244, 242, 236, 0.1));
}
/* scoped under .legal-body so it outweighs the `.legal-body p` color below —
   both are one class deep, but that rule also matches the element */
.legal-body .legal-num {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  color: var(--blue, #2dd4bf);
  margin-bottom: 0.9rem;
}
/* section headings sit on the documented title token — hierarchy comes from
   the teal number above and the rule between sections, not from scale */
.legal-body h2 {
  font-size: 1.35rem;
  line-height: 1.25;
  letter-spacing: -0.005em;
}
/* run-in subheads: body size, carried by weight and color rather than scale,
   so a long document doesn't grow a third heading tier */
.legal-body h3 {
  font-family: var(--body, sans-serif);
  font-size: inherit;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--text, #f4f2ec);
  margin-top: 1.9rem;
}
/* size inherits the documented body ramp from <body> — a policy is read end
   to end, so it gets the same measure and size as the rest of the site */
.legal-body p,
.legal-body li {
  color: var(--dim, #aab2ba);
  line-height: 1.72;
}
.legal-body p { margin-top: 1.1rem; max-width: 68ch; }
.legal-body strong { color: var(--text, #f4f2ec); font-weight: 600; }

.legal-body ul { list-style: none; margin-top: 1.2rem; display: grid; gap: 0.8rem; }
.legal-body li { position: relative; padding-left: 1.5rem; max-width: 68ch; }
.legal-body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 7px;
  height: 1px;
  background: var(--faint, #79828e);
}

.legal-body a {
  color: var(--text, #f4f2ec);
  border-bottom: 1px solid var(--line, rgba(244, 242, 236, 0.1));
  padding-bottom: 1px;
  transition: color 0.2s, border-color 0.2s;
}
@media (hover: hover) and (pointer: fine) {
  .legal-body a:hover { color: var(--blue, #2dd4bf); border-color: var(--blue, #2dd4bf); }
}

/* a mono inline token (a storage key, a header name). No chip: "no boxes, no
   borders, no seams" is the site's law — the typeface change is the signal. */
.legal-body code {
  font-family: var(--mono-f, monospace);
  letter-spacing: 0.04em;
  color: var(--text, #f4f2ec);
}

/* the point the whole page exists to make — one gold callout, used once */
.legal-flag {
  margin-top: 1.6rem;
  padding: 1.2rem 1.4rem;
  border: 1px solid rgba(245, 201, 107, 0.28);
  border-left-width: 2px;
  border-left-color: var(--gold, #f5c96b);
  border-radius: var(--radius-sm, 14px);
  background: rgba(245, 201, 107, 0.05);
}
.legal-flag p { margin-top: 0; color: var(--text, #f4f2ec); }
.legal-flag p + p { margin-top: 0.8rem; color: var(--dim, #aab2ba); }

/* ── the collection table ──────────────────────────────────────────── */
/* A narrow phone can't hold four columns; it scrolls sideways in its own box
   rather than forcing the whole page to. */
.legal-table-wrap {
  margin-top: 1.6rem;
  overflow-x: auto;
  border: 1px solid var(--line, rgba(244, 242, 236, 0.1));
  border-radius: var(--radius-sm, 14px);
  -webkit-overflow-scrolling: touch;
}
.legal-table {
  width: 100%;
  min-width: 44rem;
  border-collapse: collapse;
  font-size: 0.85rem;
  text-align: left;
}
.legal-table th,
.legal-table td {
  padding: 0.85rem 1.1rem;
  vertical-align: top;
  border-bottom: 1px solid var(--line, rgba(244, 242, 236, 0.1));
}
.legal-table thead th {
  font-family: var(--mono-f, monospace);
  font-weight: 400;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint, #79828e);
  background: rgba(244, 242, 236, 0.03);
}
.legal-table tbody th {
  font-family: var(--body, sans-serif);
  font-weight: 600;
  color: var(--text, #f4f2ec);
  white-space: nowrap;
}
.legal-table td { color: var(--dim, #aab2ba); line-height: 1.6; }
.legal-table tbody tr:last-child th,
.legal-table tbody tr:last-child td { border-bottom: 0; }

/* ── how to reach us, at the end ───────────────────────────────────── */
.legal-contact {
  margin-top: 1.8rem;
  display: grid;
  gap: 0.9rem;
  list-style: none;
}
.legal-contact li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.2rem;
  padding-left: 0;
}
.legal-contact li::before { content: none; }
.legal-contact span {
  min-width: 5.5rem;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  color: var(--faint, #79828e);
  padding-top: 0.35em;
}
.legal-contact a,
.legal-contact address { color: var(--text, #f4f2ec); }

.legal-end {
  margin-top: clamp(3rem, 7vh, 4.5rem);
  padding-top: 1.6rem;
  border-top: 1px solid var(--line, rgba(244, 242, 236, 0.1));
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  color: var(--faint, #79828e);
}

/* ── responsive ────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .legal-toc ol { grid-template-columns: 1fr; }
}
