.legal-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 18px;
  margin-top: 26px;
}

.legal-actions .legal-pdf-button {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  border-color: var(--white);
  cursor: pointer;
}

.legal-actions .legal-pdf-button:hover {
  color: var(--white);
  background: transparent;
}

.legal-actions__hint {
  max-width: 440px;
  margin: 0;
  color: rgba(255, 255, 255, .82);
  font-size: 13px !important;
  line-height: 1.45 !important;
}

.legal-page .legal-content h2.legal-heading {
  margin: 42px 0 16px;
  padding-top: 26px;
  color: var(--ink);
  border-top: 1px solid var(--line);
  font-size: clamp(24px, 2.5vw, 32px);
  line-height: 1.16;
  letter-spacing: -.025em;
}

.legal-page .legal-content h3.legal-subheading {
  margin: 30px 0 10px;
  color: var(--ink);
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.3;
}

.legal-page .legal-content .legal-list-item {
  position: relative;
  margin: 9px 0;
  padding-left: 28px;
}

.legal-page .legal-content .legal-list-item > strong:first-child {
  position: absolute;
  left: 0;
  color: var(--blue);
}

.legal-page .legal-content > .content-column > p:not(.legal-list-item) {
  margin-block: 11px;
}

.legal-print-footer {
  display: none;
}

.legal-polityka-prywatnosci .legal-hero::before {
  background-position: center 54%;
}

.legal-polityka-prywatnosci .legal-hero::after {
  background: linear-gradient(90deg, rgba(7, 20, 32, .96), rgba(7, 29, 51, .76) 52%, rgba(7, 29, 51, .34));
}

.legal-warunki-uzytkowania .legal-hero::before {
  background-position: center 48%;
}

.legal-warunki-uzytkowania .legal-hero::after {
  background: linear-gradient(90deg, rgba(7, 20, 32, .96), rgba(7, 29, 51, .76) 52%, rgba(7, 29, 51, .32));
}

@media (max-width: 760px) {
  .legal-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .legal-actions .legal-pdf-button {
    width: 100%;
  }

  .legal-page .legal-content h2.legal-heading {
    margin-top: 32px;
    padding-top: 20px;
  }
}

@media print {
  @page {
    size: A4;
    margin: 16mm 15mm 22mm;
  }

  html,
  body {
    color: #111;
    background: #fff !important;
    font-family: Arial, sans-serif;
  }

  .site-header,
  .page-footer,
  .skip-link,
  .legal-actions,
  .analytics-consent,
  .analytics-settings-button {
    display: none !important;
  }

  .legal-page main,
  .legal-page .content-section,
  .legal-page .content-section--tint {
    padding: 0 !important;
    color: #111 !important;
    background: #fff !important;
  }

  .legal-page .page-hero {
    min-height: 0;
    margin-bottom: 12mm;
    background: #fff !important;
  }

  .legal-page .page-hero::before,
  .legal-page .page-hero::after {
    display: none !important;
  }

  .legal-page .page-hero h1,
  .legal-page .page-hero p,
  .legal-page .legal-content h2,
  .legal-page .legal-content h3,
  .legal-page .legal-content p,
  .legal-page .legal-content li,
  .legal-page .legal-content a {
    color: #111 !important;
  }

  .legal-page .page-hero h1 {
    margin: 0 0 5mm;
    font-size: 25pt;
  }

  .legal-page .legal-section.content-section--tint h2,
  .legal-page .legal-content h2.legal-heading {
    margin: 9mm 0 4mm;
    padding: 3mm 0 0;
    border-top: 1px solid #bbb;
    font-size: 17pt;
  }

  .legal-page .legal-content h3.legal-subheading {
    margin: 6mm 0 2mm;
    font-size: 12.5pt;
  }

  .legal-page .legal-content p,
  .legal-page .legal-content li {
    margin: 2.2mm 0;
    font-size: 9.5pt;
    line-height: 1.45;
  }

  .legal-page .legal-content h2,
  .legal-page .legal-content h3 {
    break-after: avoid-page;
  }

  .legal-page .legal-content p,
  .legal-page .legal-content li {
    orphans: 3;
    widows: 3;
  }

  .legal-print-footer {
    display: flex;
    justify-content: space-between;
    gap: 10mm;
    margin-top: 10mm;
    padding-top: 3mm;
    color: #555;
    border-top: 1px solid #bbb;
    font-size: 8pt;
    break-inside: avoid;
  }
}
