/*
 * Emeralite design system — tokens + components.
 *
 * Extracted verbatim (colors, type scale, component rules) from the approved
 * concept mockups: design/mockup-desktop.html (primary source for structure
 * and the >820px layout) and design/mockup-mobile.html (mobile type scale,
 * spacing, and touch-target sizing). The mockups' own "design concept" chrome
 * (.board, .concept-bar, .tabs, .frame, .caption, the phone-shell/.tabbar
 * bottom nav) is a demo harness for reviewing screens side by side and is
 * NOT part of the shipped site — the real site is a normal multi-page
 * responsive site, so the nav collapses behind a toggle at narrow widths
 * instead of the mobile mockup's bottom tab bar.
 *
 * Light-committed: the Emeralite system is paper-first by design. The page
 * paints its own ground and ignores the viewer's OS/browser theme — there is
 * no dark mode.
 */
:root {
  --paper: #FAF8F2;
  --surface: #FFFFFF;
  --ink: #221F1B;
  --muted: #6B655A;
  --line: #E4DECF;
  --line-soft: #ECE7DB;
  --amber: #C08327;
  --amber-deep: #9A6820;
  --amber-wash: #F7EDD9;
  --emerald: #1F5748;
  --emerald-lift: #2E6B5A;
  --emerald-wash: #E8F0EC;
  --glow: #FFF3DA;
  --alert: #A33D2E;
  --alert-wash: #F6E7E2;
  --ribbon-text: #F3EBDA;
  --shadow: 0 1px 2px rgba(34, 31, 27, .06), 0 8px 24px rgba(34, 31, 27, .07);
  --label-shadow: 2px 2px 0 #DED8C9;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "Spline Sans Mono", Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.serif { font-family: var(--serif); }

a { color: inherit; }

img, svg { max-width: 100%; display: block; }

/* Baseline safety net: every top-level page section (.hero, .pillars,
   .pitch, .lib, .acct, .legal-doc, .auth-page below) carries its own
   padding/max-width frame, but `main` itself had no rule at all — anything
   rendered without one of those wrapper classes would sit flush against the
   viewport edge with no constraint (B4). */
main { display: block; }

/* ---------- shared chrome: ribbon, nav, buttons, pills, footer ---------- */

.ribbon {
  background: var(--emerald);
  color: var(--ribbon-text);
  font-family: var(--serif);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .32em;
  text-transform: uppercase;
  padding: 6px 0;
  white-space: nowrap;
  overflow: hidden;
  text-align: center;
}

.site-nav {
  position: relative;
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 16px 40px;
  border-bottom: 1px solid var(--line-soft);
}

.wordmark { display: flex; align-items: baseline; gap: 9px; text-decoration: none; }
.wordmark .wm { font-family: var(--serif); font-size: 22px; font-weight: 600; letter-spacing: -.01em; color: var(--ink); }
.wordmark .wm span { color: var(--amber); }
.wordmark .lockup {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .26em;
  color: var(--emerald);
  text-transform: uppercase;
}

.nav-links { display: flex; align-items: center; gap: 26px; }
.site-nav a.nav-link { color: var(--muted); text-decoration: none; font-size: 13.5px; font-weight: 600; }
.site-nav a.nav-link:hover { color: var(--ink); }
.site-nav a.nav-link.current { color: var(--ink); }
.nav-right { margin-left: auto; display: flex; gap: 18px; align-items: center; }
.nav-right a { color: var(--muted); text-decoration: none; font-size: 13.5px; font-weight: 600; }
.nav-right a:hover { color: var(--ink); }

.nav-toggle {
  display: none;
  margin-left: auto;
  appearance: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 7px 10px;
  cursor: pointer;
  color: var(--ink);
}
.nav-toggle:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.nav-toggle .bars { display: block; width: 18px; height: 2px; background: currentColor; position: relative; }
.nav-toggle .bars::before, .nav-toggle .bars::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: currentColor;
}
.nav-toggle .bars::before { top: -5px; }
.nav-toggle .bars::after { top: 5px; }

.btn {
  display: inline-block;
  border: none;
  cursor: pointer;
  text-decoration: none;
  font: 600 13.5px var(--sans);
  border-radius: 6px;
  padding: 9px 18px;
}
.btn-primary { background: var(--amber); color: #FFF9EE; }
.btn-primary:hover { background: var(--amber-deep); }
.btn-ghost { background: none; color: var(--ink); border: 1px solid var(--line); padding: 8px 17px; }
.btn-emerald { background: none; color: var(--emerald); border: 1.5px solid var(--emerald); padding: 8px 17px; }
.btn:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.btn-block { display: block; width: 100%; text-align: center; }
.btn:disabled, .btn[disabled] { opacity: .55; cursor: not-allowed; }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--emerald);
}

.pill {
  display: inline-block;
  font: 600 11px var(--sans);
  letter-spacing: .03em;
  border-radius: 999px;
  padding: 3px 10px;
}
.pill-good { background: var(--emerald-wash); color: var(--emerald); }
.pill-amber { background: var(--amber-wash); color: var(--amber-deep); }
.pill-line { border: 1px solid var(--line); color: var(--muted); }

.site-footer { border-top: 1px solid var(--line-soft); padding: 24px 40px 28px; display: grid; gap: 8px; }
.site-footer p { font-size: 12px; color: var(--muted); max-width: 80ch; }
.site-footer .foot-label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- landing: hero + Spot Check teaser ---------- */

.hero {
  padding: 60px 40px 50px;
  border-bottom: 1px solid var(--line-soft);
  background: radial-gradient(ellipse 62% 55% at 32% 28%, var(--glow) 0%, rgba(255, 243, 218, 0) 72%);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 44px; align-items: start; }
.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(34px, 4.6vw, 52px);
  line-height: 1.06;
  letter-spacing: -.015em;
  max-width: 15ch;
  text-wrap: balance;
  margin-top: 14px;
}
.hero h1 em { font-style: italic; color: var(--amber-deep); }
.hero .lede { max-width: 52ch; margin-top: 18px; font-size: 16.5px; color: var(--muted); }
.hero .cta-group { display: flex; gap: 10px; margin-top: 24px; flex-wrap: wrap; }

.teaser { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 20px 20px 18px; }
.teaser .t-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.teaser h3 { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.teaser .sub { font-size: 12.5px; color: var(--muted); margin: 2px 0 14px; }
.teaser-row { display: flex; gap: 8px; flex-wrap: wrap; }
.teaser input {
  flex: 1; min-width: 120px;
  font: 400 13px var(--mono); color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: 6px;
  padding: 9px 12px;
}
.teaser input:focus-visible { outline: 2px solid var(--amber); outline-offset: 1px; }
.teaser input[disabled] { color: var(--muted); background: var(--line-soft); cursor: not-allowed; }

.confirm-card {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin-top: 10px; border: 1px solid var(--emerald); background: var(--emerald-wash);
  border-radius: 8px; padding: 11px 14px;
}
.confirm-card b { display: block; font-size: 13px; }
.confirm-card span { font-family: var(--mono); font-size: 10.5px; color: var(--muted); }
.confirm-yes { border-color: var(--emerald); color: var(--emerald); padding: 6px 13px; font-size: 12.5px; }

.snapshot {
  margin-top: 16px; border: 1.5px solid var(--ink); border-radius: 4px; background: var(--surface);
  padding: 16px 16px 14px; box-shadow: var(--label-shadow);
}
.snapshot .inst {
  display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap;
  border-bottom: 1px solid var(--line-soft); padding-bottom: 8px; margin-bottom: 10px;
}
.snapshot .inst b { font-size: 13.5px; }
.snapshot .cert { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.score-line { display: flex; align-items: center; gap: 14px; margin: 10px 0 12px; }
.score-num { font-family: var(--serif); font-size: 38px; font-weight: 600; line-height: 1; color: var(--amber-deep); }
.score-num small { font-size: 16px; color: var(--muted); font-weight: 400; }
.meter { flex: 1; height: 6px; border-radius: 999px; background: var(--line-soft); position: relative; }
.meter i { position: absolute; inset: 0 52% 0 0; border-radius: 999px; background: var(--amber); }
.snapshot ul { list-style: none; display: grid; gap: 6px; font-size: 12.5px; color: var(--muted); padding: 0; }
.snapshot ul b { color: var(--ink); font-weight: 600; }
.snapshot .cta-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line-soft); flex-wrap: wrap;
}
.fineprint { font-size: 11px; color: var(--muted); margin-top: 10px; }

.resolver-status { font-size: 12px; color: var(--muted); margin: 8px 0 0; min-height: 15px; }
.resolver-status[data-tone="error"] { color: var(--alert); }

.resolver-matches {
  list-style: none; display: grid; gap: 6px; margin-top: 8px; padding: 0; max-height: 220px; overflow-y: auto;
}
.resolver-match {
  display: block; width: 100%; text-align: left; cursor: pointer;
  font: inherit; color: inherit; background: var(--surface); border: 1px solid var(--line);
  border-radius: 6px; padding: 8px 10px;
}
.resolver-match:hover, .resolver-match:focus-visible { border-color: var(--amber); outline: none; }
.resolver-match b { display: block; font-size: 12.5px; }
.resolver-match span { font-family: var(--mono); font-size: 10.5px; color: var(--muted); }

/* ---------- landing: three pillars ---------- */

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line-soft); }
.pillar { padding: 30px 40px 34px; border-right: 1px solid var(--line-soft); }
.pillar:last-child { border-right: none; }
.pillar h3 { font-family: var(--serif); font-size: 21px; font-weight: 600; margin: 10px 0 4px; }
.pillar .plain {
  font-size: 11.5px; color: var(--muted); font-family: var(--mono);
  letter-spacing: .06em; text-transform: uppercase; margin-bottom: 8px;
}
.pillar p { font-size: 13.5px; color: var(--muted); max-width: 38ch; }
.pillar .price { font-family: var(--mono); font-size: 12px; color: var(--ink); margin-top: 14px; }

/* ---------- landing: editions grid + Night Drop strip ---------- */

.editions { padding: 34px 40px 44px; }
.editions h2 { font-family: var(--serif); font-size: 24px; font-weight: 600; margin-bottom: 4px; }
.editions .sub { color: var(--muted); font-size: 13.5px; margin-bottom: 20px; }
.ed-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ed-card {
  background: var(--surface); border: 1.5px solid var(--ink); border-radius: 4px;
  padding: 14px 16px; box-shadow: var(--label-shadow);
}
.ed-card .tag {
  font-family: var(--mono); font-size: 10px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--emerald); display: flex; justify-content: space-between; gap: 8px;
  border-bottom: 1px solid var(--line-soft); padding-bottom: 7px; margin-bottom: 9px;
}
.ed-card h4 { font-family: var(--serif); font-size: 16.5px; font-weight: 600; line-height: 1.25; margin-bottom: 6px; }
.ed-card p { font-size: 12.5px; color: var(--muted); }
.ed-card .pill { display: inline-block; margin: 0 0 8px; }

.nightdrop-strip {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-top: 18px; padding: 13px 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper);
}
.nightdrop-strip .nd { font-family: var(--serif); font-weight: 600; font-size: 15px; }
.nightdrop-strip .nd span { color: var(--amber-deep); }
.nightdrop-strip p { font-size: 12.5px; color: var(--muted); flex: 1; min-width: 220px; }

/* ---------- gated pitch page (Records Room without an entitlement) ---------- */

.pitch { padding: 56px 40px 60px; max-width: 720px; }
.pitch h1 { font-size: 30px; font-weight: 600; margin: 10px 0 10px; }
.pitch .lede { max-width: 58ch; color: var(--muted); font-size: 15.5px; margin-bottom: 22px; }
.pitch .cta-group { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- auth pages + Spot Check outcome pages (B4) ---------- */
/* Sign-in, "check your email", the redeem-error page, and all four Spot
   Check outcome pages (auth.ts, teaser.ts) share this class. Mirrors
   `.pitch`'s padding/max-width frame so these render as a centered, padded,
   readable column instead of full-bleed, unstyled text. */

.auth-page { padding: 56px 40px 60px; max-width: 640px; }
.auth-page h1 { font-size: 30px; font-weight: 600; margin: 0 0 10px; }
.auth-page .lede { max-width: 58ch; color: var(--muted); font-size: 15.5px; margin-bottom: 22px; }
.auth-page form { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.auth-page .cta-group { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Records Room ---------- */

.lib { padding: 30px 40px 44px; }
.lib h2 { font-family: var(--serif); font-size: 24px; font-weight: 600; }
.lib .sub { color: var(--muted); font-size: 13.5px; margin: 4px 0 16px; }

.lens-strip {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--muted); margin-bottom: 16px;
}
.lens-strip b { color: var(--ink); font-weight: 600; }
.lens-strip a { color: var(--amber-deep); font-weight: 600; text-decoration: none; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.chip {
  font: 600 12px var(--sans); border: 1px solid var(--line); border-radius: 999px;
  background: none; color: var(--muted); padding: 6px 14px; cursor: pointer;
}
.chip.on { border-color: var(--emerald); color: var(--emerald); background: var(--emerald-wash); }
.chip:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }

.lib-list { display: grid; border-top: 1px solid var(--line); }
.lib-row {
  display: grid; grid-template-columns: 120px 1fr auto; gap: 18px; align-items: start;
  padding: 15px 4px; border-bottom: 1px solid var(--line-soft);
}
.lib-row .kind {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--emerald); padding-top: 2px;
}
.lib-row h4 { font-family: var(--serif); font-size: 17px; font-weight: 600; line-height: 1.25; }
.lib-row .meta { font-size: 12px; color: var(--muted); margin: 2px 0 6px; }
.lib-row p { font-size: 13px; color: var(--ink); max-width: 66ch; }
.lib-row .act { display: flex; align-items: center; gap: 10px; }

/* Per-item useful/not-useful controls (Task 8, `records.ts`'s
   `feedbackControlsHtml`) — two same-page `<form>`s, block-level by
   default, laid out inline here rather than stacking vertically under
   every item. `.btn-ghost.active` marks the subscriber's own latest vote;
   the inline "(your vote)" label already carries the state for
   accessibility, this is the visual reinforcement to go with it. */
.item-feedback { display: flex; gap: 8px; margin-top: 10px; }
.item-feedback form { display: inline-flex; }
.item-feedback .btn { padding: 5px 12px; font-size: 11.5px; }
.btn-ghost.active {
  border-color: var(--emerald); color: var(--emerald); background: var(--emerald-wash);
}

@media (max-width: 820px) {
  .lib-row { grid-template-columns: 1fr; gap: 6px; }
}

/* ---------- Passbook ---------- */

.acct { padding: 30px 40px 44px; display: grid; gap: 22px; }
.acct .acct-head h2 { font-family: var(--serif); font-size: 24px; font-weight: 600; }
.acct .acct-head .plain { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.acct-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 860px) {
  .acct-grid { grid-template-columns: 1fr; }
}
.card { border: 1px solid var(--line); border-radius: 8px; background: var(--surface); padding: 18px; }
.card--review { display: grid; gap: 10px; margin-bottom: 20px; max-width: 640px; }
.card h3 {
  font-size: 13px; font-weight: 700; letter-spacing: .02em; margin-bottom: 12px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
}
.hname { color: var(--emerald); font-weight: 600; }
.card h3 .mono-note { font-family: var(--mono); font-size: 10.5px; color: var(--muted); font-weight: 400; }
.card .fineprint { margin-top: 0; }
.row {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 10px 0; border-top: 1px solid var(--line-soft); font-size: 13px; flex-wrap: wrap;
}
.row .l b { display: block; font-weight: 600; }
.row .l span { font-size: 11.5px; color: var(--muted); }
.row form { display: inline-flex; }
.row select {
  font: 500 12.5px var(--mono); color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: 6px; padding: 6px 8px;
}
.track-row { display: flex; gap: 8px; margin-top: 12px; }
.track-row input {
  flex: 1; font: 400 13px var(--mono); color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px;
}
.alert-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--alert); margin-right: 7px; }

/* ---------- Signature Card wizard (`pages/signature-card.ts`) ----------
   Final whole-branch review m2: this wizard used to carry ~20 hand-typed
   inline `style="..."` declarations, one or two per sibling page. These
   classes replace every one of them (a couple of the removed inline
   styles were exact duplicates of a rule the element's own class already
   applies — `.confirm-card`'s base layout, `.confirm-card span`'s type —
   deleted rather than reclassed). */

.wizard-form { display: grid; gap: 20px; max-width: 560px; }
.field-group { border: 0; padding: 0; margin: 0; }
.field-legend { font-weight: 600; font-size: 14px; margin-bottom: 8px; padding: 0; }
.option-list { display: flex; flex-direction: column; gap: 6px; }
.option-row { display: flex; align-items: center; gap: 8px; font-size: 13.5px; cursor: pointer; }
.fineprint-error { color: var(--alert); }
.textarea-full { width: 100%; font: inherit; }
details > .teaser-row { margin-top: 12px; }
.teaser-row input:first-of-type { flex: 1.4; }

/* ---------- box-label cards (shared shape used across pages) ---------- */

.rail-card, .ed-card {
  box-shadow: var(--label-shadow);
}

/* ---------- motion ---------- */

@media (prefers-reduced-motion: no-preference) {
  .screen-in { animation: fade-in .25s ease; }
  @keyframes fade-in {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: none; }
  }
}

/* ---------- responsive: tablet ---------- */

@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .pillar { border-right: none; border-bottom: 1px solid var(--line-soft); }
  .pillar:last-child { border-bottom: none; }
  .ed-grid { grid-template-columns: 1fr; }
}

/* ---------- responsive: nav collapse (site nav, not a bottom tab bar) ---------- */

@media (max-width: 700px) {
  .site-nav { padding: 14px 20px; flex-wrap: wrap; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 10px 20px 16px;
    z-index: 30;
  }
  .nav-links.open { display: flex; }
  .site-nav a.nav-link { padding: 8px 0; width: 100%; }
  .nav-right { margin-left: 0; flex-direction: column; align-items: flex-start; gap: 10px; width: 100%; padding-top: 6px; }
  .nav-right .btn { width: 100%; }
}

/* ---------- responsive: phone (type scale + spacing from mockup-mobile.html) ---------- */

@media (max-width: 480px) {
  body { font-size: 14.5px; }
  .hero { padding: 26px 16px 24px; }
  .hero h1 { font-size: 31px; line-height: 1.1; margin-top: 12px; max-width: none; }
  .hero .lede { margin-top: 12px; font-size: 14.5px; }
  .hero .cta-group { display: grid; gap: 9px; }
  .hero .cta-group .btn { width: 100%; text-align: center; }

  .teaser { margin: 20px 0 0; padding: 16px 14px 14px; border-radius: 12px; }
  .teaser-row { flex-direction: column; }
  .teaser input { width: 100%; margin-bottom: 8px; }
  .confirm-card { border-radius: 10px; }
  .snapshot { border-radius: 6px; padding: 13px 13px 12px; }
  .score-num { font-size: 32px; }

  .pillar { padding: 20px 16px 22px; }
  .pillar h3 { font-size: 19px; }

  .editions { padding: 22px 16px 4px; }
  .nightdrop-strip { margin: 14px 0 0; padding: 12px 14px; }

  .site-footer { padding: 20px 16px 24px; }

  .pitch { padding: 26px 16px 30px; }
  .auth-page { padding: 26px 16px 30px; }
  .lib { padding: 22px 16px 4px; }
  .acct { padding: 22px 16px 4px; }
  .track-row { flex-direction: column; }
}

/* ---------- legal pages (Terms, Privacy, Refund/Revision, AI Disclosure) ---------- */

.legal-doc {
  max-width: 74ch;
  margin: 0 auto;
  padding: 44px 24px 64px;
}
.legal-doc h1 { font-family: var(--serif); font-size: 26px; font-weight: 600; line-height: 1.25; margin-bottom: 14px; }
.legal-doc h2 { font-family: var(--serif); font-size: 19px; font-weight: 600; margin: 30px 0 10px; }
.legal-doc h3 { font-family: var(--serif); font-size: 16px; font-weight: 600; margin: 22px 0 8px; }
.legal-doc p { margin: 12px 0; color: var(--ink); }
.legal-doc p em, .legal-doc li em { font-style: italic; color: var(--muted); }
.legal-doc strong { font-weight: 700; }
.legal-doc hr { border: none; border-top: 1px solid var(--line); margin: 28px 0; }
.legal-doc ul { margin: 10px 0 10px 22px; }
.legal-doc li { margin: 6px 0; }
.legal-doc blockquote {
  margin: 16px 0;
  padding: 10px 16px;
  border-left: 3px solid var(--amber);
  background: var(--paper);
  color: var(--muted);
  font-style: italic;
}
.legal-doc blockquote p { margin: 0; }
.legal-doc code {
  font-family: var(--mono);
  font-size: 12.5px;
  background: var(--line-soft);
  padding: 1px 5px;
  border-radius: 3px;
}
.legal-doc pre {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
  overflow-x: auto;
  margin: 16px 0;
}
.legal-doc pre code { background: none; padding: 0; }
.legal-doc mark {
  background: var(--amber-wash);
  color: var(--amber-deep);
  padding: 1px 5px;
  border-radius: 3px;
  font-family: var(--mono);
  font-size: 12.5px;
}
.legal-doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 13.5px;
}
.legal-doc th, .legal-doc td {
  border: 1px solid var(--line);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}
.legal-doc th { background: var(--line-soft); font-weight: 700; }

@media (max-width: 480px) {
  .legal-doc { padding: 28px 16px 44px; }
  .legal-doc h1 { font-size: 22px; }
}
