/* IVComp — polityka prywatności
   Wersja scalona z dopasowaniem do telefonu.
*/

/* =========================================================
   Podstawowe ustawienia
   ========================================================= */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  background: #f4f7fa;
  color: #425565;
  font: 0.9375rem/1.55 Arial, Helvetica, sans-serif;
}

/* =========================================================
   Kontener strony
   ========================================================= */

.pp-wrap {
  width: min(1180px, calc(100% - 40px));
  max-width: 1180px;
  min-width: 0;
  margin-inline: auto;
}

/* =========================================================
   Sekcja tytułowa
   ========================================================= */

.pp-hero {
  display: flex;
  align-items: center;

  height: auto;
  min-height: 22rem;
  padding: 32px 0;

  color: #fff;
  background: linear-gradient(115deg, #172938, #2c465b);
}

.pp-hero h1 {
  margin: 0 0 14px;

  font-size: clamp(
    1.625rem,
    1.3rem + 1.2vw,
    2.25rem
  );

  line-height: 1.2;
  overflow-wrap: anywhere;
}

.pp-hero p {
  margin: 0;
  color: #dbe9f3;
}

/* =========================================================
   Układ: spis treści i dokument
   ========================================================= */

.pp-layout {
  display: grid;
  grid-template-columns: 245px minmax(0, 1fr);
  gap: 16px;

  min-width: 0;
  padding: 25px 0;
}

.pp-layout > *,
.pp-content {
  min-width: 0;
}

/* =========================================================
   Wspólny wygląd kart
   ========================================================= */

.pp-toc,
.pp-card {
  min-width: 0;
  padding: 22px;

  background: #fff;
  border: 1px solid #d5e2ec;
  border-radius: 12px;

  overflow-wrap: anywhere;
}

/* =========================================================
   Spis treści
   ========================================================= */

.pp-toc {
  align-self: start;
}

.pp-toc h2 {
  margin: 0 0 12px;
  font-size: 18px;
}

.pp-toc a {
  display: block;
  padding: 7px 0;

  color: #2f6388;
  border-bottom: 1px solid #edf2f7;

  font-size: 12px;
  line-height: 1.5;
  text-decoration: none;
}

.pp-toc a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* =========================================================
   Treść dokumentu
   ========================================================= */

.pp-card {
  margin-bottom: 17px;
}

.pp-card h2 {
  margin: 0 0 16px;

  color: #2d465b;
  font-size: 23px;
  line-height: 1.3;
}

.pp-card h3 {
  margin: 22px 0 12px;

  color: #2d465b;
  font-size: 18px;
  line-height: 1.4;
}

.pp-card p {
  margin: 0 0 13px;
}

.pp-card p:last-child {
  margin-bottom: 0;
}

.pp-card ul,
.pp-card ol {
  padding-left: 24px;
}

.pp-card li {
  margin-bottom: 9px;
}

.pp-card a {
  color: #2f6388;
  overflow-wrap: anywhere;
}

.pp-card code {
  white-space: normal;
  overflow-wrap: anywhere;
}

.pp-card img,
.pp-card video,
.pp-card iframe {
  max-width: 100%;
}

/* =========================================================
   Ostrzeżenia i oznaczenia robocze
   ========================================================= */

.pp-warning,
.pp-draft {
  padding: 14px 17px;

  color: #6d572d;
  background: #fff5df;
  border: 1px solid #e4cd98;
  border-left: 4px solid #c5a14a;
  border-radius: 7px;

  font-size: 13px;
  overflow-wrap: anywhere;
}

.pp-draft {
  margin-top: 23px;
}

/* =========================================================
   Tabela — przewijanie wewnątrz karty
   ========================================================= */

.pp-table {
  display: block;

  width: 100%;
  max-width: 100%;
  min-width: 0;

  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.pp-table table {
  width: 100%;
  min-width: 430px;
  margin-bottom: 15px;

  border-collapse: collapse;
  font-size: 13px;
}

.pp-table th,
.pp-table td {
  padding: 11px;

  border: 1px solid #d5e2ec;

  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.pp-table th {
  background: #eaf2f8;
}

/* =========================================================
   Odnośnik pomijający nawigację
   ========================================================= */

.pp-skip {
  position: absolute;
  left: -9999px;
}

.pp-skip:focus {
  top: 10px;
  left: 10px;
  z-index: 2000;

  padding: 10px;

  color: #2d465b;
  background: #fff;
}

/* =========================================================
   Widoczny fokus klawiatury
   ========================================================= */

.pp-toc a:focus-visible,
.pp-card a:focus-visible,
.pp-table:focus-visible {
  outline: 2px solid #2f6388;
  outline-offset: 3px;
}

/* =========================================================
   Tablet i telefon — jedna kolumna
   ========================================================= */

@media (max-width: 850px) {
  .pp-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    padding-block: 20px;
  }

  .pp-toc {
    position: static;
    width: 100%;
  }
}

/* =========================================================
   Mniejszy ekran — kompaktowa sekcja tytułowa
   ========================================================= */

@media (max-width: 650px) {
  .pp-hero {
    height: auto;
    min-height: 0;
    padding: 24px 0;
  }

  .pp-hero h1 {
    font-size: 1.625rem;
    line-height: 1.2;
  }

  .pp-hero p {
    font-size: 1rem;
    line-height: 1.5;
  }
}

/* =========================================================
   Telefon — odstępy i czytelność
   ========================================================= */

@media (max-width: 600px) {
  .pp-wrap {
    width: calc(100% - 28px);
  }

  .pp-card,
  .pp-toc {
    padding: 18px 16px;
    border-radius: 10px;
  }

  .pp-card {
    margin-bottom: 14px;

    font-size: 14px;
    line-height: 1.7;
  }

  .pp-card h2 {
    font-size: 21px;
    line-height: 1.3;
  }

  .pp-card h3 {
    font-size: 17px;
    line-height: 1.4;
  }

  .pp-card ul,
  .pp-card ol {
    padding-left: 20px;
  }

  .pp-toc a {
    padding: 10px 0;

    font-size: 14px;
    line-height: 1.5;
  }

  .pp-table th,
  .pp-table td {
    padding: 9px;
    font-size: 12px;
  }
}

/* =========================================================
   Ograniczenie animacji według ustawień użytkownika
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* Polityka prywatności — tekst mniejszy o 25%.
   Bez zmiany rozmiaru nagłówka strony i wspólnej stopki.
*/

/* Podstawowy tekst: 15px → 11,25px */
#main .pp-card {
  font-size: 11.25px;
  line-height: 1.65;
}

/* Tytuł polityki: 75% dotychczasowego rozmiaru */
#main .pp-hero h1 {
  font-size: clamp(
    1.21875rem,
    0.975rem + 0.9vw,
    1.6875rem
  );
}

/* Opis pod tytułem */
#main .pp-hero p {
  font-size: 11.25px;
  line-height: 1.6;
}

/* Nagłówki sekcji: 23px → 17,25px */
#main .pp-card h2 {
  font-size: 17.25px;
  line-height: 1.35;
}

/* Podtytuły: 18px → 13,5px */
#main .pp-card h3 {
  font-size: 13.5px;
  line-height: 1.4;
}

/* Spis treści */
#main .pp-toc h2 {
  font-size: 13.5px;
}

#main .pp-toc a {
  font-size: 9px;
  line-height: 1.6;
}

/* Tabela: 13px → 9,75px */
#main .pp-table table,
#main .pp-table th,
#main .pp-table td {
  font-size: 9.75px;
}

/* Telefon */
@media (max-width: 650px) {
  #main .pp-hero h1 {
    font-size: 1.21875rem;
  }

  #main .pp-hero p {
    font-size: 12px;
  }
}

@media (max-width: 600px) {
  /* Tekst: 14px → 10,5px */
  #main .pp-card {
    font-size: 10.5px;
  }

  /* Nagłówki: 21px → 15,75px */
  #main .pp-card h2 {
    font-size: 15.75px;
  }

  /* Podtytuły: 17px → 12,75px */
  #main .pp-card h3 {
    font-size: 12.75px;
  }

  /* Linki spisu treści: 14px → 10,5px */
  #main .pp-toc a {
    font-size: 10.5px;
  }

  /* Tabela: 12px → 9px */
  #main .pp-table table,
  #main .pp-table th,
  #main .pp-table td {
    font-size: 9px;
  }
}