/* ============================================================================
   SONNIS · document pages (intake, privacy, voorwaarden, verwerkersovereenkomst)
   The landing page is a scroll argument; these are documents. Same identity,
   different job: one column, generous measure, nothing that moves.
   ========================================================================== */

:root {
  --ink:        #0B1323;
  --ink-soft:   #46536E;
  --ink-faint:  #6C7A9C;
  --canvas:     #F8FAFC;
  --surface:    #FFFFFF;
  --teal:       #00C2A8;
  --teal-ink:   #067A6E;
  --navy:       #0B1323;
  --line:       color-mix(in oklab, #0B1323 12%, transparent);
  --line-soft:  color-mix(in oklab, #0B1323 8%, transparent);

  --font-display: "Satoshi", "Arial Black", system-ui, sans-serif;
  --font-text:    "Inter", system-ui, sans-serif;

  --r-sm: 6px; --r-md: 12px; --r-pill: 999px;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --measure: 40rem;
}

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

html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 400 1rem/1.65 var(--font-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--teal-ink); }
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid var(--teal-ink);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

.skip {
  position: fixed; top: -100px; left: 1rem; z-index: 50;
  background: var(--navy); color: #F8FAFC; text-decoration: none;
  padding: 0.6rem 1rem; border-radius: var(--r-sm);
}
.skip:focus-visible { top: 1rem; }

/* ------------------------------------------------------------- chrome ---- */
.dochead {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  padding: 1.1rem var(--gutter);
  border-bottom: 1px solid var(--line);
  background: color-mix(in oklab, #FFFFFF 70%, transparent);
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(8px);
}
.dochead__brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.wordmark {
  font-family: var(--font-display); font-weight: 900; font-size: 1.05rem;
  letter-spacing: 0.16em; color: var(--navy);
}
.dochead__kind {
  margin: 0;
  font: 600 0.66rem/1 var(--font-text); letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--ink-faint);
}

.docfoot {
  margin-top: clamp(3rem, 8vh, 6rem);
  padding: 2rem var(--gutter) 2.6rem;
  border-top: 1px solid var(--line);
  color: var(--ink-faint); font-size: 0.82rem; line-height: 1.7;
}
.docfoot p { margin: 0 0 0.4rem; }
.docfoot a { color: var(--ink-soft); margin-right: 1.2rem; }

/* ---------------------------------------------------------- document ----- */
.doc { padding: clamp(2.5rem, 7vh, 4.5rem) var(--gutter) 0; }
.doc__inner { max-width: var(--measure); margin-inline: auto; }
.doc__kicker {
  margin: 0 0 0.9rem;
  font: 600 0.68rem/1 var(--font-text); letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--teal-ink);
}
.doc__title {
  margin: 0;
  font: 700 clamp(1.9rem, 1.3rem + 2.4vw, 3rem)/1.08 var(--font-display);
  letter-spacing: -0.025em; text-wrap: balance;
}
.doc__lead {
  margin: 1.2rem 0 0; color: var(--ink-soft);
  font-size: 1.1rem; line-height: 1.6; text-wrap: pretty;
}
.doc__meta {
  margin: 2rem 0 0; padding: 1.1rem 1.3rem;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md);
  display: grid; gap: 0.35rem;
  font-size: 0.86rem; color: var(--ink-soft);
}
.doc__meta strong { color: var(--ink); font-weight: 600; }

.doc__body { max-width: var(--measure); margin: clamp(2.5rem, 6vh, 4rem) auto 0; }
.doc__body h2 {
  margin: clamp(2.4rem, 6vh, 3.4rem) 0 0.9rem;
  font: 700 clamp(1.25rem, 1.05rem + 0.7vw, 1.6rem)/1.2 var(--font-display);
  letter-spacing: -0.02em; text-wrap: balance;
  padding-top: 1.4rem; border-top: 1px solid var(--line);
}
.doc__body h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.doc__body h3 {
  margin: 1.8rem 0 0.6rem;
  font: 700 1.02rem/1.35 var(--font-display); letter-spacing: -0.01em;
}
.doc__body p, .doc__body li { color: var(--ink-soft); text-wrap: pretty; }
.doc__body p { margin: 0 0 1rem; }
.doc__body ul, .doc__body ol { margin: 0 0 1.2rem; padding-left: 1.3rem; }
.doc__body li { margin-bottom: 0.5rem; }
.doc__body strong { color: var(--ink); font-weight: 600; }
.doc__body dl { margin: 0 0 1.4rem; }
.doc__body dt { font-weight: 600; color: var(--ink); margin-top: 1rem; }
.doc__body dd { margin: 0.3rem 0 0; color: var(--ink-soft); }

/* clause numbering reads like the paper version it replaces */
.clauses { list-style: none; margin: 0 0 1.2rem; padding: 0; counter-reset: none; }
.clauses > li {
  position: relative; padding-left: 3rem; margin-bottom: 0.85rem;
  color: var(--ink-soft);
}
.clauses > li > .no {
  position: absolute; left: 0; top: 0;
  font-variant-numeric: tabular-nums; font-weight: 600;
  color: var(--teal-ink); font-size: 0.9rem;
}

.note {
  margin: 1.6rem 0; padding: 1.1rem 1.3rem;
  background: var(--surface); border: 1px solid var(--line);
  border-left: 3px solid var(--teal);
  border-radius: var(--r-md);
  color: var(--ink-soft); font-size: 0.94rem; line-height: 1.6;
}
.note strong { color: var(--ink); }

.tablewrap { overflow-x: auto; margin: 0 0 1.6rem; -webkit-overflow-scrolling: touch; }
table.doc {
  width: 100%; border-collapse: collapse; font-size: 0.88rem;
  min-width: 34rem;
}
table.doc th, table.doc td {
  text-align: left; vertical-align: top;
  padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--line-soft);
}
table.doc thead th {
  font: 600 0.66rem/1.3 var(--font-text); letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-faint);
  border-bottom: 1px solid var(--line);
}
table.doc tbody th { font-weight: 600; color: var(--ink); }
table.doc td { color: var(--ink-soft); }

/* -------------------------------------------------------------- toc ------ */
.toc {
  margin: 2.4rem 0 0; padding: 1.3rem 1.5rem;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.toc__h {
  margin: 0 0 0.8rem;
  font: 600 0.66rem/1 var(--font-text); letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--ink-faint);
}
.toc ol { margin: 0; padding-left: 1.2rem; columns: 2; column-gap: 2rem; }
.toc li { margin-bottom: 0.35rem; font-size: 0.88rem; break-inside: avoid; }
.toc a { color: var(--ink-soft); text-decoration: none; }
.toc a:hover { color: var(--teal-ink); text-decoration: underline; }
@media (max-width: 640px) { .toc ol { columns: 1; } }

/* ------------------------------------------------------------- button ---- */
.btn {
  display: inline-block; border: 0; cursor: pointer; text-decoration: none;
  font: 700 1rem/1 var(--font-display); letter-spacing: 0.01em;
  color: #04241D; background: var(--teal);
  padding: 0.95rem 1.7rem; border-radius: var(--r-pill);
  box-shadow: 0 2px 4px rgba(11, 19, 35, 0.14), 0 10px 24px -10px rgba(0, 194, 168, 0.7);
  transition: transform 140ms ease, background 140ms ease;
}
.btn:hover { background: #14D6BC; }
.btn:active { transform: translateY(1px) scale(0.99); }
.btn--ghost {
  background: none; color: var(--ink-soft);
  border: 1px solid var(--line); box-shadow: none;
}
.btn--ghost:hover { background: var(--surface); color: var(--ink); }
.btn[disabled] { opacity: 0.55; cursor: default; }

@media print {
  .dochead, .skip, .toc { display: none; }
  body { background: #fff; }
  .doc__body h2 { break-after: avoid; }
}
