/* Gedeelde stijl voor de juridische pagina's (privacy.html, voorwaarden.html).
   De huisstijltokens komen overeen met index.html. */

:root {
  --red: #C4161C;
  --red-deep: #9E1015;
  --gold: #F2B705;
  --ink: #14171B;
  --muted: #5F6772;
  --line: #DDDFE3;
  --ground: #F5F5F3;
  --surface: #FFFFFF;
  --text: #14171B;
  --on-dark: #F7F7F5;
  --on-dark-muted: #B8BDC4;
  --dark-ground: #0F1215;
  --shadow: 0 18px 40px -22px rgba(20, 23, 27, .45);
  --radius: 6px;
  --gutter: clamp(16px, 3.5vw, 40px);
  --max: 1060px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #0F1215; --surface: #171B20; --text: #F1F2F0;
    --muted: #9AA1AA; --line: #2C323A; --ink: #F1F2F0;
    --shadow: 0 18px 40px -22px rgba(0, 0, 0, .8);
  }
}
:root[data-theme="dark"] {
  --ground: #0F1215; --surface: #171B20; --text: #F1F2F0;
  --muted: #9AA1AA; --line: #2C323A; --ink: #F1F2F0;
  --shadow: 0 18px 40px -22px rgba(0, 0, 0, .8);
}

* { box-sizing: border-box; }
/* Het hidden-attribuut moet altijd winnen. Zonder deze regel overschrijft een
   class met display (.sent, .btn) de standaard van de browser, en blijft een
   element dat verborgen hoort te zijn gewoon staan. */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--ground); color: var(--text);
  font-family: "Barlow", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 {
  font-family: "Barlow Condensed", "Arial Narrow", "Barlow", sans-serif;
  text-transform: uppercase; letter-spacing: .01em; line-height: 1;
  margin: 0; text-wrap: balance;
}
p { margin: 0; }
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* Knoppen */
.btn {
  font-family: "Barlow Condensed", sans-serif; text-transform: uppercase;
  letter-spacing: .08em; font-weight: 700; font-size: 16px;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 20px; border-radius: var(--radius); text-decoration: none;
  border: 2px solid transparent; cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-red { background: var(--red); color: #fff; border-color: var(--red); }
.btn-red:hover { background: var(--red-deep); border-color: var(--red-deep); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--text); }
.btn-outline:hover { background: var(--text); color: var(--ground); }

/* Header */
.top {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--dark-ground); color: var(--on-dark);
  border-bottom: 3px solid var(--red);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 72px; }
.brand { display: inline-flex; align-items: center; flex: none; text-decoration: none; }
.brand img { height: 48px; width: auto; display: block; }
@media (max-width: 420px) { .brand img { height: 38px; } }
.nav { display: flex; gap: 28px; align-items: center; }
.nav a { text-decoration: none; font-family: "Barlow Condensed", sans-serif; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; font-size: 16px; color: var(--on-dark-muted); }
.nav a:hover { color: #fff; }
.nav .btn { padding: 10px 18px; font-size: 15px; }
.menu-btn { display: none; background: none; border: 0; color: #fff; padding: 8px; cursor: pointer; }
@media (max-width: 860px) {
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--dark-ground); border-bottom: 3px solid var(--red); padding: 8px var(--gutter) 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav .btn { margin-top: 12px; justify-content: center; border-bottom: 0; }
  .menu-btn { display: block; }
}

/* Paginakop */
.page-head { background: var(--dark-ground); color: var(--on-dark); padding-block: clamp(36px, 5vw, 60px) clamp(28px, 4vw, 44px); }
.page-head .eyebrow {
  font-family: "Barlow Condensed", sans-serif; text-transform: uppercase;
  letter-spacing: .16em; font-weight: 600; font-size: 14px; color: var(--gold);
  display: inline-flex; align-items: center; gap: 12px;
}
.page-head .eyebrow::before { content: ""; width: 34px; height: 3px; background: var(--gold); }
.page-head h1 { font-size: clamp(34px, 5vw, 54px); font-weight: 800; margin-block: 12px 14px; }
.page-head p { color: var(--on-dark-muted); max-width: 62ch; }

/* Documentindeling */
.doc { padding-block: clamp(32px, 4vw, 52px); }
.doc .wrap { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(24px, 3.5vw, 44px); align-items: start; }
@media (max-width: 900px) { .doc .wrap { grid-template-columns: 1fr; } }

.toc {
  position: sticky; top: calc(72px + env(safe-area-inset-top, 0px) + 24px);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow);
}
@media (max-width: 900px) { .toc { position: static; } }
.toc h2 { font-size: 18px; font-weight: 700; margin-bottom: 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.toc li { counter-increment: toc; margin-bottom: 8px; font-size: 15px; }
.toc li::before { content: counter(toc) "."; color: var(--red); font-weight: 600; margin-right: 8px; }
.toc a { text-decoration: none; color: var(--muted); }
.toc a:hover { color: var(--red); text-decoration: underline; }

article h2 {
  font-size: clamp(23px, 2.6vw, 31px); font-weight: 800;
  margin-block: 34px 12px; padding-top: 12px; border-top: 3px solid var(--red);
}
article > h2:first-of-type { margin-top: 0; }
article h3 { font-size: 19px; font-weight: 700; margin-block: 22px 7px; }
article p + p { margin-top: 14px; }
article ul, article ol.lettered { margin: 14px 0 0; padding-left: 22px; }
article li { margin-bottom: 8px; }
article a { color: var(--red); }
article code { background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 1px 6px; font-size: .92em; }
.updated { color: var(--muted); font-size: 15px; font-style: italic; }

.factbox {
  background: var(--surface); border: 1px solid var(--line);
  border-left: 4px solid var(--red); border-radius: var(--radius);
  padding: 18px 20px; margin-top: 16px;
}
.factbox dl { display: grid; grid-template-columns: minmax(150px, auto) 1fr; gap: 8px 20px; margin: 0; }
@media (max-width: 560px) { .factbox dl { grid-template-columns: 1fr; gap: 2px; } .factbox dd { margin-bottom: 12px; } }
.factbox dt { font-family: "Barlow Condensed", sans-serif; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; color: var(--muted); font-size: 15px; }
.factbox dd { margin: 0; }

.callout {
  background: var(--surface); border: 1px solid var(--line);
  border-left: 4px solid var(--gold); border-radius: var(--radius);
  padding: 18px 20px; margin-top: 18px; font-size: 16px;
}
.callout strong { display: block; font-family: "Barlow Condensed", sans-serif; text-transform: uppercase; letter-spacing: .08em; font-size: 16px; margin-bottom: 6px; }

table.data { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 16px; }
table.data th, table.data td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data th {
  font-family: "Barlow Condensed", sans-serif; text-transform: uppercase;
  letter-spacing: .08em; font-size: 15px; color: var(--muted);
  border-bottom: 2px solid var(--red);
}
.table-scroll { overflow-x: auto; }

.backlink { margin-top: 38px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px; }

/* Footer */
footer { background: var(--dark-ground); color: var(--on-dark-muted); border-top: 6px solid var(--red); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 28px; padding-block: 22px; align-items: center; }
footer .brand img { height: 56px; }
footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
footer nav a { text-decoration: none; text-transform: uppercase; letter-spacing: .1em; font-family: "Barlow Condensed", sans-serif; font-weight: 600; font-size: 15px; }
footer nav a:hover { color: #fff; }
footer .legal { width: 100%; border-top: 1px solid rgba(255,255,255,.1); padding-top: 16px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 14px; }
