@layer scenes {
/* css/privatnost.css */
/* privatnost.css · the privacy page only (BUILD-PLAN-D.md section 9). Owner: privacy page.
   Not layered into site.css; the assemble script wraps this file in @layer scenes.
   Blocks in the order of plan 2.3: base · stacked · desktop · the contents column that stays (its own query).
   Type comes from the type classes in the markup (t-d56, t-lead, t-text, t-small); no colour of its own. */

/* ---- base: true at every width ---- */
.legal__toc { list-style: none; padding: 0; }
.legal__toc a { color: var(--ink-72); text-decoration: none; }
.legal__toc a:hover { color: var(--ink-100); text-decoration: underline; }

.legal__body p, .legal__body li { max-width: 62ch; }
.legal__body ul { list-style: disc; }
/* the app's policy (/privatnost-aplikacija, /app-privacy, 18. 11.): sub-headings and bold lead-ins, in the text's size */
.legal__body h3 { max-width: 62ch; }
.legal__body h3, .legal__body strong { color: var(--ink-100); font-weight: 600; }
/* a note before the first section (the English page's translation note) stands where a section would start */
.legal__body > p:first-child { margin-top: 0; }
/* a link that shows an address of this site (bilo.hr/privatnost-aplikacija) or names the other language stays whole */
.legal a[href^="/"] { white-space: nowrap; }
.legal__body li::marker { color: var(--ink-55); }

/* a contents link lands with its heading below the header: the ids stand on the headings */
/* … and so does a link reached with Shift+Tab from below */
.legal__body section, .legal__body h2, .legal__body a { scroll-margin-top: calc(var(--hdr-h) + 24px); }

/* ground behind the header (review, 15. 11.): .hdr is fixed and has no ground, so on this page, the only one whose
   text scrolls under it, every line passed through the wordmark and beside the button. A strip of the page's ground,
   as tall as the header plus a 16px fade, stays at the top of the window for the length of <main>; the header (z 50)
   stands on it. It takes no room: its margins pull it up to the page's top and give the padding back.
   Not needed any more once the header itself has a ground on this page (.hdr--page, foundation). */
.legal::before {
  content: ""; display: block; position: sticky; top: 0; z-index: 1; pointer-events: none;
  height: calc(var(--hdr-h) + 16px); margin-inline: -8px;
  background: linear-gradient(var(--ground) var(--hdr-h), transparent);
}

/* ---- stacked: one column ---- */
@media (max-width: 1099.98px) {
  .legal { padding: 104px var(--gutter) 96px; }
  .legal::before { margin-top: -104px; margin-bottom: calc(88px - var(--hdr-h)); }
  .legal__head, .legal__body { max-width: var(--rail); }
  .legal__head h1 + p { margin-top: 12px; }
  .legal__head p + p { margin-top: 24px; }
  .legal__toc { display: none; }
  .legal__body { margin-top: 48px; }
  .legal__body section + section { margin-top: 40px; }
  .legal__body p, .legal__body ul { margin-top: 16px; }
  .legal__body ul { padding-left: 20px; }
  .legal__body li + li { margin-top: 8px; }
  .legal__body h3 { margin-top: 32px; }
  .legal__body h2 + h3 { margin-top: 16px; }
  .legal__body > p + section { margin-top: 40px; }
}

/* ---- desktop: contents left in the rail, the text right ---- */
@media (min-width: 1100px) {
  .legal {
    max-width: var(--stage-w); margin-inline: auto;
    padding: calc(var(--hdr-h) + var(--u) * 48) var(--gutter) calc(var(--u) * 120);
    display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); column-gap: calc(var(--u) * 150);
  }
  /* the four blocks of the left column are 572.5u tall; 16 + 24 + 40 = 80u of spacing (at most 96u, section 9) */
  /* the strip, the left column and the text share the one row: a sticky grid item stays only inside its own area */
  .legal::before { grid-area: 1 / 1 / 2 / -1; align-self: start; margin-top: calc(-1 * (var(--hdr-h) + var(--u) * 48)); }
  .legal__head { grid-area: 1 / 1; }
  .legal__body { grid-area: 1 / 2; }
  .legal__head { align-self: start; }
  .legal__head h1 + p { margin-top: calc(var(--u) * 16); }
  .legal__head p + p { margin-top: calc(var(--u) * 24); }
  .legal__toc { margin-top: calc(var(--u) * 48); }
  .legal__toc a { display: inline-flex; align-items: center; min-height: calc(var(--u) * 34); }

  .legal__body section + section { margin-top: calc(var(--u) * 56); }
  .legal__body p, .legal__body ul { margin-top: calc(var(--u) * 16); }
  .legal__body ul { padding-left: calc(var(--u) * 20); }
  .legal__body li + li { margin-top: calc(var(--u) * 8); }
  .legal__body h3 { margin-top: calc(var(--u) * 32); }
  .legal__body h2 + h3 { margin-top: calc(var(--u) * 16); }
  .legal__body > p + section { margin-top: calc(var(--u) * 56); }
}

/* ---- the contents column stays while the text scrolls: only where it fits the screen whole ---- */
@media (min-width: 1100px) and (min-height: 800px) and (max-aspect-ratio: 9/5) {
  .legal__head { position: sticky; top: calc(var(--hdr-h) + var(--u) * 48); }
}
}
