/* ==========================================================================
   FairPlayWatch — core stylesheet
   Strict / institutional visual system. No external dependencies.
   ========================================================================== */

/* --- 1. Tokens ----------------------------------------------------------- */
:root {
  --bg:          #ffffff;
  --bg-alt:      #f4f5f7;
  --bg-deep:     #10151c;
  --ink:         #10151c;
  --ink-2:       #4a5462;
  --ink-3:       #737e8d;
  --line:        #d9dde3;
  --line-2:      #e9ebef;
  --accent:      #14396b;
  --accent-ink:  #ffffff;
  --accent-soft: #eaeff6;
  --warn:        #8c2b1e;
  --ok:          #1f5c3d;

  --w-max:   1200px;
  --w-text:  70ch;
  --gut:     24px;

  --f-sans: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "SFMono-Regular", "Consolas", "Liberation Mono", Menlo, monospace;

  --step:  1.6;
  --dur:   .22s;
  --ease:  cubic-bezier(.4, 0, .2, 1);
}

/* --- 2. Reset ------------------------------------------------------------ */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: var(--step);
  font-feature-settings: "kern" 1, "liga" 1;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, figure, dl { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* --- 3. Typography ------------------------------------------------------- */
h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -.015em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2.05rem); }
h3 { font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); }
h4 { font-size: 1rem; }

p { text-wrap: pretty; }

.eyebrow {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 14px;
}

.lede {
  font-size: clamp(1.02rem, .97rem + .3vw, 1.18rem);
  color: var(--ink-2);
  max-width: 62ch;
}

.muted { color: var(--ink-2); }
.small { font-size: .875rem; }

/* --- 4. Layout ----------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--w-max);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.section { padding-block: clamp(56px, 6vw, 96px); }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section--tight { padding-block: clamp(40px, 4vw, 64px); }

.section-head {
  max-width: 68ch;
  margin-bottom: clamp(32px, 4vw, 52px);
}
.section-head p { margin-top: 14px; color: var(--ink-2); }

.grid { display: grid; gap: clamp(20px, 2.4vw, 32px); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

@media (max-width: 900px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

.rule {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 0;
}

/* --- 5. Header ----------------------------------------------------------- */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
}
.skip:focus { left: 8px; top: 8px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header.is-stuck { box-shadow: 0 1px 0 rgba(16, 21, 28, .06), 0 8px 24px -18px rgba(16, 21, 28, .5); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
  flex: 0 0 auto;
}
.brand:hover { text-decoration: none; }
.brand__mark { width: 30px; height: 30px; flex: 0 0 auto; }
.brand__name {
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -.01em;
}
.brand__name span { color: var(--accent); }
.brand__tag {
  display: block;
  font-size: .62rem;
  font-weight: 500;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 1px;
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  display: block;
  padding: 9px 12px;
  font-size: .855rem;
  font-weight: 500;
  color: var(--ink-2);
  border-bottom: 2px solid transparent;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.nav a:hover { color: var(--ink); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }

.header-actions { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--line);
  cursor: pointer;
}
.nav-toggle span {
  position: relative;
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  transition: background var(--dur) var(--ease);
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  transition: transform var(--dur) var(--ease);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 940px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed;
    inset: 68px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 8px var(--gut) 20px;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur);
    max-height: calc(100vh - 68px);
    overflow-y: auto;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav a {
    padding: 14px 2px;
    border-bottom: 1px solid var(--line-2);
    font-size: .95rem;
  }
  .nav a[aria-current="page"] { border-bottom-color: var(--accent); }
  .header-actions .btn { display: none; }
}

/* --- 6. Buttons ---------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 22px;
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .01em;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
  cursor: pointer;
  text-decoration: none;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.btn:hover { background: #0d2b53; border-color: #0d2b53; text-decoration: none; }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

.btn--sm { padding: 9px 16px; font-size: .8rem; }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  font-size: .875rem;
}
.link-arrow::after {
  content: "→";
  transition: transform var(--dur) var(--ease);
}
.link-arrow:hover { text-decoration: none; }
.link-arrow:hover::after { transform: translateX(3px); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* --- 7. Hero ------------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--bg-deep);
  color: #fff;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 80% at 70% 0%, #000 20%, transparent 75%);
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  padding-block: clamp(64px, 8vw, 116px);
}
.hero .eyebrow { color: #8fa6c4; }
.hero h1 { color: #fff; }
.hero p.lede { color: #b9c3d0; margin-top: 20px; }
.hero .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .28); }
.hero .btn--ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }

.hero__panel {
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .035);
  padding: 26px;
}
.hero__panel h3 {
  font-size: .74rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #8fa6c4;
  font-weight: 600;
  margin-bottom: 18px;
}
.hero__list li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  padding: 13px 0;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: .9rem;
  color: #ccd5e0;
}
.hero__list li b { color: #fff; font-weight: 600; display: block; }
.hero__list li i {
  font-style: normal;
  font-family: var(--f-mono);
  font-size: .72rem;
  color: #6f86a5;
  padding-top: 3px;
}

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
}

/* --- 8. Page header (interior pages) ------------------------------------- */
.page-head {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(40px, 5vw, 68px);
}
.page-head h1 { max-width: 22ch; }
.page-head .lede { margin-top: 16px; }

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  color: var(--ink-3);
  margin-bottom: 18px;
}
.crumbs a { color: var(--ink-3); }
.crumbs a:hover { color: var(--ink); }
.crumbs span[aria-hidden] { opacity: .5; }

/* --- 9. Cards ------------------------------------------------------------ */
.card {
  border: 1px solid var(--line);
  background: var(--bg);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.card:hover { border-color: var(--ink-3); }
.card__num {
  font-family: var(--f-mono);
  font-size: .72rem;
  letter-spacing: .1em;
  color: var(--accent);
}
.card h3 { margin-bottom: 2px; }
.card p { color: var(--ink-2); font-size: .93rem; }
.card ul.ticks { margin-top: 4px; }

.icon-box {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 6px;
}
.icon-box svg { width: 20px; height: 20px; }

/* Numbered process list */
.steps { counter-reset: step; display: grid; gap: 0; }
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--f-mono);
  font-size: .82rem;
  color: var(--accent);
  padding-top: 3px;
}
.steps h3 { margin-bottom: 6px; }
.steps p { color: var(--ink-2); font-size: .93rem; max-width: 64ch; }

/* Ticks list */
.ticks li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 9px;
  font-size: .93rem;
  color: var(--ink-2);
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .5em;
  width: 10px;
  height: 6px;
  border-left: 1.6px solid var(--accent);
  border-bottom: 1.6px solid var(--accent);
  transform: rotate(-45deg);
}
.ticks--warn li::before {
  border-color: var(--warn);
  transform: none;
  top: .55em;
  width: 8px;
  height: 8px;
  border: 0;
  background: var(--warn);
}

/* --- 10. Stats ----------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  background: var(--bg);
}
.stats div {
  padding: 28px 24px;
  border-right: 1px solid var(--line);
}
.stats div:last-child { border-right: 0; }
.stats dt {
  font-size: .74rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 8px;
}
.stats dd {
  margin: 0;
  font-size: clamp(1.8rem, 1.4rem + 1.4vw, 2.5rem);
  font-weight: 650;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 860px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats div:nth-child(2) { border-right: 0; }
  .stats div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 480px) {
  .stats { grid-template-columns: 1fr; }
  .stats div { border-right: 0; border-bottom: 1px solid var(--line); }
  .stats div:last-child { border-bottom: 0; }
}

/* --- 11. Callout / notice ------------------------------------------------ */
.notice {
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  background: var(--bg-alt);
  padding: 20px 24px;
  font-size: .92rem;
  color: var(--ink-2);
}
.notice strong { color: var(--ink); }
.notice--warn { border-left-color: var(--warn); }

/* --- 12. Accordion (FAQ) ------------------------------------------------- */
.accordion { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-trigger {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0;
  background: none;
  border: 0;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -.01em;
  cursor: pointer;
  color: var(--ink);
}
.acc-trigger:hover { color: var(--accent); }
.acc-trigger::after {
  content: "";
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  margin-top: 7px;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg);
  transition: transform var(--dur) var(--ease);
}
.acc-trigger[aria-expanded="true"]::after { transform: rotate(-135deg); }
.acc-panel {
  overflow: hidden;
  height: 0;
  transition: height var(--dur) var(--ease);
}
.acc-panel > div { padding: 0 0 22px; max-width: var(--w-text); }
.acc-panel p { color: var(--ink-2); font-size: .93rem; }
.acc-panel p + p { margin-top: 12px; }

/* --- 13. Forms ----------------------------------------------------------- */
.form { display: grid; gap: 20px; }
.field { display: grid; gap: 7px; }
.field label {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.field label .req { color: var(--warn); }
.field .hint { font-size: .8rem; color: var(--ink-3); }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--ink);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.field textarea { min-height: 148px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: var(--warn); }

.error {
  font-size: .8rem;
  color: var(--warn);
  min-height: 0;
}
.error:empty { display: none; }

.check {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 12px;
  align-items: start;
  font-size: .875rem;
  color: var(--ink-2);
}
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--accent); }

.form-note {
  font-size: .8rem;
  color: var(--ink-3);
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.form-status {
  padding: 16px 20px;
  border: 1px solid var(--ok);
  background: #f0f7f3;
  color: var(--ok);
  font-size: .9rem;
  font-weight: 500;
}
.form-status[hidden] { display: none; }

.form-panel {
  border: 1px solid var(--line);
  padding: clamp(24px, 3vw, 36px);
  background: var(--bg);
}

/* --- 14. Self-check tool ------------------------------------------------- */
.quiz { border: 1px solid var(--line); background: var(--bg); }
.quiz__body { padding: clamp(24px, 3vw, 32px); }
.quiz__q {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-2);
  font-size: .93rem;
}
.quiz__q:last-of-type { border-bottom: 0; }
.quiz__opts { display: flex; gap: 6px; flex: 0 0 auto; }
.quiz__opts label {
  border: 1px solid var(--line);
  padding: 6px 14px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  color: var(--ink-2);
  transition: all var(--dur) var(--ease);
}
.quiz__opts input { position: absolute; opacity: 0; pointer-events: none; }
.quiz__opts input:checked + span,
.quiz__opts label:has(input:checked) {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.quiz__opts label:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }

.quiz__foot {
  border-top: 1px solid var(--line);
  padding: 22px clamp(24px, 3vw, 32px);
  background: var(--bg-alt);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}
.quiz__result { font-size: .92rem; color: var(--ink-2); max-width: 60ch; }
.quiz__result strong { color: var(--ink); }
@media (max-width: 560px) {
  .quiz__q { grid-template-columns: 1fr; }
}

/* --- 15. Directory / table ----------------------------------------------- */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); }
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
  min-width: 620px;
}
table.data th,
table.data td {
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-2);
  vertical-align: top;
}
table.data thead th {
  background: var(--bg-alt);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
table.data tbody tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover { background: var(--bg-alt); }

.tag {
  display: inline-block;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 3px 9px;
  border: 1px solid var(--line);
  color: var(--ink-2);
  background: var(--bg-alt);
  white-space: nowrap;
}
.tag--ok   { color: var(--ok);   border-color: #b9d6c6; background: #f0f7f3; }
.tag--warn { color: var(--warn); border-color: #e0bdb7; background: #fbf1ef; }

/* --- 16. Legal documents ------------------------------------------------- */
.legal {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.toc {
  position: sticky;
  top: 96px;
  border: 1px solid var(--line);
  padding: 22px;
  background: var(--bg);
}
.toc h2 {
  font-size: .72rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 600;
  margin-bottom: 14px;
}
.toc ol { counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a {
  display: block;
  padding: 6px 0 6px 26px;
  position: relative;
  font-size: .84rem;
  color: var(--ink-2);
  line-height: 1.4;
  border-left: 2px solid transparent;
  margin-left: -22px;
  padding-left: 24px;
}
.toc a::before {
  content: counter(toc) ".";
  position: absolute;
  left: 24px;
  font-family: var(--f-mono);
  font-size: .72rem;
  color: var(--ink-3);
}
.toc a { padding-left: 48px; }
.toc a:hover { color: var(--ink); text-decoration: none; }
.toc a.is-active {
  color: var(--accent);
  font-weight: 600;
  border-left-color: var(--accent);
}

.doc { max-width: var(--w-text); }
.doc__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  border: 1px solid var(--line);
  background: var(--bg-alt);
  padding: 16px 20px;
  font-size: .82rem;
  color: var(--ink-2);
  margin-bottom: 36px;
}
.doc__meta b { color: var(--ink); font-weight: 600; }

.doc section { padding-top: 8px; margin-bottom: 40px; }
.doc h2 {
  font-size: 1.28rem;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
}
.doc h2 .n {
  font-family: var(--f-mono);
  font-size: .8rem;
  color: var(--accent);
  margin-right: 10px;
  font-weight: 500;
}
.doc h3 { margin: 24px 0 8px; font-size: 1.02rem; }
.doc p { color: var(--ink-2); margin-bottom: 14px; }
.doc ul:not(.ticks), .doc ol:not(.ticks) {
  margin: 0 0 16px;
  padding-left: 22px;
  color: var(--ink-2);
}
.doc ul:not(.ticks) { list-style: square; }
.doc ol:not(.ticks) { list-style: decimal; }
.doc li { margin-bottom: 8px; }
.doc li::marker { color: var(--ink-3); }
.doc strong { color: var(--ink); }
.doc dl { margin-bottom: 16px; }
.doc dt { font-weight: 600; margin-top: 14px; }
.doc dd { margin: 4px 0 0; color: var(--ink-2); }

/* Legal entity card inside a document */
.entity {
  border: 1px solid var(--line);
  background: var(--bg);
  margin: 4px 0 22px;
}
.entity__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 20px;
  padding: 16px 22px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
}
.entity__head b {
  font-size: 1.06rem;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--ink);
}
.entity__head span {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.doc .entity__grid {
  margin: 0;
  padding: 4px 22px 16px;
}
.entity__grid > div {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 6px 20px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line-2);
}
.entity__grid > div:last-child { border-bottom: 0; }
.doc .entity__grid dt {
  margin: 0;
  padding-top: 2px;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.doc .entity__grid dd {
  margin: 0;
  font-size: .91rem;
  line-height: 1.5;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.entity__foot {
  border-top: 1px solid var(--line);
  background: var(--bg-alt);
  padding: 13px 22px;
  font-size: .78rem;
  color: var(--ink-3);
}
@media (max-width: 640px) {
  .entity__grid > div { grid-template-columns: 1fr; gap: 3px; }
}

@media (max-width: 900px) {
  .legal { grid-template-columns: 1fr; }
  .toc { position: static; }
}

/* --- 17. CTA band -------------------------------------------------------- */
.band {
  background: var(--bg-deep);
  color: #fff;
}
.band__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: center;
  justify-content: space-between;
  padding-block: clamp(44px, 5vw, 64px);
}
.band h2 { color: #fff; max-width: 24ch; }
.band p { color: #b9c3d0; margin-top: 12px; max-width: 52ch; font-size: .95rem; }
.band .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .28); }
.band .btn--ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* --- 18. Footer ---------------------------------------------------------- */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  padding-top: clamp(48px, 5vw, 68px);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: clamp(28px, 3vw, 48px);
  padding-bottom: 44px;
}
.footer-grid p { font-size: .875rem; color: var(--ink-2); margin-top: 16px; max-width: 38ch; }
.footer-grid h3 {
  font-size: .72rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 600;
  margin-bottom: 14px;
}
.footer-grid li { margin-bottom: 9px; }
.footer-grid li a { font-size: .875rem; color: var(--ink-2); }
.footer-grid li a:hover { color: var(--accent); }

/* Legal entity / imprint block */
.imprint {
  border-top: 1px solid var(--line);
  padding-block: 26px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 20px 32px;
  margin: 0;
}
.imprint dt {
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 6px;
}
.imprint dd {
  margin: 0;
  font-size: .8rem;
  line-height: 1.5;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.imprint dd b { color: var(--ink); font-weight: 600; }

.footer-bar {
  border-top: 1px solid var(--line);
  padding-block: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  align-items: center;
  justify-content: space-between;
  font-size: .8rem;
  color: var(--ink-3);
}
.footer-bar ul { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-bar a { color: var(--ink-3); }
.footer-bar a:hover { color: var(--ink); }

.age-badge {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1.5px solid var(--warn);
  border-radius: 50%;
  color: var(--warn);
  font-size: .72rem;
  font-weight: 700;
  flex: 0 0 auto;
}

@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* --- 19. Back to top ----------------------------------------------------- */
.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 50;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: #fff;
  border: 0;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--accent); }

/* --- 20. Reveal on scroll ------------------------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

/* --- 21. Print ----------------------------------------------------------- */
@media print {
  .site-header, .site-footer, .to-top, .toc, .band, .btn-row { display: none !important; }
  body { font-size: 11pt; }
  .legal { grid-template-columns: 1fr; }
  .doc { max-width: none; }
  a { color: inherit; text-decoration: underline; }
  .reveal { opacity: 1; transform: none; }
}
