/* ==========================================================================
   legal.css · Vires in Numeris
   Shared styles for the four standalone policy pages.

   Tokens below are lifted from the :root block in index.html so these pages
   match the site exactly. If the site palette changes, change it here too;
   this file is deliberately not generated from index.html because these pages
   must render even if the single-page app fails to boot.

   Naming note: this file uses its own semantic names (--paper-deep, --rule)
   rather than the site's (--sand, --line), because these pages have no
   swatch chips or spec rows to share them with. The hex values are identical.

   These pages are intentionally OUTSIDE the early-access gate. Payment
   processors, Shopify risk review and Google Merchant Center all need to
   read them without a password. Do not wrap them in the gate.
   ========================================================================== */

:root {
  /* --- lifted from index.html :root --- */
  --paper:      #FBFAF6;   /* site --paper */
  --paper-deep: #F0EADC;   /* site --sand, the footer panel beige */
  --ink:        #1B1915;   /* site --ink */
  --ink-soft:   #57524A;   /* site --ink-dim */
  --ink-faint:  #948E83;   /* site --ash */
  --rule:       #E8E3D8;   /* site --line */
  --orange:     #F7931A;   /* site --btc, for rules and focus rings */
  --orange-deep:#D97706;   /* site --btc-deep, for text on paper */

  --font-display: 'Playfair Display', 'Didot', serif;
  --font-body:    'Archivo', 'Helvetica Neue', sans-serif;
  --font-mono:    'IBM Plex Mono', 'SF Mono', monospace;

  --measure: 40rem;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- masthead ---------------------------------------------------------- */

.masthead {
  border-bottom: 1px solid var(--rule);
  padding: 1.75rem 0;
}

.masthead a {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}

.masthead a:hover { color: var(--orange-deep); }

/* --- document ---------------------------------------------------------- */

.doc { padding: 3.5rem 0 4rem; }

.doc h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 6vw, 2.75rem);
  line-height: 1.15;
  margin: 0 0 0.75rem;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 1.5rem;
}

.lede {
  font-size: 1.075rem;
  color: var(--ink-soft);
  margin: 0 0 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--rule);
}

.doc h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.4rem;
  line-height: 1.3;
  margin: 2.75rem 0 0.75rem;
}

.doc h3 {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 1.75rem 0 0.5rem;
}

.doc p { margin: 0 0 1.1rem; }

.doc ul { margin: 0 0 1.1rem; padding-left: 1.15rem; }
.doc li { margin-bottom: 0.5rem; }

.doc a { color: var(--ink); text-decoration: underline; text-underline-offset: 0.18em; }
.doc a:hover { color: var(--orange-deep); }

.doc strong { font-weight: 600; }

/* Callout: only for clauses a buyer genuinely needs to read before paying.
   Kept sparse so it stays meaningful. */
.note {
  background: var(--paper-deep);
  border-left: 2px solid var(--orange);
  padding: 1.1rem 1.25rem;
  margin: 1.75rem 0;
}

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

/* --- footer ------------------------------------------------------------ */

.doc-foot {
  border-top: 1px solid var(--rule);
  margin-top: 3.5rem;
  padding: 2rem 0 4rem;
}

.doc-foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.doc-foot a { color: var(--ink-faint); text-decoration: none; }
.doc-foot a:hover { color: var(--orange-deep); }
.doc-foot a[aria-current="page"] { color: var(--ink); }

/* --- accessibility floor ----------------------------------------------- */

a:focus-visible,
.masthead a:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

@media print {
  body { background: #fff; color: #000; font-size: 11pt; }
  .masthead, .doc-foot { display: none; }
  .note { border-left: 2px solid #000; background: none; }
  .doc { padding: 0; }
}
