/* ============================================================
   legal.css — juridische leespagina (/privacyverklaring/).
   Port van upgrade-legal.css uit de bron-export
   "Privacyverklaring (standalone) (1).html" (31-07-2026):
   smalle leeskolom, sticky inhoudsopgave, geen decoratie.

   Twee WP-specifieke aanpassingen ten opzichte van de bron:
   1. .lg-container krijgt de widget-prefix. bconnect-shared.css zet
      `.elementor-widget[class*="elementor-widget-bconnect_"] .container`
      (0,2,1) op max-width 1520px; de bronregel `.pv-page .lg-container`
      (0,2,0) zou daar altijd van verliezen.
   2. De sticky-offset en scroll-margin rekenen met --bc-header-h in
      plaats van de harde 104px uit de bron. Die variabele beweegt mee
      als de vaste header bij scrollen krimpt (108 -> 92px), en met de
      admin-balk erbij (+32px) schuift de inhoudsopgave niet onder de
      header. Zelfde patroon als de sticky subnav.
   ============================================================ */

.pv-page { background: #fff; }

.elementor-widget-bconnect_privacy .pv-page .lg-container { max-width: 1000px; }

/* ===== Kop ===== */
.pv-head {
  padding: 156px 0 36px;
  border-bottom: 1px solid var(--c-border, #E2E4EC);
}
.pv-crumbs {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: var(--c-text-soft, #7B8190);
  margin-bottom: 18px;
}
.pv-crumbs a { color: var(--c-text-soft, #7B8190); text-decoration: none; }
.pv-crumbs a:hover { color: var(--c-magenta, #AA028E); }
.pv-head h1 {
  font-family: var(--font-head, "Roc Grotesk", system-ui);
  font-size: 44px;
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--c-navy, #141464);
  margin: 0 0 20px;
}
.pv-intro {
  font-size: 19px;
  line-height: 1.65;
  color: var(--c-text-muted, #5A6068);
  max-width: 74ch;
  margin: 0 0 14px;
  text-wrap: pretty;
}
.pv-meta { font-size: 13px; color: var(--c-text-soft, #7B8190); margin: 0; }

/* ===== Body: inhoudsopgave + leeskolom ===== */
.pv-body { padding: 44px 0 96px; }
.pv-body .lg-container {
  display: grid;
  grid-template-columns: 264px 1fr;
  gap: 56px;
  align-items: start;
}
.pv-toc {
  position: sticky;
  top: calc(var(--bc-header-h, 108px) + 20px);
  border: 1px solid var(--c-border, #E2E4EC);
  border-radius: 14px;
  padding: 20px 20px 22px;
  background: #FAFAFB;
}
body.admin-bar .pv-toc { top: calc(var(--bc-header-h, 108px) + 52px); }
/* De inhoudsopgave is met 21 items ~797px hoog. Op een venster van 900px
   (of lager) valt het laatste item daarmee onder de vouw en is het door de
   sticky-positie niet meer te bereiken; in de bron gebeurt hetzelfde. Daarom
   krijgt de kolom hier een eigen maximumhoogte met scroll. Alleen boven
   900px, want daaronder staat de inhoudsopgave static boven de tekst. */
@media (min-width: 901px) {
  .pv-toc {
    max-height: calc(100vh - var(--bc-header-h, 108px) - 44px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  body.admin-bar .pv-toc { max-height: calc(100vh - var(--bc-header-h, 108px) - 76px); }
}
.pv-toc h2 {
  font-family: var(--font-head, "Roc Grotesk", system-ui);
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-navy, #141464);
  margin: 0 0 12px;
}
.pv-toc ol {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.pv-toc li { font-size: 13.5px; line-height: 1.4; color: var(--c-text-soft, #7B8190); }
.pv-toc a { color: var(--c-text-muted, #5A6068); text-decoration: none; }
.pv-toc a:hover { color: var(--c-magenta, #AA028E); }

.pv-prose { min-width: 0; max-width: 76ch; }
.pv-sec {
  scroll-margin-top: calc(var(--bc-header-h, 108px) + 20px);
  padding-bottom: 34px;
}
.pv-sec + .pv-sec { border-top: 1px solid #ECEEF4; padding-top: 32px; }
.pv-sec h2 {
  font-family: var(--font-head, "Roc Grotesk", system-ui);
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: -.015em;
  color: var(--c-navy, #141464);
  margin: 0 0 14px;
}
.pv-num { color: #9A9AAE; font-variant-numeric: tabular-nums; margin-right: 6px; }

.pv-prose p {
  font-size: 15.5px;
  line-height: 1.72;
  color: var(--c-text-muted, #5A6068);
  margin: 0 0 14px;
  text-wrap: pretty;
}
.pv-prose a {
  color: var(--c-electric, #007AFF);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.pv-prose a:hover { color: var(--c-magenta, #AA028E); }

.pv-address { color: var(--c-navy, #141464) !important; font-size: 15px !important; }

.pv-list {
  margin: 0 0 16px;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pv-list li { font-size: 15.5px; line-height: 1.6; color: var(--c-text-muted, #5A6068); }

.pv-dl { margin: 0 0 8px; }
.pv-dl dt {
  font-family: var(--font-head, "Roc Grotesk", system-ui);
  font-size: 15.5px;
  font-weight: 600;
  color: var(--c-navy, #141464);
  margin: 14px 0 4px;
}
.pv-dl dd { margin: 0; font-size: 15.5px; line-height: 1.7; color: var(--c-text-muted, #5A6068); }

.pv-foot {
  margin-top: 8px;
  padding: 16px 18px;
  border: 1px solid var(--c-border, #E2E4EC);
  border-radius: 12px;
  background: #FAFAFB;
  font-size: 15px !important;
}

@media (max-width: 900px) {
  .pv-body .lg-container { grid-template-columns: 1fr; gap: 28px; }
  .pv-toc { position: static; }
  .pv-head { padding-top: 128px; }
  .pv-head h1 { font-size: 32px; }
}
