/* =============================================================================
   public/legal/legal.css — the shared shell for the three §8.8 legal pages.

   ONE STYLESHEET, THREE PAGES, AND IT IS NOT THE SITE'S BUNDLE. These live in
   public/, which Vite copies byte-for-byte, so they cannot reference the
   content-hashed /assets/*.css — the hash changes on every build. 404.html
   solves that by inlining its own <style>; three pages cannot, because that
   would be the same 120 lines triplicated and drifting.

   So this is a real file at a STABLE path that all three <link> to. Same
   trade-off 404.html made, one level up: self-contained from the bundle's point
   of view, shared from the pages' point of view.

   The palette is lifted from 404.html verbatim (which lifted it from
   base/_custom-props.scss) so a visitor crossing from the site does not land
   somewhere that looks like a different company. If the brand ramp ever moves,
   these are the two files that do not follow automatically.

   NO WEBFONT. The site self-hosts Inter from /fonts/, but a legal page is text
   somebody reads once and leaves; making them wait on a 47 KB font for it is a
   bad trade. `Inter Variable` is named first so a visitor arriving from the
   home page — where it is already cached — gets it for free, and everyone else
   gets the system stack with no request and no layout shift.
   ============================================================================= */

:root {
  color-scheme: light;

  --ink: #1a2130;
  --body: #525e73;
  --muted: #8a94a6;
  --rule: #e3e8f0;
  --accent: #ea1d2c;
  --accent-ink: #c41628;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 48px 24px 96px;
  background:
    radial-gradient(760px 620px at 10% -6%, rgba(234, 29, 44, 0.16) 0%, rgba(234, 29, 44, 0) 68%),
    linear-gradient(180deg, #fbfcfe 0%, #f1f5fb 62%, #f4f7fc 100%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: 'Inter Variable', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  letter-spacing: -0.002em;
}

.wrap {
  max-width: 44rem;
  margin: 0 auto;
}

/* -- Masthead -------------------------------------------------------------- */

.top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 16px;
  padding-bottom: 20px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--rule);
}

.top a {
  color: var(--accent-ink);
  font-weight: 600;
  text-decoration: none;
}

.top a:hover {
  text-decoration: underline;
}

.eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* -- Type ------------------------------------------------------------------ */

h1 {
  margin: 0 0 8px;
  font-size: clamp(2rem, 1.56rem + 1.88vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.024em;
  font-weight: 750;
  text-wrap: balance;
}

h2 {
  margin: 48px 0 12px;
  font-size: 1.375rem;
  line-height: 1.25;
  letter-spacing: -0.016em;
  font-weight: 700;
  text-wrap: balance;
}

h3 {
  margin: 28px 0 8px;
  font-size: 1.0625rem;
  font-weight: 650;
  letter-spacing: -0.008em;
}

p,
li {
  color: var(--body);
  text-wrap: pretty;
}

p {
  margin: 0 0 16px;
}

ul {
  margin: 0 0 16px;
  padding-left: 20px;
}

li {
  margin-bottom: 8px;
}

strong {
  color: var(--ink);
  font-weight: 650;
}

a {
  color: var(--accent-ink);
}

a:focus-visible,
.top a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.updated {
  margin: 0 0 40px;
  color: var(--muted);
  font-size: 15px;
}

/* The scope note each page opens with: what this document is and is not. */
.note {
  padding: 16px 20px;
  margin: 0 0 40px;
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  background: rgba(234, 29, 44, 0.05);
}

.note p:last-child {
  margin-bottom: 0;
}

/* -- Definition-style rows for the data table ------------------------------ */

dl {
  margin: 0 0 16px;
  padding: 0;
}

dt {
  margin-top: 16px;
  color: var(--ink);
  font-weight: 650;
}

dd {
  margin: 4px 0 0;
  color: var(--body);
}

/* -- Footer ---------------------------------------------------------------- */

.foot {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 15px;
}

.foot a {
  margin-right: 16px;
}

/* §6.9 — the site honours this everywhere, and so does the one thing here that
   could move: `background-attachment: fixed` is a scroll-linked repaint on some
   engines. Nothing else on these pages animates. */
@media (prefers-reduced-motion: reduce) {
  body {
    background-attachment: scroll;
  }
}
