/* The legal pages (templates/terms.html, templates/privacy.html), on kz-pages.css: the head (.kzp-head), then the document in
   two columns, like the Help page: a sticky rail of the numbered sections on the left, the current one marked in ink, and
   the sections in one reading column (.kzp-prose). Each section's number in small capitals over its title, a subsection's
   number before its title; named items (providers, rights) as ruled rows, a note behind a hairline. No backgrounds.
   On a narrow screen the rail becomes a collapsible contents list above the text. */
.kzl { display: grid; grid-template-columns: 248px minmax(0, 1fr); column-gap: clamp(48px, 6vw, 112px); align-items: start; }

/* ---------------------------------------------------------------- the rail */
.kzl-toc { position: sticky; top: 104px; max-height: calc(100vh - 128px); overflow: auto; overscroll-behavior: contain; padding-right: 8px; }
.kzl-toc summary { display: block; margin-bottom: 14px; list-style: none; cursor: default; }
.kzl-toc summary::-webkit-details-marker { display: none; }
.kzl-toc ol { border-left: 1px solid var(--kz-line2); }
.kzp .kzl-toc a { display: grid; grid-template-columns: 28px minmax(0, 1fr); margin-left: -1px; padding: 6px 0 6px 14px; border-left: 1px solid transparent;
  font-size: var(--p-small); line-height: 1.3; color: var(--p-grey); text-decoration: none; transition: color var(--kz-t), border-color var(--kz-t); }
.kzl-toc a span { padding-top: 1px; font-size: 13px; font-weight: 600; color: var(--p-dim); font-variant-numeric: tabular-nums; transition: color var(--kz-t); }
.kzp .kzl-toc a:hover, .kzp .kzl-toc a[aria-current] { color: var(--kz-text); }
.kzp .kzl-toc a[aria-current] { border-left-color: var(--kz-text); }
.kzl-toc a:hover span, .kzl-toc a[aria-current] span { color: var(--kz-text); }

/* ---------------------------------------------------------------- the text */
.kzl .kzp-prose > section { scroll-margin-top: 88px; }
.kzl .kzp-prose > section + section { margin-top: clamp(48px, 4.4vw, 64px); }
.kzl-n { font-weight: 600; color: var(--p-dim); font-variant-numeric: tabular-nums; }
.kzp-prose h2 .kzl-n { display: block; margin-bottom: 12px; font-size: 13px; line-height: 1.4; letter-spacing: .08em; }
.kzp-prose h3 .kzl-n { margin-right: 10px; font-size: 14px; }
.kzp-prose h3 { margin-top: 32px; }
.kzp-prose h2 + h3 { margin-top: 20px; }
/* named items: the name in ink, its line in grey, ruled */
.kzl-defs { margin-top: 20px; border-top: 1px solid var(--kz-line2); }
.kzl-defs > div { display: grid; grid-template-columns: minmax(0, 15em) minmax(0, 1fr); column-gap: 24px; padding: 14px 0; border-bottom: 1px solid var(--kz-line2); }
.kzl-defs dt { font-size: var(--p-list); font-weight: 600; line-height: 1.45; color: #fff; }
.kzl-defs dd { font-size: var(--p-list); line-height: 1.45; color: var(--p-grey); }
.kzp-prose .kzl-defs + p, .kzp-prose ul + .kzl-aside, .kzp-prose p + .kzl-contact { margin-top: 20px; }
/* "Cookie settings" in the text: a key that reads as a link of the sentence */
.kzp-prose .kzk-link { display: inline; min-height: 0; font: inherit; font-weight: 600; color: #fff; }
/* a note behind a hairline */
.kzp-prose .kzl-aside { padding-left: 16px; border-left: 1px solid var(--p-field); font-size: var(--p-small); }
.kzp-prose .kzl-aside + p { margin-top: 20px; }
/* the contact lines: ruled, the addresses in ink */
.kzl-contact { padding-top: 14px; border-top: 1px solid var(--kz-line2); }
.kzp-prose .kzl-contact p + p { margin-top: 6px; }
.kzp-prose .kzl-contact .kzl-aside { margin-top: 14px; padding-left: 0; border-left: 0; }

@media (max-width: 960px) {
  .kzl { grid-template-columns: minmax(0, 1fr); row-gap: var(--p-in); }
  .kzl-toc { position: static; max-height: none; overflow: visible; padding-right: 0; border-top: 1px solid var(--kz-line2); border-bottom: 1px solid var(--kz-line2); }
  .kzl-toc summary { display: flex; align-items: center; justify-content: space-between; min-height: 52px; margin: 0; cursor: pointer; }
  .kzl-toc summary::after { content: "+"; font-size: 24px; font-weight: 300; color: #fff; }
  .kzl-toc details[open] summary::after { content: "\2212"; }
  .kzl-toc ol { columns: 2; column-gap: 24px; margin-bottom: 16px; border-left: 0; }
  .kzl-toc li { break-inside: avoid; }
  .kzp .kzl-toc a { align-items: center; min-height: 44px; margin-left: 0; padding-top: 4px; padding-bottom: 4px; border-left-color: var(--kz-line2); }
  .kzl-toc a span { padding-top: 0; }
}
@media (max-width: 640px) {
  .kzl-toc ol { columns: 1; }
  .kzl-defs > div { grid-template-columns: minmax(0, 1fr); row-gap: 4px; }
}
