/* Gedeelde stijl voor de juridische pagina's. Zelfde tokens als de rest van de site. */
/* ---------- tokens ---------- */
:root {
  --paper:      #EDEFE9;
  --surface:    #F6F7F3;
  --surface-2:  #E4E8DF;
  --ink:        #12211C;
  --ink-soft:   #57685F;
  --green:      #2C5B4B;
  --green-deep: #1D4438;
  --accent:     #C87A1E;
  --accent-ink: #96590F;
  --mark:       rgba(200, 122, 30, .34);
  --rule:       rgba(18, 33, 28, .15);
  --rule-firm:  rgba(18, 33, 28, .3);
  --header-bg:  rgba(237, 239, 233, .88);
  --shadow:     0 1px 0 rgba(18, 33, 28, .05);

  --font-display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, "Hoefler Text", Georgia, serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --step--1: .8125rem;
  --step-0:  1.0625rem;
  --step-1:  1.25rem;
  --step-2:  1.6rem;
  --step-3:  clamp(1.9rem, 3.4vw, 2.5rem);
  --step-4:  clamp(2.1rem, 5.4vw, 3.4rem);

  --gutter: clamp(20px, 5vw, 56px);
  --rail: 214px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper:      #0E1613;
    --surface:    #141F1B;
    --surface-2:  #1B2823;
    --ink:        #E6EDE6;
    --ink-soft:   #91A69C;
    --green:      #7FC5A8;
    --green-deep: #A5DBC3;
    --accent:     #E9A44B;
    --accent-ink: #E9A44B;
    --mark:       rgba(233, 164, 75, .32);
    --rule:       rgba(230, 237, 230, .15);
    --rule-firm:  rgba(230, 237, 230, .32);
    --header-bg:  rgba(14, 22, 19, .88);
    --shadow:     0 1px 0 rgba(0, 0, 0, .3);
  }
}

:root[data-theme="dark"] {
  --paper:      #0E1613;
  --surface:    #141F1B;
  --surface-2:  #1B2823;
  --ink:        #E6EDE6;
  --ink-soft:   #91A69C;
  --green:      #7FC5A8;
  --green-deep: #A5DBC3;
  --accent:     #E9A44B;
  --accent-ink: #E9A44B;
  --mark:       rgba(233, 164, 75, .32);
  --rule:       rgba(230, 237, 230, .15);
  --rule-firm:  rgba(230, 237, 230, .32);
  --header-bg:  rgba(14, 22, 19, .88);
  --shadow:     0 1px 0 rgba(0, 0, 0, .3);
}

:root[data-theme="light"] {
  --paper:      #EDEFE9;
  --surface:    #F6F7F3;
  --surface-2:  #E4E8DF;
  --ink:        #12211C;
  --ink-soft:   #57685F;
  --green:      #2C5B4B;
  --green-deep: #1D4438;
  --accent:     #C87A1E;
  --accent-ink: #96590F;
  --mark:       rgba(200, 122, 30, .34);
  --rule:       rgba(18, 33, 28, .15);
  --rule-firm:  rgba(18, 33, 28, .3);
  --header-bg:  rgba(237, 239, 233, .88);
  --shadow:     0 1px 0 rgba(18, 33, 28, .05);
}

/* ---------- base ---------- */
* { box-sizing: border-box; }

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

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.015em;
  text-wrap: balance;
  margin: 0;
}

p { margin: 0; }

a { color: inherit; }

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

.wrap {
  width: 100%;
  max-width: 1140px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.label {
  font-family: var(--font-mono);
  font-size: .6875rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--green);
  color: var(--paper);
  padding: 10px 16px;
  z-index: 20;
}
.skip:focus { left: 8px; top: 8px; }

/* ---------- header ---------- */
.masthead {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--rule);
}

.masthead .wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.28rem;
  letter-spacing: -.02em;
  margin-right: auto;
}
.brand svg { display: block; width: 28px; height: 28px; color: var(--green); flex: none; }
.brand b { font-weight: 600; }

.nav {
  display: none;
  gap: 26px;
  font-size: var(--step--1);
}
.nav a {
  text-decoration: none;
  color: var(--ink-soft);
  padding-block: 4px;
  border-bottom: 1px solid transparent;
  transition: color .18s ease, border-color .18s ease;
}
.nav a:hover { color: var(--ink); border-bottom-color: var(--accent); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }

@media (min-width: 860px) { .nav { display: flex; } }

.mailto {
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .04em;
  text-decoration: none;
  padding: 9px 15px;
  border: 1px solid var(--rule-firm);
  border-radius: 999px;
  white-space: nowrap;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.mailto:hover {
  background: var(--green);
  border-color: var(--green);
  color: var(--paper);
}

/* ---------- document head ---------- */
.doc-head { padding-block: clamp(44px, 8vh, 84px) clamp(28px, 4vh, 44px); }

.doc-head .label { display: block; margin-bottom: 20px; }

.doc-head h1 {
  font-size: var(--step-4);
  max-width: 20ch;
  margin-bottom: 24px;
}

.doc-head h1 .mark {
  background-image: linear-gradient(var(--mark), var(--mark));
  background-repeat: no-repeat;
  background-size: 100% .3em;
  background-position: 0 82%;
  padding-inline: .04em;
}

.lead {
  font-size: var(--step-1);
  color: var(--ink-soft);
  max-width: 58ch;
  line-height: 1.55;
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .05em;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}

/* ---------- layout ---------- */
.doc {
  display: grid;
  gap: 30px;
  padding-bottom: clamp(48px, 8vh, 88px);
  border-top: 1px solid var(--rule);
  padding-top: 30px;
}

@media (min-width: 1000px) {
  .doc {
    grid-template-columns: var(--rail) 1fr;
    gap: 56px;
  }
}

/* ---------- table of contents ---------- */
.toc { min-width: 0; }

.toc summary {
  list-style: none;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: .6875rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 12px 14px;
  border: 1px solid var(--rule);
  background: var(--surface);
  display: flex;
  align-items: center;
  gap: 10px;
}
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-left: auto;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform .2s ease;
}
.toc[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }

.toc ol {
  list-style: none;
  margin: 0;
  padding: 14px 0 0;
  display: grid;
  gap: 1px;
}

.toc a {
  display: grid;
  grid-template-columns: 1.7rem 1fr;
  gap: 8px;
  align-items: baseline;
  text-decoration: none;
  color: var(--ink-soft);
  font-size: .75rem;
  line-height: 1.35;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color .18s ease, border-color .18s ease;
}
.toc a:hover { color: var(--ink); border-bottom-color: var(--rule); }

.toc-no {
  font-family: var(--font-mono);
  font-size: .625rem;
  letter-spacing: .06em;
  color: var(--accent-ink);
  font-variant-numeric: tabular-nums;
}

@media (min-width: 1000px) {
  .toc {
    position: sticky;
    top: 92px;
    align-self: start;
    max-height: calc(100vh - 124px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .toc summary { display: none; }
  .toc ol { padding-top: 0; }
}

/* ---------- articles ---------- */
.doc-body { min-width: 0; display: grid; }

.art {
  padding-block: 34px;
  border-top: 1px solid var(--rule);
  scroll-margin-top: 88px;
}
.art:first-child { border-top: none; padding-top: 0; }

.art-no {
  font-family: var(--font-mono);
  font-size: .625rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent-ink);
  display: block;
  margin-bottom: 10px;
}

.art h2 {
  font-size: var(--step-2);
  max-width: 26ch;
  margin-bottom: 18px;
}

.art > p {
  max-width: 66ch;
  color: var(--ink-soft);
}
.art > p + p { margin-top: 14px; }

.clauses {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: clause;
  display: grid;
  gap: 14px;
  max-width: 70ch;
}

.clauses > li {
  counter-increment: clause;
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 4px;
  color: var(--ink-soft);
}

.clauses > li::before {
  content: counter(clause) ".";
  font-family: var(--font-mono);
  font-size: .8125rem;
  line-height: 2.12;
  letter-spacing: .04em;
  color: var(--accent-ink);
  font-variant-numeric: tabular-nums;
}

.clauses + p { margin-top: 14px; }

.sub {
  list-style: none;
  margin: 12px 0 0;
  padding: 0 0 0 2px;
  counter-reset: sub;
  display: grid;
  gap: 8px;
}

.sub > li {
  counter-increment: sub;
  display: grid;
  grid-template-columns: 1.6rem 1fr;
  gap: 4px;
  font-size: var(--step--1);
}

.sub > li::before {
  content: counter(sub, lower-alpha) ".";
  font-family: var(--font-mono);
  font-size: .75rem;
  line-height: 1.76;
  color: var(--ink-soft);
}

/* identity block */
.details {
  margin: 0 0 22px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 22px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--rule);
}

.details dt {
  font-family: var(--font-mono);
  font-size: .625rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 7px;
}

.details dd {
  margin: 0;
  font-size: var(--step--1);
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}

.details dd a { text-decoration-color: var(--accent); text-underline-offset: 3px; }

.todo {
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--accent-ink);
  border-bottom: 1px dashed currentColor;
}

/* callout */
.note {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  max-width: 66ch;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--green);
  font-size: var(--step--1);
  color: var(--ink-soft);
  line-height: 1.55;
}
.note svg { width: 20px; height: 20px; color: var(--green); flex: none; margin-top: 2px; }
.note strong { color: var(--ink); font-weight: 600; }

.doc-foot {
  border-top: 1px solid var(--rule);
  padding-top: 26px;
  margin-top: 34px;
  display: grid;
  gap: 14px;
  max-width: 66ch;
  font-size: var(--step--1);
  color: var(--ink-soft);
}
.doc-foot a { text-decoration-color: var(--accent); text-underline-offset: 3px; }

.btn {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  font-size: var(--step--1);
  letter-spacing: .01em;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1px solid var(--rule-firm);
  color: var(--ink);
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.btn:hover { border-color: var(--ink); background: var(--surface-2); }
.btn:active { transform: translateY(1px); }

/* ---------- footer ---------- */
.colophon {
  border-top: 1px solid var(--rule);
  padding-block: 30px 40px;
  font-family: var(--font-mono);
  font-size: .6875rem;
  letter-spacing: .06em;
  color: var(--ink-soft);
}
.colophon .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: baseline;
}
.colophon a { text-decoration: none; }
.colophon a:hover { color: var(--ink); }

/* ---------- motion ---------- */
.rise { animation: rise .7s cubic-bezier(.2, .7, .3, 1) both; }
.rise:nth-child(2) { animation-delay: .06s; }
.rise:nth-child(3) { animation-delay: .12s; }
.rise:nth-child(4) { animation-delay: .18s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

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

/* ---------- print ---------- */
@media print {
  .masthead, .toc, .colophon, .btn, .skip { display: none !important; }
  body { background: #fff; color: #000; font-size: 10.5pt; line-height: 1.45; }
  .doc { display: block; padding: 0; border: none; }
  .doc-head { padding-block: 0 18pt; }
  .art { break-inside: avoid; padding-block: 14pt; }
  .details, .note { background: none; border: 1px solid #999; }
  .clauses > li::before, .art-no, .todo { color: #000; }
}

/* ---------- veelgestelde vragen ---------- */
.faq { margin-top: 26px; border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 34px 16px 0;
  position: relative;
  font-family: var(--font-display);
  font-size: var(--step-1);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 24px;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid var(--ink-soft);
  border-bottom: 1.5px solid var(--ink-soft);
  transform: rotate(45deg);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq p { padding-bottom: 18px; color: var(--ink-soft); font-size: var(--step--1); max-width: 62ch; }
