/* Ratio /privacy, ported from docs/design/ratio-storefront/privacy/v3-locked.html: page rules only. The legal frame
   (doc grid, index, phone index, "In het kort", the card, print) is legal.css; the shell is shell.css. */

/* ---------- Head of the page ---------- */
.page-head .drift{margin:12px 0 12px}
.intro{max-width:36.5rem}  /* about 75 characters of 18px Spectral */

/* ---------- Sections ---------- */
.sec{margin-top:40px;scroll-margin-top:16px}
.sec-head{font-size:30px;line-height:1.12}
.sec-head + *{margin-top:12px}
.prose p + p{margin-top:12px}
.prose strong{font-weight:600}
.intro{margin-top:10px}
.last{padding-bottom:10px}

/* The prose sections in two columns (owner review of v3, option 1), so they run to the frame edge like the cards:
   two equal columns, about 57 characters a line at 1366px, divided by the cards' blind hairline. Measured on the
   text column, not the window. */
.text{container:text / inline-size}
@container text (min-width:720px){
  .cols{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start}
  .cols > .col:first-child{padding-right:28px}
  /* The rights list's first pressed line would push its text below the right column's first line. */
  .cols .rights li:first-child{padding-top:0;box-shadow:none}
  .cols > .col + .col{margin-top:0;padding-left:24px;box-shadow:inset 1px 0 0 var(--rs-edge)}
}
.col p + p,.col + .col{margin-top:12px}

/* Uw rechten: the four rights cut line by line, as "In elk abonnement" on /prijzen. */
.rights li{padding:8px 0 8px;box-shadow:inset 0 1px 0 var(--rs-lip),inset 0 2px 0 var(--rs-raised)}

/* ---------- The cards: one per kind of data, one per row ---------- */
.cards{margin-top:16px;container:cards / inline-size}
.cards .card + .card{margin-top:14px}
.card h3{font-size:23px;line-height:1.18}
.card .desc{padding-top:8px}
.card .desc p + p{margin-top:10px}
/* The four fields, always in this order: a label/value column, the way the ruling header on rechtspraak.nl sets
   Instantie / Datum uitspraak (05). Labels small in ink-2, values in 18px body text, a blind hairline between. */
.card dl{margin-top:12px;box-shadow:inset 0 1px 0 var(--rs-edge)}
.card .f{display:grid;grid-template-columns:132px minmax(0,1fr);column-gap:18px;padding:7px 0 7px}
.card .f + .f{box-shadow:inset 0 1px 0 var(--rs-edge)}
.card .f dt{font-size:16px;line-height:1.3;color:var(--rs-ink-2);padding-top:3px}
.card .f dd{font-size:18px;line-height:1.42}
/* One card per row, the width spent inside it. The heading runs across the card; under it the description and the
   four fields, divided by a blind hairline, the way the ruling header (05) sets its label/value block beside the text.
   Reading order stays: what it is, then the details. Measured on the card row, not the window, so the two columns
   appear only where a field value still gets a readable width. */
@container cards (min-width:720px){
  .card{display:grid;grid-template-columns:minmax(0,40fr) minmax(0,60fr);column-gap:0;align-items:start;padding:16px 24px 12px}
  .card h3{grid-column:1 / -1}
  .card .desc{grid-column:1;padding:8px 28px 4px 0}
  .card dl{grid-column:2;margin-top:8px;padding-left:24px;box-shadow:inset 1px 0 0 var(--rs-edge)}
  .card .f:first-child{padding-top:3px}
  .card .f{grid-template-columns:112px minmax(0,1fr);column-gap:14px}
  .card .back{grid-column:1 / -1}
}

/* Meebeoordelen points to another site: no fields, so no card. A plain line under the last card, its heading run in. */
.pointer{margin-top:14px;scroll-margin-top:16px}
.pointer h3{display:inline;font-size:20px;line-height:1.3;margin-right:.45em}
.pointer h3 + p{display:inline}

/* ---------- Narrower screens ---------- */
@media (max-width:640px){
  .sec{margin-top:30px;scroll-margin-top:12px}
  .sec-head{font-size:25px}
  .card h3{font-size:21px}
  /* Phone: label over value, as on the demo, still in the fixed order. */
  .card .f{grid-template-columns:minmax(0,1fr);padding:7px 0}
  .card .f dt{padding-top:0}
  .pointer{scroll-margin-top:12px}
}

/* ---------- Print ---------- */
@media print{
  .card .f dd{font-size:11pt}
  .sec-head{font-size:16pt;break-after:avoid}
  .card h3{font-size:13pt;break-after:avoid}
  .card .f{grid-template-columns:30mm minmax(0,1fr);break-inside:avoid}
  .card .f dt{font-size:9.5pt}
  .rights li{break-inside:avoid}
}
