/* Juridische pagina's AuraHost (privacybeleid, cookiebeleid, algemene voorwaarden).
   Bron: scripts/aurahost-juridisch/ in de repo. */
.lgl {
  --lgl-ink: #0F172A;
  --lgl-text: #334155;
  --lgl-muted: #64748B;
  --lgl-line: #E2E8F0;
  --lgl-soft: #F8FAFC;
  --lgl-blue: #1DA1F2;
  --lgl-purple: #7B2FF7;
  --lgl-cyan: #22D3EE;
  --lgl-radius: 18px;
  background: var(--lgl-soft);
  color: var(--lgl-text);
  font-family: 'Poppins', sans-serif;
  min-width: 0;
  max-width: 100%;
  overflow-x: clip;
}

/* ── Kop ─────────────────────────────────────────────── */
.lgl-hero {
  position: relative;
  overflow: hidden;
  background: var(--lgl-ink);
  color: #fff;
  padding: calc(var(--header-total-desktop, 134px) + 56px) 0 120px;
  isolation: isolate;
}
.lgl-hero::before {               /* fijn raster */
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, #000 30%, transparent 100%);
  z-index: -1;
}
.lgl-hero::after {                /* gloed in huisstijl */
  content: "";
  position: absolute;
  width: 620px; height: 620px;
  right: -160px; top: -260px;
  background: radial-gradient(circle, rgba(123,47,247,.45) 0%, rgba(29,161,242,.18) 45%, transparent 70%);
  z-index: -1;
}
.lgl-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.lgl-crumbs { font-size: .85rem; color: #94A3B8; margin-bottom: 22px; }
.lgl-crumbs a { color: #CBD5E1; text-decoration: none; }
.lgl-crumbs a:hover { color: #fff; }
.lgl-crumbs span { margin: 0 8px; opacity: .5; }
.lgl-hero h1 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: clamp(2.2rem, 1.4rem + 3vw, 3.6rem);
  letter-spacing: -.02em;
  line-height: 1.08;
  margin: 0 0 18px;
  color: #fff;
}
.lgl-hero h1 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--lgl-blue), var(--lgl-cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lgl-lead { max-width: 640px; font-size: 1.1rem; line-height: 1.7; color: #CBD5E1; margin: 0 0 28px; }
.lgl-meta { display: flex; flex-wrap: wrap; gap: 10px; }
.lgl-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12);
  font-size: .85rem; color: #E2E8F0;
}
.lgl-chip i { color: var(--lgl-cyan); }

/* ── Documentwisselaar ───────────────────────────────── */
.lgl-switch {
  position: relative; z-index: 2;
  margin: -64px auto 0;
  max-width: 1200px; padding: 0 24px;
}
.lgl-switch nav {
  min-width: 0; max-width: 100%;
  display: flex; gap: 6px; overflow-x: auto;
  background: #fff; border: 1px solid var(--lgl-line);
  border-radius: var(--lgl-radius);
  padding: 8px;
  box-shadow: 0 20px 45px -25px rgba(15,23,42,.35);
  scrollbar-width: none;
}
.lgl-switch nav::-webkit-scrollbar { display: none; }
.lgl-switch a {
  flex: 1 0 auto;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 18px; border-radius: 12px;
  color: var(--lgl-muted); font-weight: 500; font-size: .95rem;
  text-decoration: none; white-space: nowrap;
  transition: background .2s ease, color .2s ease;
}
.lgl-switch a:hover { background: var(--lgl-soft); color: var(--lgl-ink); }
.lgl-switch a:focus-visible { outline: 2px solid var(--lgl-blue); outline-offset: 2px; }
.lgl-switch a[aria-current="page"] {
  background: linear-gradient(120deg, rgba(29,161,242,.12), rgba(123,47,247,.12));
  color: var(--lgl-ink); font-weight: 600;
  box-shadow: inset 0 -2px 0 var(--lgl-purple);
}

/* ── Opbouw ──────────────────────────────────────────── */
.lgl-grid {
  max-width: 1200px; margin: 0 auto;
  padding: 48px 24px 96px;
  display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 56px;
  align-items: start;
}
.lgl-toc { position: sticky; top: 150px; }
.lgl-toc summary {
  list-style: none; cursor: default;
  font-family: 'Montserrat', sans-serif; font-weight: 700;
  font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--lgl-muted); margin-bottom: 14px;
}
.lgl-toc summary::-webkit-details-marker { display: none; }
.lgl-toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--lgl-line); }
.lgl-toc li a {
  display: block; margin-left: -2px; padding: 7px 0 7px 16px;
  border-left: 2px solid transparent;
  color: var(--lgl-muted); font-size: .9rem; line-height: 1.4; text-decoration: none;
  transition: color .15s ease, border-color .15s ease;
}
.lgl-toc li a:hover { color: var(--lgl-ink); }
.lgl-toc li a.is-active { color: var(--lgl-ink); font-weight: 600; border-left-color: var(--lgl-purple); }

.lgl-doc {
  background: #fff; border: 1px solid var(--lgl-line);
  border-radius: 24px; padding: 56px clamp(22px, 4vw, 64px);
  box-shadow: 0 30px 60px -45px rgba(15,23,42,.3);
}
.lgl .lgl-doc > section { scroll-margin-top: 150px; padding: 0; background: none; min-height: 0; overflow: visible; }
.lgl .lgl-doc > section + section { padding-top: 44px; }
.lgl-doc, .lgl-hero, .lgl-summary { overflow-wrap: anywhere; }
.lgl-meta, .lgl-lead { max-width: 100%; }
.lgl-doc > section + section { margin-top: 52px; padding-top: 44px; border-top: 1px solid var(--lgl-line); }
.lgl-doc h2 {
  display: flex; align-items: baseline; gap: 14px;
  font-family: 'Montserrat', sans-serif; font-weight: 800;
  font-size: clamp(1.35rem, 1.1rem + .8vw, 1.7rem);
  color: var(--lgl-ink); letter-spacing: -.01em; margin: 0 0 18px;
}
.lgl-num {
  flex: 0 0 auto;
  font-size: .8rem; font-weight: 700; letter-spacing: .04em;
  color: var(--lgl-purple);
  padding: 4px 10px; border-radius: 8px; background: rgba(123,47,247,.09);
  transform: translateY(-3px);
}
.lgl-doc h3 { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 1.08rem; color: var(--lgl-ink); margin: 28px 0 10px; }
.lgl-doc p, .lgl-doc li { font-size: 1.02rem; line-height: 1.78; max-width: 74ch; }
.lgl-doc p { margin: 0 0 14px; }
.lgl .lgl-doc ul, .lgl .lgl-doc ol.lgl-list { margin: 0 0 16px; padding-left: 1.3rem; list-style: disc outside; }
.lgl .lgl-doc ul > li { display: list-item; }
.lgl-doc li { margin-bottom: 8px; }
.lgl-doc li::marker { color: var(--lgl-blue); }
.lgl-doc a { color: #0B7BC0; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(11,123,192,.35); }
.lgl-doc a:hover { text-decoration-color: currentColor; }
.lgl-doc strong { color: var(--lgl-ink); font-weight: 600; }

/* artikelen met nummer (voorwaarden) */
.lgl-art { display: grid; grid-template-columns: 3.2rem minmax(0, 1fr); gap: 4px 10px; margin-bottom: 12px; }
.lgl-art > b { font-weight: 600; color: var(--lgl-muted); font-size: .95rem; line-height: 1.78; }
.lgl-art > p { margin: 0; }

/* In het kort */
.lgl-summary {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px;
  margin: 0 0 8px;
}
.lgl-summary div {
  display: grid; grid-template-columns: 42px 1fr; gap: 14px; align-items: start;
  padding: 18px; border-radius: 16px;
  background: var(--lgl-soft); border: 1px solid var(--lgl-line);
}
.lgl-summary i {
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center; font-size: 1.15rem; color: #fff;
  background: linear-gradient(135deg, var(--lgl-blue), var(--lgl-purple));
}
.lgl-summary p { margin: 0; }
.lgl-summary strong { display: block; font-size: .98rem; margin-bottom: 2px; }
.lgl-summary span { font-size: .92rem; line-height: 1.6; color: var(--lgl-muted); }

/* Kaders */
.lgl-note {
  display: grid; grid-template-columns: 24px 1fr; gap: 12px;
  margin: 18px 0; padding: 16px 18px; border-radius: 14px;
  background: rgba(29,161,242,.07); border: 1px solid rgba(29,161,242,.22);
  font-size: .97rem; line-height: 1.7;
}
.lgl-note i { color: var(--lgl-blue); font-size: 1.1rem; line-height: 1.6; }
.lgl-note--new { background: rgba(123,47,247,.06); border-color: rgba(123,47,247,.25); }
.lgl-note--new i { color: var(--lgl-purple); }
.lgl-note p:last-child { margin: 0; }

/* Tabellen (op mobiel als kaarten) */
.lgl-table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 10px 0 20px; font-size: .94rem; border: 1px solid var(--lgl-line); border-radius: 14px; overflow: hidden; }
.lgl-table th { text-align: left; background: #F1F5F9; color: var(--lgl-ink); font-weight: 600; padding: 12px 14px; font-size: .85rem; }
.lgl-table td { padding: 13px 14px; border-top: 1px solid var(--lgl-line); vertical-align: top; line-height: 1.6; }
.lgl-table td:first-child { font-weight: 600; color: var(--lgl-ink); }
.lgl-tag { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .75rem; font-weight: 600; white-space: nowrap; }
.lgl-tag--ok { background: #DCFCE7; color: #166534; }
.lgl-tag--ask { background: #FEF3C7; color: #92400E; }

/* Contactkaart */
.lgl-contact {
  margin-top: 56px; padding: 32px; border-radius: 20px;
  background: var(--lgl-ink); color: #CBD5E1;
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; align-items: center;
  position: relative; overflow: hidden;
}
.lgl-contact::after { content: ""; position: absolute; right: -80px; bottom: -120px; width: 300px; height: 300px; background: radial-gradient(circle, rgba(34,211,238,.25), transparent 70%); }
.lgl-contact h3 { color: #fff; margin: 0 0 8px; font-size: 1.2rem; }
.lgl-contact p { margin: 0; font-size: .95rem; line-height: 1.7; max-width: none; }
.lgl-contact address { font-style: normal; font-size: .92rem; line-height: 1.8; position: relative; z-index: 1; }
.lgl-contact a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.3); }
.lgl-contact a:hover { border-bottom-color: #fff; }

.lgl-print { margin-top: 26px; font-size: .88rem; color: var(--lgl-muted); display: flex; gap: 18px; flex-wrap: wrap; }
.lgl-print button { background: none; border: 0; padding: 0; color: #0B7BC0; cursor: pointer; font: inherit; }
.lgl-print button:hover { text-decoration: underline; }

/* ── Responsief ──────────────────────────────────────── */
@media (max-width: 991px) {
  .lgl-hero { padding: calc(var(--header-total-mobile, 70px) + 36px) 0 104px; }
  .lgl-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-top: 28px; }
  .lgl-toc { position: static; background: #fff; border: 1px solid var(--lgl-line); border-radius: 16px; padding: 14px 18px; }
  .lgl-toc summary { cursor: pointer; margin: 0; display: flex; justify-content: space-between; }
  .lgl-toc summary::after { content: "\F282"; font-family: "bootstrap-icons"; transition: transform .2s; }
  .lgl-toc[open] summary::after { transform: rotate(180deg); }
  .lgl-toc[open] ol { margin-top: 12px; }
  .lgl-doc { padding: 34px 20px; border-radius: 18px; }
  .lgl-contact { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .lgl-wrap, .lgl-switch, .lgl-grid { padding-left: 16px; padding-right: 16px; }
  .lgl-switch a { flex: 0 0 auto; padding: 12px 14px; font-size: .9rem; }
  .lgl-summary { grid-template-columns: 1fr; }
  .lgl-art { grid-template-columns: 2.6rem minmax(0, 1fr); }
  .lgl-table, .lgl-table tbody, .lgl-table tr, .lgl-table td { display: block; width: 100%; }
  .lgl-table thead { display: none; }
  .lgl-table { border: 0; border-radius: 0; }
  .lgl-table tr { border: 1px solid var(--lgl-line); border-radius: 14px; margin-bottom: 12px; overflow: hidden; }
  .lgl-table td { border-top: 0; padding: 6px 14px; }
  .lgl-table td:first-child { background: #F1F5F9; padding: 11px 14px; }
  .lgl-table td[data-label]:not(:first-child)::before { content: attr(data-label); display: block; font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--lgl-muted); }
  .lgl-table td:last-child { padding-bottom: 12px; }
}
@media (prefers-reduced-motion: reduce) { .lgl * { transition: none !important; } }
@media print {
  .wb-hdr, .wbioFtr-shell, .lgl-switch, .lgl-toc, .lgl-print, .lgl-hero::before, .lgl-hero::after { display: none !important; }
  .lgl-hero { background: none; color: #000; padding: 0 0 12px; }
  .lgl-hero h1, .lgl-lead, .lgl-chip { color: #000 !important; }
  .lgl-grid { display: block; padding: 0; }
  .lgl-doc { border: 0; box-shadow: none; padding: 0; }
}
