/* Long-form legal pages (privacy policy, terms). Loaded after styles.css,
   which supplies the tokens, header and footer. */
/* The home page's header panel runs on into the hero; with no hero here it
   closes on its own. */
.top--solo { margin-bottom: 0; border-radius: var(--panel-radius); }
.legal { max-width: 72ch; padding-block: clamp(32px, 6vw, 72px); }
.legal h1 { font-family: var(--display); font-size: clamp(34px, 4.4vw, 52px); line-height: 1.1; font-weight: 700; letter-spacing: -0.045em; }
.legal .updated { margin-top: 12px; color: var(--body-strong); font-size: 16px; }
.legal h2 { margin-top: 48px; font-family: var(--display); font-size: clamp(22px, 2.2vw, 28px); line-height: 1.25; font-weight: 700; letter-spacing: -0.03em; }
.legal h3 { margin-top: 28px; font-size: 20px; line-height: 1.3; font-weight: 800; letter-spacing: -0.02em; }
.legal p, .legal li { color: var(--body-strong); }
.legal p { margin-top: 14px; }
.legal ul, .legal ol { margin: 14px 0 0; padding-left: 1.3em; display: grid; gap: 8px; }
.legal ul { list-style: disc; }
.legal ol { list-style: decimal; }
/* Bare domains such as prawakonsumenta.uokik.gov.pl are wider than a nested
   list on a 320 px phone. */
.legal a { color: var(--pine); font-weight: 600; overflow-wrap: anywhere; }
.legal a:hover { color: var(--apricot-deep); }
.legal strong { color: var(--pine); }
.legal .table-wrap { margin-top: 18px; overflow-x: auto; }
.legal table { width: 100%; border-collapse: collapse; font-size: 16px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--border-strong); color: var(--body-strong); }
.legal th { color: var(--pine); font-weight: 800; border-bottom: 1.5px solid var(--pine); }
.legal .todo { background: var(--apricot-fill); color: var(--apricot-deep); font-weight: 700; padding: 0 4px; border-radius: 4px; }
.legal nav[aria-label="Spis treści"], .legal nav[aria-label="Table of contents"] { margin-top: 32px; padding: 20px 24px; border: 1.5px solid var(--border-strong); border-radius: 28px; }
.legal nav[aria-label="Spis treści"] ol, .legal nav[aria-label="Table of contents"] ol { margin: 0; }
/* Entries that already carry their own "§ N." label. */
.legal nav[aria-label="Spis treści"] ol.toc--numbered, .legal nav[aria-label="Table of contents"] ol.toc--numbered { list-style: none; padding-left: 0; }
/* Wide tables name each column in <thead>; stacked cards need the name in
   the cell itself, as real text so screen readers keep it too. */
.legal .cell-label { display: none; }
/* Narrow screens stack each row into a card: five columns can't fit at the
   page's large body text, and a sideways-scrolling table hides columns. */
@media (max-width: 720px) {
  .legal table.stack, .legal table.stack tbody, .legal table.stack tr, .legal table.stack th, .legal table.stack td { display: block; }
  .legal table.stack thead { display: none; }
  .legal table.stack tr { padding: 16px 0; border-bottom: 1px solid var(--border-strong); }
  .legal table.stack th, .legal table.stack td { padding: 0; border: 0; }
  .legal table.stack th[scope="row"] { border: 0; font-size: 18px; }
  .legal table.stack td { margin-top: 8px; }
  .legal table.stack .cell-label { display: block; color: var(--pine); font-weight: 800; font-size: 14px; }
}
.legal .download, .legal .lang-switch { margin-top: 8px; font-size: 16px; }

/* The terms PDF (scripts/terms-pdf.sh) is printed from this page, so print
   must show only the document. */
@page { margin: 18mm 16mm; }
@media print {
  .skip, header.top, .site-footer, .legal .download, .legal .lang-switch, .legal nav[aria-label="Spis treści"], .legal nav[aria-label="Table of contents"] { display: none; }
  .legal { max-width: none; padding: 0; font-size: 11pt; }
  .legal p, .legal li, .legal td { letter-spacing: normal; word-spacing: 0.04em; }
  .legal h2 { break-after: avoid; }
  .legal a { color: inherit; font-weight: inherit; text-decoration: none; }
}
