/* =============================================================
   LOGICC — Bouw zelf je website
   Leeromgeving — stylesheet
   ============================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  /* Huisstijl LOGICC: donkerblauw #000024, crème #FAF5F1, goud #DBA85E. */
  --navy:        #000024;
  --navy-lift:   #070A2E;   /* alleen als bovenkant van het hero-verloop  */
  --navy-line:   rgba(255, 255, 255, .10);

  --cream:       #FAF5F1;
  --surface:     #FFFFFF;
  --surface-2:   #F1EAE3;

  --gold:        #DBA85E;
  --gold-hover:  #E5B972;
  --gold-deep:   #8F6522;   /* donkerder goud voor tekst op crème       */
  --gold-tint:   rgba(219, 168, 94, .16);
  --gold-tint-2: rgba(219, 168, 94, .30);

  --green:       #2E9E6B;

  --ink:         #15152E;
  --ink-soft:    #565A72;
  --ink-mute:    #6A6E85;
  --line:        rgba(0, 0, 36, .12);
  --line-soft:   rgba(0, 0, 36, .07);

  --font-head: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Roboto", "Helvetica Neue", Arial, sans-serif;

  --topbar-h: 64px;
  --sidebar-w: 348px;
  --page-x: clamp(20px, 4vw, 56px);
  --radius: 16px;
  --radius-sm: 10px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 36, .05), 0 4px 16px rgba(0, 0, 36, .06);
  --shadow-md: 0 2px 6px rgba(0, 0, 36, .06), 0 18px 46px rgba(0, 0, 36, .10);
  --shadow-player: 0 24px 60px rgba(0, 0, 36, .50);

  --ease: cubic-bezier(.22, .61, .36, 1);

  /* Pijltje voor de CTA-knoppen. Als masker, zodat hij de tekstkleur
     van de knop overneemt. */
  --arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 10h11M10.5 5.5 15 10l-4.5 4.5'/%3E%3C/svg%3E");
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.15; margin: 0; letter-spacing: -.015em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg, iframe, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }

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

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--gold); color: var(--navy);
  padding: 10px 16px; border-radius: 8px;
  font-family: var(--font-head); font-weight: 700; font-size: 14px;
  transition: top .18s var(--ease);
}
.skip-link:focus { top: 12px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- 3. Topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 60;
  height: var(--topbar-h);
  display: flex; align-items: center; gap: 18px;
  padding: 0 var(--page-x);
  background: var(--navy);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.brand { display: flex; align-items: center; gap: 10px; }
/* Het logo is hoger dan breed. Sturen op hoogte en de breedte laten
   meelopen, anders wordt hij uitgerekt of afgesneden. */
.brand__mark { height: 30px; width: auto; flex: none; }
.brand__name {
  font-family: var(--font-head); font-weight: 700; font-size: 17px;
  letter-spacing: .14em; color: #fff;
}
.topbar__divider { width: 1px; height: 20px; background: rgba(255, 255, 255, .16); }
.topbar__course {
  font-size: 14px; color: rgba(255, 255, 255, .62);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.topbar__spacer { margin-left: auto; }

.menu-btn {
  display: none;
  align-items: center; gap: 9px;
  padding: 9px 15px 9px 13px;
  border: 1px solid rgba(219, 168, 94, .5);
  border-radius: 999px;
  color: var(--gold);
  font-family: var(--font-head); font-weight: 700; font-size: 13.5px;
  letter-spacing: .02em;
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
.menu-btn:hover { background: rgba(219, 168, 94, .12); border-color: var(--gold); }
.menu-btn svg { width: 15px; height: 15px; }

.topbar__login {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px 8px 15px;
  border: 1px solid rgba(219, 168, 94, .5);
  border-radius: 999px;
  color: var(--gold);
  font-family: var(--font-head); font-weight: 700; font-size: 13px;
  letter-spacing: .02em;
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
.topbar__login:hover { background: rgba(219, 168, 94, .12); border-color: var(--gold); }
.topbar__login svg { width: 14px; height: 14px; }

/* ---------- 4. Layout ---------- */
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--sidebar-w);
  align-items: start;
}
.main { min-width: 0; }

/* ---------- 5. Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(1100px 520px at 18% -10%, rgba(219, 168, 94, .10), transparent 60%),
    radial-gradient(720px 440px at 94% 6%, rgba(90, 110, 200, .07), transparent 62%),
    linear-gradient(168deg, var(--navy-lift) 0%, var(--navy) 100%);
  color: #fff;
  padding: clamp(34px, 4.6vw, 58px) var(--page-x) clamp(30px, 3.6vw, 46px);
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(1.4px 1.4px at 12% 26%, rgba(255,255,255,.16), transparent),
    radial-gradient(1.1px 1.1px at 34% 72%, rgba(255,255,255,.12), transparent),
    radial-gradient(1.6px 1.6px at 61% 18%, rgba(255,255,255,.10), transparent),
    radial-gradient(1.2px 1.2px at 78% 58%, rgba(255,255,255,.13), transparent),
    radial-gradient(1.3px 1.3px at 90% 30%, rgba(255,255,255,.09), transparent);
}
.hero__inner { position: relative; z-index: 1; max-width: 1080px; }

.eyebrow {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
  font-family: var(--font-head); font-weight: 700;
  font-size: 11.5px; letter-spacing: .17em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.eyebrow__dot { width: 3px; height: 3px; border-radius: 50%; background: rgba(219, 168, 94,.6); }

.hero__title {
  font-size: clamp(30px, 4.2vw, 50px);
  font-weight: 700;
  max-width: 20ch;
  margin-bottom: 16px;
}
.hero__intro {
  font-size: clamp(15.5px, 1.15vw, 17.5px);
  color: rgba(255, 255, 255, .68);
  max-width: 58ch;
  line-height: 1.62;
}

.hero__checks {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 32px;
  margin-top: 24px;
  max-width: 64ch;
}
.hero__check {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 15px; color: rgba(255, 255, 255, .88); line-height: 1.5;
}
.hero__check svg {
  flex: none; width: 18px; height: 18px; margin-top: 1px;
  color: var(--gold);
}

.resume {
  display: inline-flex; align-items: center; gap: 9px;
  max-width: 100%;
  margin-bottom: 22px;
  padding: 7px 15px 7px 15px;
  border: 1px solid rgba(219, 168, 94, .34);
  border-radius: 999px;
  background: rgba(219, 168, 94, .09);
  color: var(--gold);
  font-size: 13.5px;
  transition: background .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.resume:hover { background: rgba(219, 168, 94, .17); border-color: rgba(219, 168, 94, .6); transform: translateX(2px); }
.resume__label { flex: none; white-space: nowrap; }
.resume__title {
  min-width: 0;
  font-family: var(--font-head); font-weight: 700; color: #fff; font-size: 13px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.resume__arrow { flex: none; display: flex; }
.resume svg { width: 14px; height: 14px; flex: none; }

/* ---------- 6. Tabs ---------- */
.tabs {
  display: flex; gap: 4px;
  margin-top: 26px;
  border-bottom: 1px solid var(--navy-line);
}
.tabs--light { border-bottom-color: var(--line); }

.tab {
  position: relative;
  padding: 10px 4px 13px;
  margin-right: 26px;
  font-family: var(--font-head); font-weight: 700; font-size: 14.5px;
  color: rgba(255, 255, 255, .48);
  transition: color .2s var(--ease);
}
.tab::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform .28s var(--ease);
}
.tab:hover { color: rgba(255, 255, 255, .8); }
.tab[aria-selected="true"] { color: #fff; }
.tab[aria-selected="true"]::after { transform: scaleX(1); }

.tabs--light .tab { color: var(--ink-mute); }
.tabs--light .tab:hover { color: var(--ink-soft); }
.tabs--light .tab[aria-selected="true"] { color: var(--ink); }

.tabpanel[hidden] { display: none; }
.tabpanel { animation: panelIn .34s var(--ease) both; }
@keyframes panelIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- 7. Player ---------- */
.player-wrap { margin-top: 26px; max-width: 1080px; }
.player {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: #00001A;
  box-shadow: var(--shadow-player);
  border: 1px solid rgba(255, 255, 255, .07);
}
.player > iframe, .player > video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.player--empty {
  display: grid; place-items: center;
  background:
    radial-gradient(600px 300px at 50% 40%, rgba(219, 168, 94, .09), transparent 70%),
    linear-gradient(180deg, #070A30 0%, #000024 100%);
  border-style: dashed;
  border-color: rgba(255, 255, 255, .12);
  box-shadow: none;
}
.player__placeholder { text-align: center; padding: 20px; }
.player__placeholder svg { height: 68px; width: auto; margin: 0 auto 18px; opacity: .85; }
.player__placeholder p {
  font-size: 13.5px; color: rgba(255, 255, 255, .45); letter-spacing: .01em;
}

/* ---------- 8. Bijlagen ---------- */
.attachments { margin-top: 26px; max-width: 780px; display: grid; gap: 10px; }
.attachment {
  display: flex; align-items: center; gap: 15px; text-align: left;
  padding: 15px 18px;
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .035);
  transition: background .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.attachment:hover {
  background: rgba(255, 255, 255, .07);
  border-color: rgba(219, 168, 94, .42);
  transform: translateY(-1px);
}
.attachment__icon {
  flex: none; width: 34px; height: 34px; align-self: flex-start;
  display: grid; place-items: center;
  border-radius: 8px;
  background: rgba(219, 168, 94, .13);
  color: var(--gold);
}
.attachment__icon svg { width: 16px; height: 16px; }
.attachment__body { min-width: 0; flex: 1; }
.attachment__title {
  display: block;
  font-family: var(--font-head); font-weight: 700; font-size: 14.5px; color: #fff;
  line-height: 1.35;
}
.attachment__note {
  display: block;
  font-size: 13px; color: rgba(255, 255, 255, .46); margin-top: 3px; line-height: 1.45;
}
.attachment__arrow { flex: none; color: rgba(255,255,255,.34); transition: transform .2s var(--ease), color .2s var(--ease); }
.attachment__arrow svg { width: 16px; height: 16px; }
.attachment:hover .attachment__arrow { color: var(--gold); transform: translateX(3px); }

.empty-note {
  font-size: 14px; color: rgba(255, 255, 255, .42);
  padding: 22px 0;
}

/* ---------- 8b. Build-script ---------- */
.buildscript { margin-top: 26px; max-width: 780px; }
.buildscript__bar { display: flex; justify-content: flex-end; margin-bottom: 10px; }
.buildscript__copy {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px;
  border: 1.5px solid var(--gold);
  border-radius: 999px;
  color: var(--gold);
  background: transparent;
  font-family: var(--font-head); font-weight: 700; font-size: 13px;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.buildscript__copy:hover { background: var(--gold); color: var(--navy); }
.buildscript__copy.is-copied { border-color: var(--green); color: var(--green); }
.buildscript__copy.is-copied:hover { background: transparent; color: var(--green); }
.buildscript__copy-icon { display: flex; flex: none; }
.buildscript__copy-icon svg { width: 15px; height: 15px; }
.buildscript__body {
  margin: 0;
  padding: 20px 22px;
  max-height: 60vh; overflow: auto;
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .035);
  color: rgba(255, 255, 255, .78);
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 13px; line-height: 1.7;
  white-space: pre-wrap; word-break: break-word;
}

/* ---------- 9. Actiebalk ---------- */
.actionbar {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 18px clamp(18px, 2.4vw, 26px);
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.actionbar--top { margin: clamp(22px, 3vw, 32px) var(--page-x) 0; }
.actionbar--bottom { margin: 0 var(--page-x) clamp(40px, 5vw, 64px); }

.complete-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 22px 11px 18px;
  border: 1.5px solid var(--gold);
  border-radius: 999px;
  color: var(--gold-deep);
  background: transparent;
  font-family: var(--font-head); font-weight: 700; font-size: 14.5px;
  transition: background .24s var(--ease), color .24s var(--ease), border-color .24s var(--ease), transform .14s var(--ease);
}
.complete-btn:hover { background: var(--gold-tint); }
.complete-btn:active { transform: scale(.985); }
.complete-btn__icon {
  width: 19px; height: 19px; flex: none;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  display: grid; place-items: center;
  transition: background .24s var(--ease), border-color .24s var(--ease);
}
.complete-btn__icon svg { width: 11px; height: 11px; opacity: 0; transform: scale(.5); transition: opacity .22s var(--ease) .06s, transform .3s var(--ease) .06s; }

.complete-btn.is-done {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
}
.complete-btn.is-done .complete-btn__icon { background: #fff; border-color: #fff; color: var(--gold-deep); }
.complete-btn.is-done .complete-btn__icon svg { opacity: 1; transform: none; }

.next-link { text-align: right; min-width: 0; }
.next-link__label {
  display: block;
  font-family: var(--font-head); font-weight: 700;
  font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 2px;
}
.next-link__title {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 14.5px; color: var(--ink);
  transition: color .2s var(--ease);
}
.next-link__title span {
  display: block; max-width: 40ch;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.next-link__title svg { width: 15px; height: 15px; flex: none; color: var(--gold); transition: transform .22s var(--ease); }
.next-link:hover .next-link__title { color: var(--gold-deep); }
.next-link:hover .next-link__title svg { transform: translateX(4px); }
.next-link--done { color: var(--ink-mute); font-size: 14px; }

/* ---------- 10. Lesinhoud (hoofdstukken / transcript) ---------- */
.content {
  padding: clamp(38px, 5vw, 62px) var(--page-x) clamp(30px, 4vw, 44px);
  max-width: calc(880px + 2 * var(--page-x));
}
.section-eyebrow {
  font-family: var(--font-head); font-weight: 700;
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 9px;
}
.section-title { font-size: clamp(22px, 2.4vw, 29px); margin-bottom: 4px; }

.chapters { margin-top: 24px; display: grid; gap: 3px; }
.chapter {
  display: flex; align-items: center; gap: 16px; width: 100%;
  padding: 12px 16px;
  border-radius: 11px;
  text-align: left;
  border: 1px solid transparent;
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
.chapter + .chapter { position: relative; }
.chapter:hover { background: var(--gold-tint); }
.chapter__time {
  flex: none;
  font-family: var(--font-head); font-weight: 700;
  font-size: 12px; letter-spacing: .04em;
  font-variant-numeric: tabular-nums;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--gold-tint);
  color: var(--gold-deep);
  transition: background .24s var(--ease), color .24s var(--ease);
}
.chapter__title { font-size: 15px; color: var(--ink-soft); transition: color .2s var(--ease); }
.chapter:hover .chapter__title { color: var(--ink); }

.chapter.is-active { background: var(--gold-tint); border-color: var(--gold-tint-2); }
.chapter.is-active .chapter__time { background: var(--gold); color: #fff; }
.chapter.is-active .chapter__title { color: var(--ink); font-weight: 500; }

.chapters[data-seekable="false"] .chapter { cursor: default; }
.chapters-note { margin-top: 18px; font-size: 13px; color: var(--ink-mute); }

.transcript { margin-top: 24px; max-width: 68ch; }
.transcript p { color: var(--ink-soft); font-size: 15.5px; line-height: 1.78; }
.transcript p + p { margin-top: 17px; }
.transcript__placeholder { font-size: 14px; color: var(--ink-mute); font-style: italic; margin-bottom: 18px; }

/* ---------- 11. Zijbalk ---------- */
.sidebar {
  position: sticky; top: var(--topbar-h);
  height: calc(100vh - var(--topbar-h));
  display: flex; flex-direction: column;
  padding: 26px 26px 26px 0;
}

.sidebar__card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

/* De trainingsnaam en de voortgangsbalk blijven staan; alleen de
   lessenlijst scrollt. Zo is de voortgang altijd in beeld. */
.sidebar > .sidebar__card {
  display: flex; flex-direction: column;
  min-height: 0; max-height: 100%;
}
.sidebar > .sidebar__card > .sidebar__head { flex: none; }
.sidebar > .sidebar__card > .toc {
  flex: 1 1 auto; min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 36, .20) transparent;
}
.sidebar > .sidebar__card > .toc::-webkit-scrollbar { width: 8px; }
.sidebar > .sidebar__card > .toc::-webkit-scrollbar-thumb { background: rgba(0, 0, 36, .16); border-radius: 8px; }
.sidebar > .sidebar__card > .toc::-webkit-scrollbar-thumb:hover { background: rgba(0, 0, 36, .26); }
.sidebar__head { padding: 22px 22px 20px; border-bottom: 1px solid var(--line-soft); }
.sidebar__label {
  font-family: var(--font-head); font-weight: 700;
  font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-mute); margin-bottom: 7px;
}
.sidebar__title { font-size: 19px; margin-bottom: 16px; }

.progress__row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  font-size: 12.5px; color: var(--ink-mute); margin-bottom: 8px;
}
.progress__pct { font-family: var(--font-head); font-weight: 700; color: var(--gold-deep); font-size: 13px; }
.progress__track {
  height: 5px; border-radius: 999px; background: var(--surface-2); overflow: hidden;
}
.progress__bar {
  height: 100%; width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold));
  transition: width .7s var(--ease);
}

.toc { padding: 8px 12px 16px; }
.toc__block + .toc__block { margin-top: 4px; }
.toc__blocktitle {
  font-family: var(--font-head); font-weight: 700;
  font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-mute);
  padding: 18px 10px 8px;
}
.toc__item {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 10px;
  border-radius: 9px;
  position: relative;
  transition: background .18s var(--ease);
}
.toc__item:hover { background: var(--surface-2); }
.toc__num {
  flex: none; width: 15px;
  font-family: var(--font-head); font-weight: 700; font-size: 11.5px;
  color: var(--ink-mute); text-align: center;
  font-variant-numeric: tabular-nums;
  transition: color .18s var(--ease);
}
.toc__title {
  flex: 1; min-width: 0;
  font-size: 14px; color: var(--ink-soft);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: color .18s var(--ease);
}
.toc__check { flex: none; width: 16px; height: 16px; opacity: 0; transform: scale(.6); transition: opacity .26s var(--ease), transform .34s var(--ease); }
.toc__check svg { width: 16px; height: 16px; color: var(--green); }
.toc__item.is-done .toc__check { opacity: 1; transform: none; }
.toc__item.is-done .toc__title { color: var(--ink-mute); }

.toc__item.is-current { background: var(--gold-tint); }
.toc__item.is-current::before {
  content: ""; position: absolute; left: 0; top: 8px; bottom: 8px;
  width: 2px; border-radius: 2px; background: var(--gold);
}
.toc__item.is-current .toc__title { color: var(--ink); font-weight: 500; }
.toc__item.is-current .toc__num { color: var(--gold-deep); }

/* ---------- 12. Mobiel paneel ---------- */
.backdrop {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(0, 0, 36, .55);
  backdrop-filter: blur(2px);
  opacity: 0; visibility: hidden;
  transition: opacity .3s var(--ease), visibility .3s var(--ease);
}
.backdrop.is-open { opacity: 1; visibility: visible; }

.sheet {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 90;
  width: min(400px, 88vw);
  background: var(--cream);
  box-shadow: -20px 0 60px rgba(0, 0, 36, .32);
  transform: translateX(102%);
  transition: transform .36s var(--ease);
  display: flex; flex-direction: column;
  visibility: hidden;
}
.sheet.is-open { transform: none; visibility: visible; }
.sheet:focus { outline: none; }
.sheet__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--surface);
  flex: none;
}
.sheet__heading { font-family: var(--font-head); font-weight: 700; font-size: 15px; }
.sheet__close {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--ink-soft);
  transition: background .18s var(--ease), color .18s var(--ease);
}
.sheet__close:hover { background: var(--surface-2); color: var(--ink); }
.sheet__close svg { width: 17px; height: 17px; }
.sheet__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 18px 16px 40px; }
.sheet .sidebar__card { box-shadow: none; }

/* ---------- 13. Footer ---------- */
.footer {
  border-top: 1px solid var(--line-soft);
  padding: 26px var(--page-x) 34px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: var(--ink-mute);
}
.footer strong { font-family: var(--font-head); font-weight: 700; color: var(--ink-soft); letter-spacing: .1em; font-size: 12px; }

/* ---------- 14. Scroll-animatie ---------- */
.reveal { opacity: 0; transform: translateY(14px); }
.reveal.is-in { opacity: 1; transform: none; transition: opacity .6s var(--ease), transform .6s var(--ease); }

/* ---------- 15. Responsive ---------- */
@media (max-width: 1180px) {
  :root { --sidebar-w: 310px; }
  .sidebar { padding-right: 0; }
}

@media (max-width: 1024px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .sidebar { display: none; }
  .menu-btn { display: inline-flex; }
  .topbar__course, .topbar__divider { display: none; }
}

@media (max-width: 640px) {
  :root { --topbar-h: 58px; --page-x: 18px; }
  body { font-size: 15.5px; }
  .brand__name { font-size: 15.5px; letter-spacing: .12em; }
  .brand__mark { height: 26px; }
  .menu-btn { padding: 8px 13px 8px 11px; font-size: 12.5px; }

  .hero { padding-top: 28px; padding-bottom: 26px; }
  .hero__title { font-size: 27px; line-height: 1.2; }
  .hero__intro { font-size: 15px; }
  .hero__checks { grid-template-columns: 1fr; gap: 10px; margin-top: 20px; }
  .eyebrow { font-size: 10.5px; letter-spacing: .14em; margin-bottom: 12px; }

  .resume {
    display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 8px;
    width: 100%;
    border-radius: 12px;
    padding: 11px 14px;
    margin-bottom: 20px;
  }
  .resume__label {
    width: 100%;
    font-family: var(--font-head); font-weight: 700;
    font-size: 10px; letter-spacing: .16em; text-transform: uppercase;
    color: rgba(219, 168, 94, .8);
  }
  .resume__title { flex: 1 1 0; min-width: 0; font-size: 13.5px; }
  .resume__arrow { flex: none; align-self: center; }
  .resume:hover { transform: none; }

  .tab { margin-right: 20px; font-size: 13.5px; }
  .player { border-radius: 12px; }
  .player__placeholder svg { height: 54px; }
  .player-wrap { margin-top: 20px; }

  .attachment { padding: 13px 14px; gap: 12px; }
  .attachment__icon { width: 30px; height: 30px; }
  .attachment__title { font-size: 13.5px; }
  .attachment__note { font-size: 12.5px; }

  .actionbar {
    flex-direction: column; align-items: stretch; gap: 14px;
    padding: 16px;
  }
  .complete-btn { justify-content: center; width: 100%; }
  .next-link { text-align: left; padding-top: 12px; border-top: 1px solid var(--line-soft); }
  .next-link__title span { max-width: 100%; white-space: normal; }
  .next-link__title { align-items: flex-start; }
  .next-link__title svg { margin-top: 5px; }

  .content { padding-top: 34px; }
  .chapter { padding: 11px 12px; gap: 12px; align-items: flex-start; }
  .chapter__time { margin-top: 1px; }
  .chapter__title { font-size: 14.5px; line-height: 1.45; }
  .transcript p { font-size: 15px; }

  .footer { padding-bottom: 40px; }
}

/* ---------- 16. Rustige beweging respecteren ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- 17. Print ---------- */
@media print {
  .topbar, .sidebar, .actionbar, .sheet, .backdrop, .footer { display: none !important; }
  .hero { background: #fff !important; color: #000 !important; }
  .hero::after { display: none; }
  .hero__title, .hero__intro, .hero__check { color: #000 !important; }
}

/* =============================================================
   18. Inloggen, wachtwoord vergeten en wachtwoord herstellen
   ============================================================= */
.auth-page { background: var(--navy); }

.auth {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 44px 20px 60px;
  color: #fff;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 500px at 50% -12%, rgba(219, 168, 94, .10), transparent 60%),
    radial-gradient(680px 440px at 88% 106%, rgba(90, 110, 200, .07), transparent 62%),
    linear-gradient(168deg, var(--navy-lift) 0%, var(--navy) 100%);
}
.auth::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(1.4px 1.4px at 14% 22%, rgba(255,255,255,.15), transparent),
    radial-gradient(1.1px 1.1px at 32% 78%, rgba(255,255,255,.11), transparent),
    radial-gradient(1.5px 1.5px at 68% 16%, rgba(255,255,255,.10), transparent),
    radial-gradient(1.2px 1.2px at 84% 62%, rgba(255,255,255,.12), transparent);
}

.auth__inner {
  position: relative; z-index: 1;
  width: 100%; max-width: 404px;
  animation: authIn .5s var(--ease) both;
}
@keyframes authIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

.auth__brand {
  display: flex; align-items: center; justify-content: center; gap: 11px;
  margin-bottom: 42px;
}
.auth__brand img { height: 34px; width: auto; }
.auth__brand span {
  font-family: var(--font-head); font-weight: 700; font-size: 18px;
  letter-spacing: .14em; color: #fff;
}

.auth__eyebrow {
  font-family: var(--font-head); font-weight: 700;
  font-size: 11px; letter-spacing: .17em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.auth__title { font-size: clamp(27px, 3.6vw, 34px); margin-bottom: 11px; }
.auth__intro {
  font-size: 15px; color: rgba(255, 255, 255, .62); line-height: 1.6;
  margin-bottom: 30px;
}

.field { margin-bottom: 18px; }
.field__label {
  display: block;
  font-size: 13px; color: rgba(255, 255, 255, .72);
  margin-bottom: 8px;
}
.field__wrap { position: relative; }
.field__input {
  width: 100%; height: 52px;
  padding: 0 16px;
  border: 1.5px solid transparent;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-family: var(--font-body); font-size: 15px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field__input::placeholder { color: var(--ink-mute); }
.field__input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(219, 168, 94, .28);
}
.field__input:-webkit-autofill { -webkit-box-shadow: 0 0 0 40px #fff inset; -webkit-text-fill-color: var(--ink); }
.field--password .field__input { padding-right: 62px; }

.field__toggle {
  position: absolute; top: 0; right: 0;
  height: 52px; padding: 0 14px;
  display: flex; align-items: center;
  font-size: 12.5px; font-weight: 500;
  color: var(--ink-mute);
  transition: color .18s var(--ease);
}
.field__toggle:hover { color: var(--gold-deep); }

.auth__submit {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; height: 52px;
  margin-top: 26px;
  border: 0; border-radius: 999px;
  background: var(--gold);
  color: var(--navy);
  text-decoration: none;
  font-family: var(--font-head); font-weight: 700; font-size: 15px;
  transition: background .2s var(--ease), transform .14s var(--ease), box-shadow .2s var(--ease);
}
.auth__submit:hover { background: var(--gold-hover); box-shadow: 0 8px 26px rgba(219, 168, 94, .30); }
.auth__submit:active { transform: scale(.99); }

/* Elke CTA krijgt een pijltje. Het masker neemt de kleur van de knop over,
   dus je hoeft er in de HTML niets voor te doen. */
.auth__submit::after,
.order__submit::after {
  content: "";
  flex: none;
  width: 17px; height: 17px;
  background-color: currentColor;
  -webkit-mask: var(--arrow) center / contain no-repeat;
          mask: var(--arrow) center / contain no-repeat;
  transition: transform .22s var(--ease);
}
.auth__submit:hover::after,
.order__submit:hover::after { transform: translateX(4px); }

.auth__link {
  display: block; text-align: center;
  margin-top: 22px;
  font-size: 13.5px; color: rgba(255, 255, 255, .74);
  text-decoration: underline; text-underline-offset: 3px;
  text-decoration-color: rgba(255, 255, 255, .28);
  transition: color .18s var(--ease), text-decoration-color .18s var(--ease);
}
.auth__link:hover { color: var(--gold); text-decoration-color: var(--gold); }

.auth__foot {
  margin-top: 30px; text-align: center;
  font-size: 13px; line-height: 1.65;
  color: rgba(255, 255, 255, .46);
}
.auth__foot a {
  color: rgba(255, 255, 255, .78);
  text-decoration: underline; text-underline-offset: 3px;
  text-decoration-color: rgba(255, 255, 255, .3);
  transition: color .18s var(--ease), text-decoration-color .18s var(--ease);
}
.auth__foot a:hover { color: var(--gold); text-decoration-color: var(--gold); }

.auth__note {
  margin-top: 20px; padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 10px;
  background: rgba(255, 255, 255, .04);
  font-size: 13px; line-height: 1.6;
  color: rgba(255, 255, 255, .6);
}

@media (max-width: 640px) {
  .auth { padding: 34px 18px 48px; }
  .auth__brand { margin-bottom: 34px; }
  .auth__brand img { height: 30px; }
  .auth__title { font-size: 26px; }
  .auth__intro { margin-bottom: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  .auth__inner { animation: none; }
}

/* =============================================================
   19. Uitlogknop in de balk bovenaan
   ============================================================= */
.logout-btn {
  display: inline-flex; align-items: center; gap: 8px;
  margin-right: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .16);
  color: rgba(255, 255, 255, .68);
  font-size: 13.5px;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.logout-btn:hover { background: rgba(255,255,255,.07); color: #fff; border-color: rgba(255,255,255,.3); }
.logout-btn svg { width: 15px; height: 15px; flex: none; }

@media (max-width: 640px) {
  .logout-btn { padding: 7px 10px; margin-right: 8px; }
  .logout-btn span { display: none; }
}

/* =============================================================
   20. Checkout
   ============================================================= */
.checkout { padding: 0 0 clamp(50px, 6vw, 80px); }

.buy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: clamp(30px, 4vw, 56px);
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(38px, 5vw, 60px) var(--page-x) 0;
}

.buy__lead { font-size: clamp(16px, 1.2vw, 18px); color: var(--ink-soft); line-height: 1.7; max-width: 60ch; }

.includes { margin-top: 34px; display: grid; gap: 2px; }
.include {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
}
.include:last-child { border-bottom: 0; }
.include__tick {
  flex: none; width: 21px; height: 21px; margin-top: 2px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--gold-tint);
  color: var(--gold-deep);
}
.include__tick svg { width: 12px; height: 12px; }
.include__text strong {
  display: block;
  font-family: var(--font-head); font-weight: 700; font-size: 15.5px; color: var(--ink);
  margin-bottom: 2px;
}
.include__text span { font-size: 14.5px; color: var(--ink-soft); line-height: 1.6; }

/* --- Reviews --- */
.reviews { margin-top: 44px; display: grid; gap: 16px; }
.review {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 22px 24px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.review__photo {
  flex: none; width: 56px; height: 56px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--surface-2);
  box-shadow: 0 0 0 1px var(--line-soft);
}
.review__stars { color: var(--gold); font-size: 13px; letter-spacing: .12em; margin-bottom: 8px; }
.review__quote { font-size: 15.5px; color: var(--ink); line-height: 1.65; margin-bottom: 10px; }
.review__who { font-size: 13.5px; color: var(--ink-mute); }

/* --- Bestelkaart --- */
.order {
  position: sticky; top: calc(var(--topbar-h) + 24px);
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.order__head { padding: 26px 26px 22px; border-bottom: 1px solid var(--line-soft); }
.order__label {
  font-family: var(--font-head); font-weight: 700;
  font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-mute); margin-bottom: 10px;
}
.order__price {
  display: flex; align-items: baseline; gap: 10px;
  font-family: var(--font-head); font-weight: 700;
  font-size: 40px; color: var(--ink); line-height: 1;
}
.order__vat { font-size: 13.5px; color: var(--ink-mute); margin-top: 9px; }
.order__body { padding: 22px 26px 26px; }

.order .field { margin-bottom: 16px; }
.order .field__label { color: var(--ink-soft); }
.order .field__input {
  background: var(--cream);
  border-color: var(--line);
}
.order .field__input:focus { background: #fff; }
.order .field__toggle { color: var(--ink-mute); }

.order__submit {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; height: 54px; margin-top: 22px;
  border: 0; border-radius: 999px;
  background: var(--gold);
  color: #fff;
  font-family: var(--font-head); font-weight: 700; font-size: 15.5px;
  transition: background .2s var(--ease), box-shadow .2s var(--ease), transform .14s var(--ease);
}
.order__submit:hover { background: var(--gold-hover); box-shadow: 0 10px 30px rgba(219, 168, 94, .32); }
.order__submit:active { transform: scale(.99); }

.order__trust {
  display: flex; flex-direction: column; align-items: center;
  gap: 6px;
  margin-top: 16px;
}
.order__trust-stars { color: var(--gold); font-size: 13px; letter-spacing: 1px; }
.order__trust-item {
  display: flex; align-items: center; gap: 7px;
  font-size: 12.5px; font-weight: 500; color: var(--ink-soft);
}
.order__trust-item svg { flex: none; width: 13px; height: 13px; color: var(--gold); }

.order__small { margin-top: 14px; font-size: 12.5px; color: var(--ink-mute); line-height: 1.6; text-align: center; }
.order__small a { color: var(--ink-soft); text-decoration: underline; text-underline-offset: 2px; }

.paymethods {
  display: flex; align-items: center; justify-content: center; gap: 9px; flex-wrap: wrap;
  margin-top: 18px; padding-top: 18px;
  border-top: 1px solid var(--line-soft);
}
.paymethod {
  display: flex; align-items: center; justify-content: center;
  height: 30px;
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
}
.paymethod img { height: 16px; width: auto; }

.guarantee {
  display: flex; gap: 16px; align-items: flex-start;
  margin-top: 20px; padding: 18px 20px;
  border: 1px solid var(--gold-tint-2);
  border-radius: var(--radius-sm);
  background: var(--gold-tint);
}
.guarantee svg { flex: none; width: 22px; height: 22px; color: var(--gold-deep); margin-top: 1px; }
.guarantee strong { display: block; font-family: var(--font-head); font-weight: 700; font-size: 14.5px; margin-bottom: 3px; }
.guarantee span { font-size: 13.5px; color: var(--ink-soft); line-height: 1.6; }

.haveaccount {
  max-width: 1180px; margin: 0 auto;
  padding: 34px var(--page-x) 0;
  font-size: 14.5px; color: var(--ink-soft);
}
.haveaccount a { color: var(--gold-deep); text-decoration: underline; text-underline-offset: 3px; font-weight: 500; }

@media (max-width: 980px) {
  .buy { grid-template-columns: minmax(0, 1fr); }
  .order { position: static; }
  .reviews { margin-top: 34px; }
}
@media (max-width: 640px) {
  .order__price { font-size: 34px; }
  .review { flex-direction: column; gap: 14px; padding: 20px; }
}

/* =============================================================
   21. Delen in de zijbalk, gratis-label en slotregel
   ============================================================= */
.toc__part {
  font-family: var(--font-head); font-weight: 700;
  font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink);
  padding: 22px 10px 2px;
  margin-top: 6px;
  border-top: 1px solid var(--line-soft);
}
.toc__block:first-child .toc__part,
.toc__part:first-child { border-top: 0; margin-top: 0; padding-top: 6px; }

.toc__free {
  flex: none;
  font-family: var(--font-head); font-weight: 700;
  font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--gold-deep);
  background: var(--gold-tint);
  padding: 3px 7px;
  border-radius: 4px;
}

.toc__locked {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 10px;
  margin-top: 2px;
  border-radius: 9px;
  background: var(--surface-2);
  color: var(--ink-mute);
  font-size: 13px;
}
.toc__locked svg { flex: none; width: 15px; height: 15px; }
.toc__locked span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* =============================================================
   22. Upsell: een deel dat los bijgekocht wordt
   ============================================================= */
.upsell { padding: 0 var(--page-x) clamp(30px, 4vw, 44px); }

.upsell__card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(24px, 3vw, 40px);
  align-items: start;
  max-width: calc(980px + 2 * var(--page-x));
  padding: clamp(26px, 3vw, 36px);
  border: 1px solid var(--gold-tint-2);
  border-radius: var(--radius);
  background:
    radial-gradient(700px 300px at 8% 0%, rgba(219, 168, 94, .10), transparent 65%),
    var(--surface);
  box-shadow: var(--shadow-sm);
}

.upsell__eyebrow {
  font-family: var(--font-head); font-weight: 700;
  font-size: 11px; letter-spacing: .17em; text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 10px;
}
.upsell__title { font-size: clamp(21px, 2.2vw, 27px); margin-bottom: 10px; }
.upsell__intro { font-size: 15.5px; color: var(--ink-soft); line-height: 1.65; }

.upsell__list { margin-top: 20px; display: grid; gap: 11px; }
.upsell__list li { display: flex; align-items: flex-start; gap: 11px; font-size: 15px; color: var(--ink-soft); }
.upsell__list svg { flex: none; width: 15px; height: 15px; margin-top: 4px; color: var(--gold-deep); }

.upsell__soon {
  margin-top: 20px; padding: 13px 15px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  font-size: 13.5px; color: var(--ink-soft); line-height: 1.6;
}

.upsell__buy {
  padding: 24px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: var(--cream);
  text-align: center;
}
.upsell__price {
  font-family: var(--font-head); font-weight: 700;
  font-size: 34px; color: var(--ink); line-height: 1;
}
.upsell__pricenote { font-size: 12.5px; color: var(--ink-mute); margin-top: 8px; line-height: 1.5; }

.upsell__btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; height: 50px; margin-top: 18px;
  border: 0; border-radius: 999px;
  background: var(--gold);
  color: var(--navy);
  font-family: var(--font-head); font-weight: 700; font-size: 15px;
  transition: background .2s var(--ease), box-shadow .2s var(--ease), transform .14s var(--ease);
}
.upsell__btn::after {
  content: "";
  flex: none; width: 17px; height: 17px;
  background-color: currentColor;
  -webkit-mask: var(--arrow) center / contain no-repeat;
          mask: var(--arrow) center / contain no-repeat;
  transition: transform .22s var(--ease);
}
.upsell__btn:hover:not(:disabled) { background: var(--gold-hover); box-shadow: 0 10px 30px rgba(219, 168, 94, .32); }
.upsell__btn:hover:not(:disabled)::after { transform: translateX(4px); }
.upsell__btn:disabled {
  background: var(--surface-2);
  color: var(--ink-mute);
  cursor: default;
}

@media (max-width: 900px) {
  .upsell__card { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .upsell__card { padding: 22px 18px; }
  .upsell__price { font-size: 30px; }
}

.eyebrow__free {
  margin-left: 4px;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(219, 168, 94, .18);
  color: var(--gold);
  font-size: 10px; letter-spacing: .1em;
}

/* ---------- 18. Juridische pagina's (voorwaarden, privacy) ---------- */
.legal {
  max-width: 780px;
  margin: 0 auto;
  padding: clamp(30px, 4vw, 52px) var(--page-x) clamp(40px, 5vw, 70px);
}
.legal__card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: clamp(24px, 3.4vw, 44px);
}

/* Samenvatting bovenaan: waar het op neerkomt, in gewone taal. */
.legal__lead {
  border-left: 3px solid var(--gold);
  background: var(--gold-tint);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 20px;
  margin-bottom: 34px;
  font-size: 14.5px; line-height: 1.7; color: var(--ink-soft);
}
.legal__lead strong { color: var(--ink); }

.legal h2 {
  font-family: var(--font-head); font-weight: 700;
  font-size: 17px; line-height: 1.35;
  color: var(--ink);
  margin: 34px 0 10px;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
}
.legal h2:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }

.legal p { margin-bottom: 12px; line-height: 1.75; }
.legal ol, .legal ul { margin: 0 0 12px; padding-left: 22px; }
.legal li { margin-bottom: 8px; line-height: 1.7; }
.legal a {
  color: var(--gold-deep);
  text-decoration: underline; text-underline-offset: 2px;
  text-decoration-color: var(--gold-tint-2);
  transition: text-decoration-color .18s var(--ease);
}
.legal a:hover { text-decoration-color: var(--gold-deep); }

/* Doel-en-grondslagtabel in de privacyverklaring. */
.legal__table-wrap { overflow-x: auto; margin-bottom: 12px; }
.legal table {
  width: 100%; min-width: 460px;
  border-collapse: collapse;
  font-size: 14px;
}
.legal th, .legal td {
  text-align: left; vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line-soft);
}
.legal th {
  font-family: var(--font-head); font-weight: 700;
  font-size: 12px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-soft);
  background: var(--surface-2);
}

/* Bedrijfsgegevens onderaan. */
.legal__id {
  margin-top: 34px; padding-top: 22px;
  border-top: 1px solid var(--line-soft);
  font-size: 13px; line-height: 1.8; color: var(--ink-mute);
}
.legal__id strong {
  display: block;
  font-family: var(--font-head); font-weight: 700;
  letter-spacing: .1em; font-size: 12px; text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

.legal__back {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 28px;
  font-family: var(--font-head); font-weight: 700; font-size: 14px;
  color: var(--gold-deep);
  text-decoration: none;
}
.legal__back::after {
  content: ""; flex: none; width: 15px; height: 15px;
  background-color: currentColor;
  -webkit-mask: var(--arrow) center / contain no-repeat;
          mask: var(--arrow) center / contain no-repeat;
  transition: transform .22s var(--ease);
}
.legal__back:hover::after { transform: translateX(4px); }

/* Footerlinks naar de juridische pagina's. */
.footer__links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer__links a {
  color: var(--ink-mute);
  text-decoration: underline; text-underline-offset: 2px;
  text-decoration-color: var(--line);
}
.footer__links a:hover { color: var(--gold-deep); text-decoration-color: var(--gold-deep); }

@media (max-width: 640px) {
  .legal h2 { font-size: 16px; }
}
