/* =====================================================================
   DOSIK TECHNOLOGY · PAGE CSS · LEGAL (/privacy, /accessibility, /terms): the compact band's "updated" line, the reading
   layout (the document | a sticky numbered TOC), numbered section heads, the other documents
   Load after inner.css, on those pages only. Tokens only; RTL by logical properties.
   ===================================================================== */


/* the band: crumbs · H1 · "עודכן לאחרונה: 19.10.2026" */
.legal__meta { margin-top: 2px; color: var(--text-3); }
.legal__meta time { font-weight: var(--fw-medium); color: var(--text-2); }

/* reading: the document beside the TOC; the TOC scrolls inside itself when it is taller than the window */
.reading--legal { grid-template-columns: minmax(0, 1fr) minmax(240px, 290px); }
.reading--legal .reading__aside .toc { max-height: calc(100vh - var(--hdr-h) - 48px); max-height: calc(100dvh - var(--hdr-h) - 48px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.legal { display: grid; align-content: start; gap: clamp(40px, 5vw, 64px); min-width: 0; }
.legal__body { max-width: 46rem; }
.legal__body a { overflow-wrap: anywhere; }
.legal__lead { font-size: var(--fz-lead); line-height: 1.75; color: var(--text); }

/* numbered section heads: a tinted number (the TOC's numbering) + the title, a hairline above each section */
.prose h2.lsec {
  display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; align-items: baseline;
  margin-top: 2.1em; padding-top: 1.05em; border-top: 1px solid var(--line);
  font-size: clamp(1.35rem, 1.18rem + .6vw, 1.75rem); line-height: 1.3; text-wrap: balance;
}
.lsec__n {
  display: inline-grid; place-items: center; min-width: 2.4rem; height: 2.4rem; padding-inline: 6px; border-radius: 12px;
  background: var(--accent-tint); color: var(--link); font: var(--fw-semibold) .9rem/1 var(--f-display);
  transform: translateY(-.12em);
}
.prose h2.lsec + * { margin-top: .75em; }

/* the other legal documents (the light .qtile cards, two side by side) */
.lmore { display: grid; gap: 12px; max-width: 46rem; padding-top: clamp(28px, 3.4vw, 40px); border-top: 1px solid var(--line); }
.lmore__h { font: var(--fw-semibold) var(--fz-sm)/1.3 var(--f-display); color: var(--text-3); }
.lmore .qtiles { --n: 2; }
.lmore .qtile { padding: 16px 18px; background: var(--bg); box-shadow: none; }
.lmore .qtile .icon-tile { --it: 44px; }

html.a11y-contrast .lsec__n { background: #fff; color: #000; border: 1.5px solid #000; }
html.a11y-contrast .lmore .qtile { background: #fff; border: 2px solid #000; }

@media (max-width: 960px) {
  /* phones and tablets: one column; the details TOC sits at the top of the document (the aside holds only the desktop TOC) */
  .reading--legal { grid-template-columns: minmax(0, 1fr); }
  .reading--legal .reading__aside { display: none; }
  .legal { gap: 40px; }
}
@media (max-width: 640px) {
  .prose h2.lsec { column-gap: 12px; }
  .lsec__n { min-width: 2.15rem; height: 2.15rem; border-radius: 10px; font-size: .85rem; }
}
