/* Ratio /privacy-en-security, ported from docs/design/ratio-storefront/privacy-en-beveiliging/v3-locked.html: page
   rules only. The legal frame (doc grid, index, phone index, the card, print) is legal.css, the search sheet is
   ratio-search.css, the shell and the closing trial block are shell.css.
   The head and the four key points run the full frame; below them the index on the left and the sections to the
   frame's right edge. One section rhythm: an H2 under a thin pressed rule, 72px between sections, the content at full
   content width; two columns only where the content has two halves. */
:root{--seam:72px}  /* one seam between sections (owner feedback 1.3: 64-80px) */

/* ---------- Head of the page, across the frame: title, subline, the drift rule across the frame, the paragraph at
   about 70 characters ---------- */
.page-head{padding-top:22px}
.subline{font-size:26px;line-height:1.18;margin-top:8px;font-weight:400}
.page-head .drift{width:100%}
.lead{font-size:19px;line-height:1.45;max-width:40rem}
.nb{white-space:nowrap}

/* The four key points (#kernpunten) and the check line are the shared key-point tiles, points.css. */

/* ---------- The sheet (legal.css), one seam under the key points; the index as the mockup sets it here: 18px entries,
   none wrapping, its first entry level with the first section's heading ---------- */
.doc.wrap{padding-top:0;margin-top:var(--seam)}
.toc{padding:24px 4px 12px 0}
.toc > ul > li{font-size:18px;padding:6px 0 6px}
.toc ul ul li{font-size:17px}
.toc li{white-space:nowrap}
.toc-m{margin-top:22px}

/* ---------- Sections: one rhythm. An H2 under a thin pressed rule, the content at full content width. An index link
   lands with the pressed rule and the heading in view (the masthead is not sticky). ---------- */
.sec{scroll-margin-top:16px;padding-top:22px;box-shadow:inset 0 1px 0 var(--rs-lip),inset 0 2px 0 var(--rs-raised)}
.sec + .sec,.sec + .duo,.duo + .sec{margin-top:var(--seam)}
.sec-head{font-size:32px;line-height:1.12}
.sec-head + *{margin-top:16px}
.sub-head{font-size:23px;line-height:1.18;scroll-margin-top:16px}
.prose{max-width:36.5rem}  /* about 75 characters of 18px Spectral */
.prose + .prose{margin-top:12px}
.after{margin-top:12px;font-size:17px;line-height:1.4;color:var(--rs-ink-2)}
.sec > .check{margin-top:16px}

/* Two halves: used only where the content has two (feedback 1.2). */
.pair{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:48px;align-items:start}
.pair .prose{max-width:none}

/* ---------- Tables: plain <table>, pressed lines on the paper, no fill, so they paste into an e-mail as a table. The
   label column is the ruling header's label column (05). ---------- */
.tbl{width:100%;border-collapse:separate;border-spacing:0}
.tbl th,.tbl td{text-align:left;vertical-align:top;padding:9px 0 9px;font-size:18px;line-height:1.42;box-shadow:inset 0 1px 0 var(--rs-lip),inset 0 2px 0 var(--rs-raised)}
.tbl th{font-weight:400}
.tbl tbody tr:last-child th,.tbl tbody tr:last-child td{box-shadow:inset 0 1px 0 var(--rs-lip),inset 0 2px 0 var(--rs-raised),inset 0 -1px 0 var(--rs-lip)}
.tbl--rij th[scope="row"]{width:250px;padding-right:28px;color:var(--rs-ink-2)}
.tbl--bewaar thead th{font-size:17px;line-height:1.3;color:var(--rs-ink-2);font-style:italic;padding:0 24px 8px 0;box-shadow:none}
.tbl--bewaar tbody th,.tbl--bewaar td{padding-right:24px}
.tbl--bewaar tbody th{font-weight:600}
.tbl--bewaar col.c1{width:28%}
.tbl--bewaar col.c2{width:20%}
.tbl--bewaar col.c3{width:25%}
.tbl--bewaar col.c4{width:27%}
.tbl--bewaar tbody td:last-child{padding-right:0}

/* ---------- Wat er met een zoekvraag gebeurt: the diagram across the content width, each step's text under its own
   box. Four pressed plates (the home page's recessed plate) joined by brass leaders; the stored query a dashed plate
   hanging below plate 2 on a dashed leader. The list is the diagram: one <ol>, so the five steps read in order to a
   screen reader and the owner's alt text names the whole. Measured on the section, not the window: vertical whenever
   a plate would be narrower than 140px. ---------- */
.zv{container-type:inline-size;container-name:route}
.key{display:inline-grid;place-items:center;width:26px;height:26px;font-family:var(--rs-f-mono);font-weight:500;font-size:16px;line-height:1;color:var(--rs-brass);background:var(--rs-raised);box-shadow:inset 0 0 0 1.5px var(--rs-brass)}
.route{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:auto auto auto 36px auto auto;column-gap:48px}
.route > li{position:relative;display:grid;grid-row:1 / span 3;grid-template-rows:subgrid;row-gap:0}
.node{position:relative;border:1px solid var(--rs-lip);box-shadow:inset 2px 2px 0 var(--rs-lip),inset -1px -1px 0 var(--rs-raised);background:var(--rs-paper);padding:9px 14px 8px 14px;font-size:18px;line-height:1.25}
.node .key{display:grid}
/* The number before the name, the drawing at the plate's foot, centred, and the provider under the drawing. Every
   plate keeps the provider's row, empty or not, so the four drawings stand on one line whatever the name above. */
.node:not(.node--kept){display:grid;grid-template-columns:auto minmax(0,1fr);grid-template-rows:auto 1fr 21px;column-gap:10px}
.node .nm{padding-top:2px}
.vg{display:block;fill:none;stroke:var(--rs-ink);stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.node:not(.node--kept) .vg{grid-column:1 / -1;align-self:end;justify-self:center;margin:16px 0 4px}
.vg .f{fill:var(--rs-raised)}
.vg .b{stroke:var(--rs-brass)}
.vg .m{stroke:var(--rs-lip)}
.vg .d{fill:var(--rs-ink-2);stroke:none}
.vg .bf{fill:var(--rs-brass);stroke:none}
.vg--kept{margin-left:auto;flex:none}
/* The provider under a plate, one style for both: the same spaced capitals in ink-2, a label like the name on a
   nameplate. The source text keeps the names' own spelling. */
.node .by{display:block;grid-column:1 / -1;justify-self:center;color:var(--rs-ink-2);font-size:16px;line-height:1.3;text-transform:uppercase;letter-spacing:.07em}
/* The leader to the next plate: a brass rule across the 48px gap with a small head. */
.route > li:nth-child(-n+3) .node::before{content:"";position:absolute;left:100%;top:50%;width:41px;height:2px;margin:-1px 0 0 1px;background:var(--rs-brass)}
.route > li:nth-child(-n+3) .node::after{content:"";position:absolute;left:calc(100% + 40px);top:50%;margin-top:-5px;border-left:7px solid var(--rs-brass);border-top:5px solid transparent;border-bottom:5px solid transparent}
.land{font-size:17px;line-height:1.3;font-style:italic;color:var(--rs-ink-2);padding:7px 0 0 1px}
.stepsay{font-size:17px;line-height:1.42;padding:8px 0 0 1px}
.stem{display:none}
/* Step 5 hangs below plate 2: the dashed leader runs down the right side of plate 2's column, across the seam row,
   onto the dashed plate. */
.route > li:nth-child(2) .land,.route > li:nth-child(2) .stepsay{margin-right:20px;padding-right:22px;border-right:2px dashed var(--rs-brass)}
.route > li:nth-child(5){grid-column:2 / span 3;grid-row:5 / span 2;display:block}
.route > li:nth-child(5)::before{content:"";position:absolute;bottom:100%;left:calc((100% - 96px) / 3 - 22px);height:36px;border-left:2px dashed var(--rs-brass)}
.node--kept{border:1.5px dashed var(--rs-brass);box-shadow:none;background:transparent;display:flex;align-items:center;gap:12px;padding:10px 14px}
.node--kept .key{margin:0}
.route > li:nth-child(5) .stepsay{max-width:36.5rem}
.zv .check{margin-top:20px}

/* Vertical: plate on the left, the step beside it; a brass stem runs down from each plate to the next. */
@container route (max-width:760px){
  .route{display:block}
  .route > li{display:grid;grid-template-columns:140px minmax(0,1fr);grid-template-rows:auto auto 1fr;column-gap:16px}
  .route > li + li{margin-top:0}
  .node{grid-column:1;grid-row:1;padding:10px 10px 10px 11px;font-size:17px}
  /* 140px is too narrow for the number beside the name: the number goes back above it, the drawing still below. */
  .node:not(.node--kept){grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto 1fr 21px}
  .node:not(.node--kept) .key{margin-bottom:6px}
  .node .nm{padding-top:0}
  .node:not(.node--kept) .vg{width:84px;height:auto;margin:12px 0 4px}
  .route > li:nth-child(-n+3) .node::before,.route > li:nth-child(-n+3) .node::after{content:none}
  .land{grid-column:1;grid-row:2;font-size:16px;padding:5px 0 0}
  .stepsay{grid-column:2;grid-row:1 / span 3;padding:0 0 22px}
  .route > li:nth-child(2) .land,.route > li:nth-child(2) .stepsay{margin-right:0;padding-right:0;border-right:0}
  .stem{display:block;grid-column:1;grid-row:3;position:relative;min-height:30px;margin-left:20px;border-left:2px solid var(--rs-brass)}
  .stem::after{content:"";position:absolute;left:-7px;bottom:2px;border-left:6px solid transparent;border-right:6px solid transparent;border-top:7px solid var(--rs-brass)}
  .stem--kept{border-left:2px dashed var(--rs-brass)}
  .route > li:nth-child(5){display:grid;grid-template-columns:140px minmax(0,1fr);column-gap:16px}
  .route > li:nth-child(5)::before{content:none}
  .node--kept{display:block;padding:10px 10px 10px 11px}
  .node--kept .key{display:grid;margin-bottom:6px}
  .vg--kept{margin:8px 0 0}
  .route > li:nth-child(5) .stepsay{grid-row:1;padding-bottom:0}
}

/* ---------- Wat wordt bewaard: the table across, then one sentence on what happens after the end (#na-opzegging). */
.na{margin-top:16px}

/* ---------- Zoeken zonder cliëntgegevens: the text left, the search box right, with "Zo zoekt u" above it. ---------- */
.zoek .pair{grid-template-columns:minmax(0,44fr) minmax(0,56fr);grid-template-rows:auto 1fr}
.zoek .pair > .prose:first-child{grid-column:1;grid-row:1}
.zoek .pair > .prose:last-child{grid-column:1;grid-row:2;margin-top:12px}
.example{grid-column:2;grid-row:1 / span 2}
.ex-label{font-size:17px;line-height:1.3;color:var(--rs-ink-2);font-style:italic;padding-bottom:8px}
/* A picture of the field, not the field: no pointer, no caret, no hover. No recessed plate and no frame on the sheet
   (a frame in a frame, plus a shadow, read heavy): the field and its button are the only frame, straight on the paper,
   the example text one step larger. */
.plate{background:var(--rs-paper)}
.plate .ratio-search{pointer-events:none;user-select:none;cursor:default}
.example .ratio-search{padding:0;background:transparent}
.example .ratio-search .rs-searchsheet{background:transparent;border:0;border-radius:0;padding:0;box-shadow:none}
.example .ratio-search .input{font-size:19px;line-height:1.38}

/* ---------- Toegang en security: one list at full width, one point per line (feedback 2, option 1). ---------- */
.list{margin-top:10px}
.sec-head + .list{margin-top:16px}
.list li{padding:9px 0 9px;font-size:18px;line-height:1.42;box-shadow:inset 0 1px 0 var(--rs-lip),inset 0 2px 0 var(--rs-raised)}
.list li:last-child{box-shadow:inset 0 1px 0 var(--rs-lip),inset 0 2px 0 var(--rs-raised),inset 0 -1px 0 var(--rs-lip)}
.list + p{margin-top:14px}

/* ---------- Verwerkersovereenkomst and De juridische teksten side by side, one top edge. ---------- */
.duo{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:48px;align-items:start}
.duo > .sec{margin-top:0}
.duo .prose,.duo .docs{max-width:none}
.dpa{margin-top:16px}  /* the pdf button, once the pdf exists */
.docs li{padding:8px 0 8px;font-size:18px;line-height:1.42;box-shadow:inset 0 1px 0 var(--rs-lip),inset 0 2px 0 var(--rs-raised)}
.docs li:first-child{box-shadow:none;padding-top:0}
.docs .ver{color:var(--rs-ink-2)}
.docs-note{margin-top:12px}

/* The closing trial block with its heading (ratio/_trial_close.html) is shell.css's: one seam under the sheet. */
.colophon{margin-top:88px}  /* v2: more space above it (feedback 2 "Closing") */

/* ---------- Narrower screens (the frame's widths, legal.css) ---------- */
@media (max-width:1100px){
  .pair,.zoek .pair{display:block}
  .pair .prose{max-width:36.5rem}
  .example{margin:16px 0;max-width:36.5rem}
  .duo{grid-template-columns:minmax(0,1fr)}
  .duo > .sec + .sec{margin-top:var(--seam)}
  .duo .prose,.duo .docs{max-width:36.5rem}
}
@media (max-width:960px){
  .back{margin-top:12px}
  .doc.wrap{margin-top:40px}
}
/* Block 5 as stacked records: each row one record, the column name before each value. Still a <table>. */
@media (max-width:760px){
  .tbl--bewaar thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
  .tbl--bewaar,.tbl--bewaar tbody,.tbl--bewaar tr,.tbl--bewaar th,.tbl--bewaar td{display:block;width:auto}
  .tbl--bewaar tr{padding:10px 0 10px;box-shadow:inset 0 1px 0 var(--rs-lip),inset 0 2px 0 var(--rs-raised)}
  .tbl--bewaar tbody tr:last-child{box-shadow:inset 0 1px 0 var(--rs-lip),inset 0 2px 0 var(--rs-raised),inset 0 -1px 0 var(--rs-lip)}
  .tbl--bewaar tbody th,.tbl--bewaar td,.tbl--bewaar tbody tr:last-child th,.tbl--bewaar tbody tr:last-child td{box-shadow:none;padding:0}
  .tbl--bewaar tbody th{padding-bottom:4px}
  .tbl--bewaar td{display:grid;grid-template-columns:7.4em minmax(0,1fr);column-gap:10px;padding:2px 0}
  .tbl--bewaar td::before{content:attr(data-label);color:var(--rs-ink-2);font-style:italic}
}
@media (max-width:640px){
  :root{--seam:64px}
  .page-head{padding-top:18px}
  .subline{font-size:22px}
  .lead{font-size:18px}
  .sec{scroll-margin-top:12px;padding-top:18px}
  .sec-head{font-size:26px}
  .sub-head{font-size:21px}
  /* Alles op een rij on a phone: label over value, in the same order. */
  .tbl--rij,.tbl--rij tbody,.tbl--rij tr,.tbl--rij th,.tbl--rij td{display:block;width:auto}
  .tbl--rij tr{padding:9px 0 10px;box-shadow:inset 0 1px 0 var(--rs-lip),inset 0 2px 0 var(--rs-raised)}
  .tbl--rij tbody tr:last-child{box-shadow:inset 0 1px 0 var(--rs-lip),inset 0 2px 0 var(--rs-raised),inset 0 -1px 0 var(--rs-lip)}
  .tbl--rij th,.tbl--rij td,.tbl--rij tbody tr:last-child th,.tbl--rij tbody tr:last-child td{box-shadow:none;padding:0}
  .tbl--rij th[scope="row"]{width:auto;padding:0 0 2px;font-size:17px}
  /* The example's search sheet on a phone (ratio-search.css sets the rest). */
  .example .ratio-search{padding:0}
  .example .ratio-search .input{font-size:18px}
  .colophon{margin-top:72px}
}

/* ---------- Print (the frame's print block is legal.css, the cards' is points.css): the diagram and the timeline printed
   with their rules, tables kept, rows never split, no trial block. ---------- */
@media print{
  .doc,.doc.wrap{margin-top:12pt}
  .page-head{padding-top:8pt}
  .subline{font-size:14pt}
  .lead{font-size:11pt;max-width:none}
  .tbl th,.tbl td,.list li,.docs li,.stepsay,.node{font-size:10pt !important}
  .land,.node .by{font-size:9pt}
  .sec{box-shadow:inset 0 1px 0 var(--rs-lip);padding-top:8pt}
  .sec + .sec,.sec + .duo,.duo + .sec{margin-top:14pt}
  .sec-head{font-size:16pt;break-after:avoid}
  .sub-head{font-size:12pt;break-after:avoid}
  .tbl tr,.list li,.route > li{break-inside:avoid;page-break-inside:avoid}
  .tbl--bewaar{display:table;width:100%}
  .tbl--bewaar thead{display:table-header-group;position:static;width:auto;height:auto;overflow:visible;clip:auto}
  .tbl--bewaar tbody{display:table-row-group}
  .tbl--bewaar tr{display:table-row;padding:0}
  .tbl--bewaar th,.tbl--bewaar td,.tbl--bewaar tbody tr:last-child th,.tbl--bewaar tbody tr:last-child td{display:table-cell;padding:4pt 8pt 4pt 0;box-shadow:inset 0 1px 0 var(--rs-lip)}
  .tbl--bewaar td::before{content:none}
  .zv,.plate{-webkit-print-color-adjust:exact;print-color-adjust:exact}
  .zv,.example,.docs{break-inside:avoid;page-break-inside:avoid}
  .duo{margin-top:14pt}
}
