/* ==========================================================================
   Legal pages (/privacy-policy, /terms) and the 404 page. Owner: lead builder.
   A dark title block like the blog posts, then the daylight reading surface
   (.section--daylight + .prose from main.css) with the post body's rhythm.
   ========================================================================== */

/* ---------- 1. Title block ------------------------------------------------ */
.legal-hero { background: var(--void); padding-top: calc(var(--header-h) + clamp(1.5rem, 4vw, 3.5rem)); }
.legal-hero__inner { display: grid; gap: clamp(1rem, 2vw, 1.5rem); padding-bottom: clamp(2rem, 4vw, 3.25rem); }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .6rem; font-size: .9375rem; color: var(--muted); }
.crumbs li { display: inline-flex; align-items: center; gap: .6rem; min-width: 0; }
.crumbs li + li::before { content: "/"; color: var(--line-2); }
.crumbs a { color: var(--text-2); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: .22em; }
.crumbs a:hover { color: var(--cyan); }
.legal-hero__title { font-size: clamp(2.35rem, 1.2rem + 3.7vw, 4.9rem); line-height: .98; letter-spacing: -.04em; }
.legal-hero__meta { color: var(--muted); font-size: .9375rem; }

/* ---------- 2. Reading surface -------------------------------------------- */
.legal .section--daylight { padding-top: clamp(2.5rem, 5vw, 4rem); }
.legal-body { color: #1B2531; font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem); line-height: 1.7; }
.legal-body > p:first-child { font-size: 1.15em; line-height: 1.55; color: var(--ink); letter-spacing: -.008em; }
.legal-body h2 {
  margin-top: 2em;
  font-size: clamp(1.5rem, 1.15rem + 1.1vw, 2.1rem);
  line-height: 1.08;
  letter-spacing: -.03em;
  color: var(--ink);
  scroll-margin-top: calc(var(--header-h) + 1.5rem);
}
.legal-body h2 + * { margin-top: .7em; }
.legal-body h3 { margin-top: 1.5em; font-size: clamp(1.15rem, 1.05rem + .4vw, 1.35rem); letter-spacing: -.02em; color: var(--ink); }
.legal-body h3 + * { margin-top: .5em; }
.legal-body strong { font-weight: 600; color: var(--ink); }
.legal-body ul { list-style: none; padding-left: 1.35em; }
.legal-body ul > li { position: relative; }
.legal-body ul > li::before {
  content: "";
  position: absolute;
  left: -1.1em; top: .72em;
  width: .42em; height: .42em;
  border-radius: 50%;
  background: var(--cyan-deep);
}
.legal-body li + li { margin-top: .5em; }

/* ---------- 3. 404 --------------------------------------------------------- */
.error-hero {
  min-height: 100svh;
  display: grid;
  align-items: center;
  background: var(--void);
  padding-block: calc(var(--header-h) + 2rem) var(--space-xl);
}
.error-hero__inner { display: grid; gap: clamp(1rem, 2vw, 1.5rem); justify-items: start; }
.error-hero__code {
  font-family: var(--font-num);
  font-weight: 900;
  font-size: clamp(7rem, 4rem + 14vw, 16rem);
  line-height: .8;
  letter-spacing: -.005em;
  color: var(--cyan);
}
.error-hero__title { font-size: clamp(2.2rem, 1.2rem + 3.4vw, 4.4rem); line-height: 1; letter-spacing: -.04em; max-width: 16ch; }
.error-hero .lede { max-width: 44ch; color: var(--text-2); }
.error-links ul { display: flex; flex-wrap: wrap; gap: 0 1.5rem; }
.error-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text-2);
  text-decoration: underline;
  text-decoration-color: var(--line-2);
  text-underline-offset: .22em;
}
.error-links a:hover { color: var(--cyan); }

/* Load check: the inline stylesheet guard re-fetches this file if this rule is missing. Keep it last. */
:root { --css-legal: 1; }
