/* The legal documents (terms, privacy policy, cookie policy) and the contact page. */

@layer pages {
  /* ——— Legal documents (the terms, the privacy policy, the cookie policy) ——— */

  .kl__legal { padding: 52px 0 76px; }
  .kl__legal-head { max-width: 720px; margin: 0 auto; text-align: center; }
  .kl__legal-title { margin: 0 0 10px; line-height: 1.12; }
  /* One still card (ms-card--still) holds a whole document. Long addresses in the text wrap instead of widening a
     phone's page. */
  .kl__legal-body { max-width: 760px; margin: 40px auto 0; padding: clamp(26px, 5vw, 52px); overflow-wrap: break-word; }
  .kl__legal-sec { margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line); }
  .kl__legal-sec:first-of-type { margin-top: 18px; padding-top: 0; border-top: 0; }
  .kl__legal-sec h2 { display: flex; align-items: baseline; gap: 10px; font-family: var(--font-display); font-size: var(--heading-sm); font-weight: var(--weight-regular); line-height: 1.3; color: var(--ink); margin: 0 0 12px; }
  .kl__legal-sec h2 .kl__legal-num { color: var(--tone); font-variant-numeric: tabular-nums; white-space: nowrap; }
  /* An annex of the terms: its label („Załącznik nr 1”) above its heading, which would leave a phone a narrow column. */
  .kl__legal-sec--annex h2 { flex-direction: column; gap: 2px; }
  .kl__legal-sec p { margin: 0 0 12px; color: var(--ink-soft); }
  .kl__legal-sec p:last-child { margin-bottom: 0; }
  /* The numbered points of a paragraph (ol) and their lettered ones (ol type="a") keep the numbers the text refers to
     („ust. 1”, „pkt 2”); the annexes' forms are bullet lists. */
  .kl__legal-sec ul { margin: 0 0 12px; padding-left: 22px; }
  .kl__legal-sec ol { margin: 0 0 12px; padding-left: 28px; }
  .kl__legal-sec li > ol { margin: 8px 0 0; padding-left: 22px; }
  .kl__legal-sec :is(ul, ol):last-child { margin-bottom: 0; }
  .kl__legal-sec li { margin: 0 0 8px; color: var(--ink-soft); }
  .kl__legal-sec li::marker { color: var(--tone); font-variant-numeric: tabular-nums; }
  .kl__legal-sec li:last-child { margin-bottom: 0; }
  /* A note in a document's saved text (legal_documents.content; the panel's editor inserts it). */
  .kl__legal-note { font-style: italic; color: var(--muted); }
  /* Links in a document's text keep the link blue of running text (.kl a:not([class])), underlined: among this many
     words the colour alone would not tell them apart. */
  .kl__legal-body a:not([class]) { text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 3px; }
  .kl__legal-body a:not([class]):hover { text-decoration-color: currentColor; }
  .kl__legal-back { display: inline-block; margin-top: 34px; }
  /* The version a page shows and the dates it is in force; above its text, the note of a version not in force, or the
     announcement of the next one. */
  .kl__legal-version { margin: 0; font-size: var(--text-sm); color: var(--muted); font-variant-numeric: tabular-nums; }
  .kl__legal-status { max-width: 760px; margin: 28px auto 0; padding: 16px 22px; text-align: center; color: var(--ink-soft); }
  /* Every version of the document, the newest first, below its text. */
  .kl__legal-history { margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--line); font-size: var(--text-sm); }
  .kl__legal-history h2 { font-family: var(--font-display); font-size: var(--heading-sm); font-weight: var(--weight-regular); color: var(--ink); margin: 0 0 12px; }
  .kl__legal-history ol { margin: 0; padding-left: 0; list-style: none; }
  .kl__legal-history li { margin: 0 0 6px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
  .kl__legal-history a:not([class]) { text-decoration: underline; text-underline-offset: 3px; }
  .kl__legal-history-dates { color: var(--muted); }

  /* ——— Contact ——— */

  .kl__contact { padding: 52px 0 76px; }
  .kl__contact-grid { display: grid; gap: 44px; grid-template-columns: .92fr 1.08fr; align-items: start; }
  .kl__contact-intro { padding-top: 6px; }
  .kl__contact-title { margin: 0 0 14px; }
  .kl__contact-lead { color: var(--ink-soft); font-size: var(--text-xl); margin: 0 0 26px; max-width: 46ch; }
  .kl__contact-points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
  .kl__contact-point { display: flex; align-items: center; gap: 14px; color: var(--ink); font-size: var(--text-lg); }
  .kl__contact-point-ic {
    flex-shrink: 0;
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--tone);
    background: var(--glass-tint);
    border: 1px solid var(--glass-edge);
    box-shadow: var(--shadow-sm);
  }
  .kl__contact-point-ic svg { width: 18px; height: 18px; }
}
