/* ─────────────────────────────────────────────────────────────────────
   VIBE DUNGEON · legal-page chrome
   Shared by /terms/, /privacy/, /trust/ and any future legal document
   page (e.g. /2257/, /dmca/). The marketing page does not load this
   file. Reads tokens from site.css.

   Tone: a prestige brand whispers its identity in legal pages, it
   doesn't shout it. Same tokens, lower brand volume.
   ───────────────────────────────────────────────────────────────────── */

/* [LAW:one-source-of-truth] Legal-page chrome lives in exactly one
   file — extracting this prevented three duplicated copies the moment
   the legal pages were created. */

.doc-nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-4); padding: var(--s-4) 0;
  border-bottom: 1px solid var(--hairline);
}
.doc-nav .links { display: flex; gap: var(--s-4); align-items: center; }
.doc-nav .links a { color: var(--ink-muted); font-size: var(--t-small);
  font-weight: 500; transition: color .15s ease; }
.doc-nav .links a:hover { color: var(--ink); }
.doc-nav .links a[aria-current="page"] { color: var(--ink); }

.doc { max-width: 720px; margin-inline: auto;
  padding-block: var(--s-7) var(--s-7); }
.doc .meta { color: var(--ink-dim); font-size: var(--t-small);
  margin-top: var(--s-3); letter-spacing: 0.02em; }
.doc h1 { font-family: var(--font-display); font-size: var(--t-h2);
  letter-spacing: -0.01em; line-height: 1.05; }
.doc h1 em { color: var(--accent-soft); font-style: italic; }

.doc .disclosure {
  margin: var(--s-5) 0 var(--s-6);
  padding: var(--s-4) var(--s-5);
  background: linear-gradient(180deg, var(--surface-top), var(--surface));
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
  font-size: var(--t-body-small); color: var(--on-surface-muted); line-height: 1.6;
}
.doc .disclosure strong { color: var(--ink); font-weight: 500; }

.doc .toc {
  margin: var(--s-5) 0 var(--s-6);
  padding: var(--s-4) var(--s-5);
  border-radius: var(--r-card);
  box-shadow: inset 0 0 0 1px var(--ring);
  font-size: var(--t-small);
}
.doc .toc h2 { font-family: var(--font-sans); font-size: var(--t-tiny);
  text-transform: uppercase; letter-spacing: var(--tracking-tag);
  color: var(--ink-muted); margin-bottom: var(--s-3); font-weight: 600; }
.doc .toc ol { list-style: none; counter-reset: toc; padding: 0;
  display: grid; gap: 0.4em; }
.doc .toc ol li { counter-increment: toc; }
.doc .toc ol li::before { content: counter(toc, decimal-leading-zero) ".  ";
  color: var(--ink-dim); font-family: var(--font-mono); font-size: 0.85em; }
.doc .toc a { color: var(--ink-muted); transition: color .15s ease; }
.doc .toc a:hover { color: var(--ink); }

.doc article { counter-reset: section; }
.doc article > section {
  padding-block: var(--s-5);
  border-top: 1px solid var(--hairline);
  counter-increment: section;
}
.doc article > section:first-of-type { border-top: 0; padding-top: var(--s-4); }
.doc article > section h2 {
  font-family: var(--font-display); font-size: 1.75rem;
  letter-spacing: -0.01em; line-height: 1.15;
  margin-bottom: var(--s-3);
}
.doc article > section h2::before {
  content: counter(section, decimal-leading-zero) "  ";
  color: var(--accent-soft); font-family: var(--font-mono);
  font-size: 0.7em; vertical-align: 0.2em; letter-spacing: 0.02em;
  margin-right: 0.3em; font-style: normal;
}
.doc h3 { font-family: var(--font-display); font-size: 1.2rem;
  margin-top: var(--s-4); margin-bottom: var(--s-2); color: var(--ink); }
.doc p { color: var(--on-surface-muted); margin-bottom: var(--s-3);
  font-size: var(--t-body); line-height: 1.65; }
.doc ul, .doc ol.body-list { color: var(--on-surface-muted);
  padding-left: var(--s-5); margin-bottom: var(--s-3); }
.doc ul li, .doc ol.body-list li { margin-bottom: var(--s-2); line-height: 1.6; }
.doc strong { color: var(--ink); font-weight: 500; }
/* In-body links. The previous --accent-soft text (3.88:1 on the doc
   surface) failed WCAG 1.4.3 for normal text. Lifted to --ink (cream)
   so the text meets contrast; the wine identity moves into the
   underline alone, which keeps the editorial "cream type, wine rule"
   look and stays within the brand's wine-restraint budget. Hover
   swaps the underline to the brighter accent-soft for affordance. */
.doc a:not(.btn) { color: var(--ink); border-bottom: 1px solid var(--accent-edge);
  transition: color .15s ease, border-color .15s ease; }
.doc a:not(.btn):hover { color: var(--ink-bright); border-color: var(--accent-soft); }
.doc .contact-block {
  margin-top: var(--s-5);
  padding: var(--s-4) var(--s-5);
  border-radius: var(--r-card);
  background: var(--bg-2);
  box-shadow: inset 0 0 0 1px var(--ring);
  font-family: var(--font-mono); font-size: var(--t-small);
  color: var(--on-surface-muted);
}
.doc .contact-block strong { color: var(--ink); font-weight: 500; }

@media (max-width: 560px) {
  .doc-nav .links { gap: var(--s-3); }
  .doc-nav .links .home-link { display: none; }
  .doc article > section h2 { font-size: 1.45rem; }
}
