/* ==========================================================================
   Juridische pagina's: /algemene-voorwaarden/ en /privacy-verklaring/
   Leesbare kolom (max 760 px) met rechts een sticky inhoudsopgave (vanaf 1024 px).
   Daaronder een inklapbare inhoudsopgave boven de tekst.
   ========================================================================== */

/* ---- Kop -------------------------------------------------------------------- */
.jur__kop { display: flex; flex-direction: column; gap: 24px; padding-top: 80px; padding-bottom: 56px; }
.jur__kop::after { content: ""; display: block; height: 1px; margin-top: 32px; background: var(--c-line); }
.jur__h1 { font-size: clamp(36px, 9.6vw, 96px); line-height: .98; letter-spacing: -.055em; font-weight: 700; color: var(--c-black); }
.jur__datum { font-size: 15px; color: var(--c-muted); }

/* ---- Raster: tekst + inhoudsopgave ------------------------------------------- */
.jur__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; padding-bottom: var(--section-y); }
.jur__kol { min-width: 0; max-width: 760px; display: flex; flex-direction: column; gap: 64px; }

/* ---- Lopende tekst ----------------------------------------------------------- */
.jur__tekst { font-size: 17px; line-height: 1.75; color: var(--c-ink); counter-reset: hfd; overflow-wrap: break-word; }
.jur__tekst > * + * { margin-top: 1.15em; }
.jur__tekst h2 { margin-top: 2.4em; font-size: 28px; line-height: 1.2; letter-spacing: -.025em; color: var(--c-black); scroll-margin-top: calc(var(--hdr-h) + 24px); }
.jur__tekst h2::before { counter-increment: hfd; content: counter(hfd, decimal-leading-zero); display: block; margin-bottom: 10px; font-size: 14px; font-weight: 600; line-height: 1; letter-spacing: .14em; color: var(--c-blue-tekst); }
.jur__tekst > h2:first-child { margin-top: 0; }
.jur__tekst h3 { margin-top: 1.9em; font-size: 21px; line-height: 1.3; letter-spacing: -.015em; color: var(--c-black); scroll-margin-top: calc(var(--hdr-h) + 24px); }
.jur__tekst h2 + *, .jur__tekst h3 + * { margin-top: .6em; }
.jur__tekst ul, .jur__tekst ol { padding-left: 1.4em; }
.jur__tekst li { padding-left: .2em; }
.jur__tekst li + li { margin-top: .45em; }
.jur__tekst li::marker { color: var(--c-blue); font-weight: 700; }
.jur__tekst a { color: var(--c-blue-hover); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; transition: color .4s var(--ease); }
.jur__tekst a:hover { color: var(--c-ink); }
.jur__tekst strong { font-weight: 700; color: var(--c-black); }
.jur__tekst hr { height: 1px; margin: 2.4em 0; border: 0; background: var(--c-line); }
.jur__tekst blockquote { font-size: 19px; font-style: italic; color: var(--c-muted); }
.jur__tekst table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.jur__tekst th, .jur__tekst td { padding: 10px 12px; border-bottom: 1px solid var(--c-line); text-align: left; vertical-align: top; }

/* ---- Contactregel ------------------------------------------------------------ */
.jur__vraag { display: flex; align-items: center; gap: 16px; padding: 22px 26px; border-radius: 20px; background: var(--c-light); font-size: 17px; line-height: 1.5; }
.jur__vraag-ic { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--c-blue); color: #fff; transition: transform .6s var(--ease); }
.jur__vraag:hover .jur__vraag-ic { transform: rotate(-12deg) scale(1.06); }
.jur__vraag a { overflow-wrap: anywhere; }

/* ---- Inhoudsopgave ------------------------------------------------------------ */
.jur__toc-lijst { list-style: none; margin: 0; padding: 0; }
.jur__toc-lijst a { display: flex; align-items: flex-start; gap: 12px; padding: 7px 0; color: var(--c-muted); font-size: 15px; line-height: 1.4; text-decoration: none; transition: color .4s var(--ease), transform .5s var(--ease); }
.jur__toc-lijst a::before { content: ""; flex: none; width: 14px; height: 2px; margin-top: 10px; background: currentColor; transform-origin: 0 50%; transition: transform .5s var(--ease); }
.jur__toc-lijst a:hover { color: var(--c-blue); transform: translateX(4px); }
.jur__toc-lijst a:hover::before { transform: scaleX(1.8); }

/* Sticky rechts (desktop) */
.jur__zij { position: relative; min-width: 0; }
.jur__toc { position: sticky; top: calc(var(--hdr-h) + 24px); max-height: calc(100vh - var(--hdr-h) - 48px); overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 4px; padding-right: 4px; }
.jur__toc-kop { margin-bottom: 8px; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--c-ink); }

/* Inklapbaar boven de tekst (tablet en mobiel) */
.jur__toc-m { border: 1px solid var(--c-line); border-radius: 18px; background: #fff; }
.jur__toc-m summary { display: flex; align-items: center; gap: 8px; padding: 16px 20px; font-weight: 600; cursor: pointer; list-style: none; border-radius: 18px; }
.jur__toc-m summary::-webkit-details-marker { display: none; }
.jur__toc-m summary .muted { font-weight: 400; font-size: 15px; }
.jur__pijl { margin-left: auto; flex: none; transition: transform .5s var(--ease); }
.jur__toc-m[open] .jur__pijl { transform: rotate(180deg); }
.jur__toc-m .jur__toc-lijst { padding: 0 20px 14px; }

@media (min-width: 1024px) {
  .jur__grid { grid-template-columns: minmax(0, 760px) minmax(240px, 300px); justify-content: space-between; column-gap: 64px; }
  .jur__toc-m { display: none; }
}
@media (max-width: 1023px) {
  .jur__zij { display: none; }
}
@media (max-width: 760px) {
  .jur__kop { gap: 18px; padding-top: 48px; padding-bottom: 32px; }
  .jur__kop::after { margin-top: 20px; }
  .jur__grid { gap: 28px; }
  .jur__kol { gap: 48px; }
  .jur__tekst h2 { font-size: 24px; }
  .jur__tekst h3 { font-size: 19px; }
  .jur__vraag { align-items: flex-start; padding: 18px 20px; font-size: 16px; }
  .jur__vraag-ic { width: 40px; height: 40px; }
}
