/* Static legal pages (/privacy, /terms and /<lang>/privacy, /<lang>/terms). Palette C, R8 row I. */
:root {
  --navy: #1b2a4a;
  --navy-pressed: #111c33;
  --lime: #b6f23e;
  --bg: #f4f6fa;
  --surface: #ffffff;
  --text: #161c2b;
  --muted: #5b6276;
  --border: #e1e5ee;
  --chip: #edf0f5;
  --segment: #e5e9f2;
  --radius: 16px;
  --column: 680px;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px / 1.6 Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-feature-settings: 'cv11';
  overflow-wrap: break-word;
}

a {
  color: var(--navy);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: rgb(27 42 74 / 0.35);
}

a:hover {
  text-decoration-color: currentColor;
}

a:focus-visible,
main:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
  border-radius: 4px;
}

main:focus {
  outline: none;
}

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 10;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--navy);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
}

.skip-link:focus-visible {
  transform: none;
  outline-color: var(--lime);
}

.topbar,
main,
.site-footer {
  width: 100%;
  max-width: calc(var(--column) + 32px);
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left));
  padding-right: max(16px, env(safe-area-inset-right));
}

.topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding-top: max(16px, env(safe-area-inset-top));
  padding-bottom: 8px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--navy);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--navy);
  color: var(--lime);
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
}

.lang-switch {
  display: inline-flex;
  flex-wrap: wrap;
  padding: 3px;
  border-radius: 12px;
  background: var(--segment);
}

.lang-switch a {
  display: grid;
  place-items: center;
  min-width: 40px;
  min-height: 38px;
  padding: 0 8px;
  border-radius: 9px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.lang-switch a:hover {
  background: rgb(255 255 255 / 0.6);
}

.lang-switch a[aria-current='page'] {
  background: var(--navy);
  color: #fff;
}

main {
  padding-top: 16px;
  padding-bottom: 40px;
}

h1 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(28px, 6vw, 36px);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.effective {
  margin: 6px 0 20px;
  color: var(--muted);
  font-size: 14px;
}

/* Translations of the Polish original say which version prevails. */
.effective:has(+ .prevails) {
  margin-bottom: 4px;
}

.prevails {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 14px;
}

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.contact {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0 0 16px;
  padding: 14px 16px;
}

.contact-label {
  color: var(--muted);
  font-size: 13px;
}

.contact-email {
  align-self: flex-start;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
}

.contact-email:hover {
  text-decoration: underline;
}

.toc {
  margin: 0 0 32px;
  overflow: hidden;
}

.toc-title {
  margin: 0;
  padding: 14px 16px 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

.toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.toc li + li,
.toc li:first-child {
  border-top: 1px solid var(--border);
}

.toc a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 9px 16px;
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
}

.toc a:hover {
  background: var(--bg);
  color: var(--navy);
}

.toc a:focus-visible {
  outline-offset: -3px;
}

.lead {
  margin: 0 0 24px;
  color: var(--text);
  font-size: 17px;
}

section {
  scroll-margin-top: 16px;
}

section + section {
  margin-top: 32px;
}

h2 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 22px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h3 {
  margin: 20px 0 6px;
  color: var(--navy);
  font-size: 16px;
  line-height: 1.4;
  font-weight: 700;
}

h2 + h3 {
  margin-top: 12px;
}

p {
  margin: 0 0 12px;
}

ul {
  margin: 0 0 12px;
  padding-left: 22px;
}

li + li {
  margin-top: 6px;
}

li::marker {
  color: var(--muted);
}

strong {
  font-weight: 650;
  color: var(--navy);
}

.ui-path {
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--chip);
  color: var(--navy);
  font-weight: 600;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.table-wrap {
  margin: 4px 0 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.5;
}

th,
td {
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--chip);
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
}

tbody tr + tr td {
  border-top: 1px solid var(--border);
}

tbody td:first-child {
  font-weight: 600;
  color: var(--navy);
}

@media (max-width: 599px) {
  table,
  thead,
  tbody,
  tr,
  td {
    display: block;
  }

  thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  tbody tr {
    padding: 12px 14px;
  }

  tbody tr + tr {
    border-top: 1px solid var(--border);
  }

  tbody tr + tr td {
    border-top: 0;
  }

  td {
    padding: 0;
  }

  td + td {
    margin-top: 6px;
  }

  td + td::before {
    content: attr(data-label);
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
  }
}

.site-footer {
  padding-top: 20px;
  padding-bottom: max(28px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
}

.site-footer p {
  margin: 6px 0 0;
}

.footer-docs {
  color: var(--navy);
  font-size: 14px;
  font-weight: 700;
}

.footer-docs a,
.footer-contact a {
  text-decoration: none;
}

.footer-docs a[aria-current='page'] {
  text-decoration: underline;
  text-decoration-color: var(--lime);
  text-decoration-thickness: 3px;
}

.footer-contact a {
  color: var(--muted);
}

.footer-docs a:hover,
.footer-contact a:hover {
  text-decoration: underline;
}

@media (min-width: 720px) {
  main {
    padding-top: 32px;
  }

  .topbar {
    padding-top: 24px;
  }
}

@media print {
  body {
    background: #fff;
  }

  .skip-link,
  .lang-switch,
  .toc {
    display: none;
  }

  .card,
  .table-wrap {
    border-color: #999;
  }
}
