@charset "UTF-8";

/* ============================================================================
   OneWayOfWork® — juridische / tekstpagina's
   ----------------------------------------------------------------------------
   Laadt ná style.css en gebruikt uitsluitend de tokens daaruit.

   1.  Page hero
   2.  Layout (inhoudsopgave + artikel)
   3.  Inhoudsopgave
   4.  Prose
   5.  Data-lijst, tabel, notitie
   6.  Documentvoet (contact, verwante documenten, naar boven)
   7.  Responsive
   8.  Print
   ========================================================================== */

/* ============================================================================
   1. Page hero — compacte kop, dezelfde toon als de homepage-hero maar rustiger
   ========================================================================== */
.page-hero{
  position:relative;
  isolation:isolate;
  padding-top:calc(var(--header-h) + clamp(32px, 4.5vw, 60px));
  padding-bottom:clamp(36px, 4.5vw, 64px);
  overflow:hidden;
  background:linear-gradient(180deg, var(--blue-soft) 0%, rgba(237,242,254,0) 100%);
}

/* Twee ruiten, hetzelfde vormtaaltje als het logo. Puur decoratief; ze staan
   achter de tekst en verdwijnen op telefoons. */
.page-hero::before,
.page-hero::after{
  content:"";
  position:absolute;
  z-index:-1;
  border-radius:34px;
  transform:rotate(45deg);
  pointer-events:none;
}
.page-hero::before{
  top:-70px; right:-110px;
  width:320px; height:320px;
  border:1px solid var(--blue-line);
}
.page-hero::after{
  top:60px; right:96px;
  width:120px; height:120px;
  background:rgba(31,86,216,.05);
}

.breadcrumb{
  display:flex; flex-wrap:wrap; align-items:center;
  gap:6px 8px;
  margin-bottom:clamp(16px, 2vw, 24px);
  font-size:.875rem;
  color:var(--muted);
}
.breadcrumb li{ display:inline-flex; align-items:center; gap:8px; }
.breadcrumb li + li::before{
  content:"/";
  color:var(--blue-line);
}
.breadcrumb a{ transition:color var(--dur) var(--ease); }
.breadcrumb a:hover{ color:var(--blue); }
.breadcrumb [aria-current="page"]{ color:var(--ink-2); }

.page-hero__title{
  margin-top:clamp(16px, 2vw, 24px);
  max-width:20ch;
  font-size:clamp(2rem, 3.4vw, 3rem);
  font-weight:600;
  line-height:1.14;
  letter-spacing:-.018em;
  text-wrap:balance;
}

.page-hero__lead{
  margin-top:clamp(14px, 1.8vw, 22px);
  max-width:58ch;
  font-size:clamp(1rem, 1.15vw, 1.0625rem);
  line-height:1.7;
  color:var(--muted);
}

/* Metagegevens van het document */
.doc-meta{
  display:flex; flex-wrap:wrap;
  gap:10px 12px;
  margin-top:clamp(22px, 2.6vw, 32px);
}
.doc-meta li{
  display:inline-flex; align-items:center; gap:9px;
  padding:9px 16px;
  background:var(--white);
  border:1px solid var(--line);
  border-radius:var(--r-pill);
  font-size:.8125rem;
  line-height:1.4;
  color:var(--ink-2);
  box-shadow:var(--shadow-sm);
}
.doc-meta svg{ width:15px; height:15px; flex-shrink:0; color:var(--blue); }

/* ============================================================================
   2. Layout
   ========================================================================== */
.legal{
  padding-top:clamp(36px, 4.5vw, 64px);
  padding-bottom:var(--section-y);
}

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

/* ============================================================================
   3. Inhoudsopgave — blijft meelopen zolang er kolomruimte is
   ========================================================================== */
.toc{
  position:sticky;
  top:calc(var(--header-h) + 20px);
  padding:clamp(18px, 1.8vw, 24px);
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--r-card);
}

.toc__title{
  margin-bottom:14px;
  font-size:.8125rem; font-weight:600;
  letter-spacing:.09em; text-transform:uppercase;
  color:var(--ink);
}

.toc__list{
  display:grid;
  gap:2px;
  counter-reset:toc;
  /* Lange documenten mogen binnen de kaart scrollen in plaats van de kaart
     langer te maken dan het scherm. */
  max-height:calc(100vh - var(--header-h) - 150px);
  overflow-y:auto;
  scrollbar-width:thin;
  scrollbar-color:var(--blue-line) transparent;
}
.toc__list::-webkit-scrollbar{ width:4px; }
.toc__list::-webkit-scrollbar-thumb{ background:var(--blue-line); border-radius:var(--r-pill); }

.toc__link{
  display:flex; gap:10px;
  padding:8px 11px;
  border-radius:8px;
  font-size:.875rem;
  line-height:1.45;
  color:var(--muted);
  transition:color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.toc__link::before{
  counter-increment:toc;
  content:counter(toc) ".";
  flex-shrink:0;
  min-width:1.35em;
  font-weight:600;
  font-variant-numeric:tabular-nums;
  color:var(--blue);
  opacity:.5;
  transition:opacity var(--dur) var(--ease);
}
.toc__link:hover{ background:var(--blue-soft); color:var(--blue); }
.toc__link.is-active{
  background:var(--blue-soft);
  color:var(--blue);
  font-weight:500;
}
.toc__link.is-active::before{ opacity:1; }

/* ============================================================================
   4. Prose
   ========================================================================== */
.prose{
  max-width:74ch;
  counter-reset:sec;
}

.prose__intro{
  padding:clamp(20px, 2.2vw, 28px) clamp(20px, 2.4vw, 30px);
  background:var(--blue-soft);
  border:1px solid var(--blue-line);
  border-radius:var(--r-card);
}
.prose__intro p{
  font-size:clamp(1rem, 1.1vw, 1.0625rem);
  line-height:1.7;
  color:var(--blue-deep);
}
.prose__intro p + p{ margin-top:12px; }

.prose__section{
  margin-top:clamp(30px, 3.2vw, 44px);
  padding-top:clamp(30px, 3.2vw, 44px);
  border-top:1px solid var(--line);
  /* style.css zet al scroll-padding-top:96px op de scrollport; dit is de extra
     lucht daarbovenop, zodat een aangesprongen kop vrij onder de header staat. */
  scroll-margin-top:24px;
}

/* Bewust op .prose__section gescoped: koppen buiten de artikelen (zoals
   "Verwante documenten") mogen geen nummer krijgen en de teller niet ophogen. */
.prose__section h2{
  display:flex; align-items:flex-start; gap:14px;
  font-size:clamp(1.1875rem, 1.7vw, 1.4375rem);
  font-weight:600;
  line-height:1.32;
  letter-spacing:-.01em;
  text-wrap:balance;
}
.prose__section h2::before{
  counter-increment:sec;
  content:counter(sec);
  flex-shrink:0;
  display:grid; place-items:center;
  width:32px; height:32px;
  margin-top:-2px;
  border-radius:9px;
  background:var(--blue-soft);
  color:var(--blue);
  font-size:.875rem; font-weight:600;
  font-variant-numeric:tabular-nums;
}

.prose__section > h3{
  margin-top:26px;
  font-size:1.0625rem; font-weight:600;
  line-height:1.4;
  color:var(--ink);
}

/* Alleen lopende tekst van het artikel zelf — niet de paragrafen binnen een
   notitie, tabel of contactblok, die hun eigen toon hebben. */
.prose__section > p{
  margin-top:14px;
  font-size:1rem;
  line-height:1.75;
  color:var(--muted);
}
.prose__section > h2 + p{ margin-top:16px; }

.prose__section > p strong,
.list strong{ font-weight:600; color:var(--ink-2); }

.prose a:not(.btn):not(.doc-link){
  color:var(--blue);
  text-decoration:underline;
  text-underline-offset:3px;
  text-decoration-thickness:1px;
  text-decoration-color:var(--blue-line);
  transition:text-decoration-color var(--dur) var(--ease);
}
.prose a:not(.btn):not(.doc-link):hover{ text-decoration-color:var(--blue); }

/* — Opsommingen —————————————————————————————
   Ruitvormige bullets, hetzelfde motief als het logo. */
.list{
  display:grid; gap:10px;
  margin-top:16px;
}
.list li{
  position:relative;
  padding-left:26px;
  font-size:1rem;
  line-height:1.7;
  color:var(--muted);
}
.list li::before{
  content:"";
  position:absolute;
  left:6px; top:.66em;
  width:7px; height:7px;
  border-radius:2px;
  background:var(--blue);
  transform:rotate(45deg);
}

.list--num{
  display:grid; gap:16px;
  margin-top:18px;
  counter-reset:item;
}
.list--num > li{
  position:relative;
  padding-left:40px;
  font-size:1rem;
  line-height:1.7;
  color:var(--muted);
}
.list--num > li::before{
  counter-increment:item;
  content:counter(item);
  position:absolute;
  left:0; top:0;
  display:grid; place-items:center;
  width:27px; height:27px;
  border-radius:50%;
  background:var(--blue-soft);
  color:var(--blue);
  font-size:.8125rem; font-weight:600;
}
.list--num strong{ display:block; color:var(--ink); }

/* ============================================================================
   5. Data-lijst, tabel, notitie
   ========================================================================== */
.data-list{
  display:grid;
  grid-template-columns:minmax(0, 190px) minmax(0, 1fr);
  margin-top:20px;
  border:1px solid var(--line);
  border-radius:var(--r-card);
  overflow:hidden;
}
.data-list dt{
  padding:13px 18px;
  background:var(--surface);
  border-bottom:1px solid var(--line);
  font-size:.875rem; font-weight:600;
  color:var(--ink-2);
}
.data-list dd{
  margin:0;
  padding:13px 18px;
  border-bottom:1px solid var(--line);
  font-size:.9375rem;
  color:var(--muted);
}
.data-list > :nth-last-child(-n+2){ border-bottom:0; }

.table-wrap{
  margin-top:20px;
  overflow-x:auto;
  border:1px solid var(--line);
  border-radius:var(--r-card);
}
.table{
  width:100%;
  min-width:560px;
  border-collapse:collapse;
  text-align:left;
}
.table th{
  padding:13px 18px;
  background:var(--surface);
  border-bottom:1px solid var(--line);
  font-size:.75rem; font-weight:600;
  letter-spacing:.06em; text-transform:uppercase;
  color:var(--ink-2);
  white-space:nowrap;
}
.table td{
  padding:14px 18px;
  border-bottom:1px solid var(--line);
  font-size:.9375rem;
  line-height:1.6;
  color:var(--muted);
  vertical-align:top;
}
.table tbody tr:last-child td{ border-bottom:0; }
.table td strong{ display:block; color:var(--ink); }

.note{
  display:flex; gap:16px;
  margin-top:22px;
  padding:20px clamp(18px, 2vw, 24px);
  background:var(--blue-soft);
  border:1px solid var(--blue-line);
  border-radius:var(--r-card);
}
.note .icon-tile{ width:38px; height:38px; border-radius:10px; background:var(--white); }
.note .icon-tile svg{ width:19px; height:19px; }
.note__text{
  font-size:.9375rem;
  line-height:1.7;
  color:var(--blue-deep);
}
.note__text a{ color:inherit; }

/* Redactionele markering: nog in te vullen door de sitebeheerder. */
.note--todo{
  background:var(--surface);
  border-style:dashed;
  border-color:var(--muted);
}
.note--todo .icon-tile{ background:var(--white); color:var(--ink-2); }
.note--todo .note__text{ color:var(--ink-2); }

/* ============================================================================
   6. Documentvoet
   ========================================================================== */
.doc-contact{
  display:flex; flex-wrap:wrap; align-items:center;
  gap:18px 24px;
  margin-top:clamp(30px, 3.4vw, 44px);
  padding:clamp(22px, 2.4vw, 30px);
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--r-card);
}
.doc-contact__body{ flex:1 1 260px; }
.doc-contact__title{ font-size:1.0625rem; font-weight:600; line-height:1.35; }
.doc-contact__text{
  margin-top:6px;
  font-size:.9375rem;
  line-height:1.65;
  color:var(--muted);
}

.doc-links{
  margin-top:clamp(36px, 4vw, 56px);
  padding-top:clamp(26px, 3vw, 38px);
  border-top:1px solid var(--line);
}
.doc-links__title{
  font-size:.8125rem; font-weight:600;
  letter-spacing:.09em; text-transform:uppercase;
  color:var(--ink);
}
.doc-links__grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(230px, 1fr));
  gap:14px;
  margin-top:16px;
}
.doc-link{
  display:flex; align-items:center; gap:14px;
  padding:16px 18px;
  background:var(--white);
  border:1px solid var(--line);
  border-radius:var(--r-card);
  transition:transform var(--dur) var(--ease),
             box-shadow var(--dur) var(--ease),
             border-color var(--dur) var(--ease);
}
.doc-link:hover{
  transform:translateY(-3px);
  border-color:var(--blue-line);
  box-shadow:var(--shadow-card);
}
.doc-link .icon-tile{ width:38px; height:38px; border-radius:10px; }
.doc-link .icon-tile svg{ width:19px; height:19px; }
.doc-link__body{ min-width:0; }
.doc-link__name{ font-size:.9375rem; font-weight:600; line-height:1.35; }
.doc-link__meta{ margin-top:3px; font-size:.8125rem; color:var(--muted); }
.doc-link__chev{
  width:14px; height:14px;
  margin-left:auto;
  flex-shrink:0;
  color:var(--blue);
  transition:transform var(--dur) var(--ease);
}
.doc-link:hover .doc-link__chev{ transform:translateX(3px); }

.to-top{
  display:inline-flex; align-items:center; gap:9px;
  margin-top:clamp(26px, 3vw, 36px);
  font-size:.875rem; font-weight:500;
  color:var(--blue);
}
.to-top svg{ width:14px; height:14px; transition:transform var(--dur) var(--ease); }
.to-top:hover svg{ transform:translateY(-2px); }

/* Huidige pagina in de voettekst */
.footer__legal a[aria-current="page"]{ color:var(--blue); font-weight:500; }

/* ============================================================================
   7. Responsive
   ========================================================================== */
@media (max-width:1024px){
  .legal__grid{ grid-template-columns:1fr; }

  /* De inhoudsopgave wordt een sprongkaart bovenaan het document. */
  .toc{
    position:static;
    top:auto;
  }
  .toc__list{
    grid-template-columns:repeat(auto-fill, minmax(210px, 1fr));
    gap:2px 14px;
    max-height:none;
    overflow:visible;
  }
  .prose{ max-width:none; }
}

@media (max-width:640px){
  .page-hero::before,
  .page-hero::after{ display:none; }

  .page-hero__title{ max-width:none; }

  .data-list{ grid-template-columns:1fr; }
  .data-list dt{ padding-bottom:0; background:var(--white); border-bottom:0; }
  .data-list dd{ padding-top:4px; }
  .data-list > :last-child{ border-bottom:0; }

  .note{ flex-direction:column; gap:14px; }
}

/* ============================================================================
   8. Print — het document, niets eromheen
   ========================================================================== */
@media print{
  .site-header,
  .mobile-nav,
  .skip-link,
  .toc,
  .doc-links,
  .to-top,
  .site-footer,
  .page-hero::before,
  .page-hero::after{ display:none !important; }

  .page-hero{ padding-top:0; background:none; }
  .legal__grid{ display:block; }
  .prose{ max-width:none; }
  .prose p,
  .list li,
  .list--num > li,
  .table td{ color:#000; }
  .prose__section{ break-inside:avoid; }
}
