/*
 * Strony prawne: /regulamin, /polityka-prywatnosci, /dane-firmy.
 * Układ i typografia jak w stronach prawnych siostrzanej strony EN (mbt-terms / mbt-privacy).
 * Celowo bez Google Fonts: pobieranie fontów z serwerów Google przekazywałoby adres IP
 * podmiotowi, którego nie ma w polityce prywatności. Stos systemowy daje ten sam rytm.
 */
:root {
  --ink: #0b141d;
  --ink-2: #111d27;
  --fg: #f8fafb;
  --soft: rgba(248, 250, 251, 0.78);
  --faint: rgba(248, 250, 251, 0.56);
  --ice: #c9dce7;
  --steel: #91a9ba;
  --line: rgba(201, 220, 231, 0.14);
  --ui: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
}

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

html {
  background: var(--ink);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  background: var(--ink);
  color: var(--soft);
  font-family: var(--ui);
  font-size: 16px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
  hyphens: manual;
}

a {
  color: var(--ice);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
a:hover {
  color: #fff;
}
a:focus-visible {
  outline: 2px solid var(--ice);
  outline-offset: 2px;
  border-radius: 2px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--fg);
  color: var(--ink);
  padding: 8px 12px;
  z-index: 10;
}
.skip:focus {
  left: 8px;
}

/* Górny pasek */
.bar {
  border-bottom: 1px solid var(--line);
  background: rgba(11, 20, 29, 0.92);
  position: sticky;
  top: 0;
  z-index: 5;
  -webkit-backdrop-filter: saturate(140%) blur(6px);
  backdrop-filter: saturate(140%) blur(6px);
}
.bar__in {
  max-width: 820px;
  margin: 0 auto;
  padding: 15px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  font-weight: 700;
  letter-spacing: 0.14em;
  font-size: 12px;
  text-transform: uppercase;
  color: var(--fg);
  text-decoration: none;
  white-space: nowrap;
}
.brand span {
  color: var(--steel);
  font-weight: 500;
}
.back {
  font-size: 13px;
  color: var(--soft);
  text-decoration: none;
  white-space: nowrap;
}
.back:hover {
  color: #fff;
}

/* Treść */
.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 52px 22px 40px;
}

h1 {
  font-family: var(--serif);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.14;
  color: var(--fg);
  font-size: clamp(27px, 6.2vw, 40px);
}
.meta {
  margin-top: 14px;
  color: var(--faint);
  font-size: 13px;
  letter-spacing: 0.02em;
}
.lead {
  margin-top: 26px;
  color: var(--soft);
}

h2 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--fg);
  font-size: clamp(20px, 4.5vw, 26px);
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 46px 0 4px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
h3 {
  font-family: var(--ui);
  font-weight: 600;
  color: var(--fg);
  font-size: 16px;
  letter-spacing: 0.01em;
  margin: 24px 0 6px;
}

/* Kotwice nie chowają się pod przyklejonym paskiem. */
[id] {
  scroll-margin-top: 76px;
}

p {
  margin: 14px 0;
}
ul,
ol {
  margin: 14px 0 14px 22px;
}
li {
  margin: 7px 0;
  padding-left: 2px;
}
li > ul,
li > ol {
  margin-top: 6px;
  margin-bottom: 6px;
}
strong,
b {
  color: var(--fg);
  font-weight: 600;
}
em {
  font-style: italic;
}

/* Numerowane punkty paragrafu: „1.”, „2.”… */
ol.pts {
  list-style: none;
  counter-reset: pt;
  margin-left: 0;
}
ol.pts > li {
  counter-increment: pt;
  position: relative;
  padding-left: 30px;
}
ol.pts > li::before {
  content: counter(pt) ".";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--steel);
  font-variant-numeric: tabular-nums;
}

/* Spis treści */
.toc {
  margin: 30px 0 8px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(248, 250, 251, 0.02);
}
.toc__title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
  margin: 0 0 8px;
}
.toc ol {
  margin: 0 0 0 20px;
  columns: 2 260px;
  column-gap: 32px;
}
.toc li {
  margin: 4px 0;
  break-inside: avoid;
}
.toc a {
  color: var(--soft);
  text-decoration: none;
}
.toc a:hover {
  color: #fff;
  text-decoration: underline;
}

/* Wyróżnione bloki */
.card {
  margin: 24px 0;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--ice);
  background: rgba(248, 250, 251, 0.03);
  border-radius: 4px;
}
.card > :first-child {
  margin-top: 0;
}
.card > :last-child {
  margin-bottom: 0;
}

/* Wzory formularzy */
.form {
  margin: 20px 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(248, 250, 251, 0.02);
  font-size: 15px;
  color: var(--soft);
}
.form p {
  margin: 10px 0;
}
.form .fill {
  display: block;
  border-bottom: 1px dotted var(--steel);
  min-height: 1.9em;
  margin: 2px 0 10px;
}
.form .note {
  font-size: 13px;
  color: var(--faint);
}

/* Lista definicji: dane firmy */
.dl {
  display: grid;
  grid-template-columns: minmax(140px, 200px) 1fr;
  gap: 10px 24px;
  margin: 18px 0;
}
.dl dt {
  color: var(--faint);
  font-size: 14px;
  padding-top: 1px;
}
.dl dd {
  color: var(--fg);
}
@media (max-width: 520px) {
  .dl {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .dl dd {
    margin-bottom: 12px;
  }
}

/* Tabele (odbiorcy danych, cennik) */
.table-wrap {
  overflow-x: auto;
  margin: 18px 0;
  -webkit-overflow-scrolling: touch;
}
table.t {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  min-width: 520px;
}
table.t th,
table.t td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid var(--line);
}
table.t th {
  color: var(--faint);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.02em;
}
table.t td:first-child {
  color: var(--fg);
  min-width: 160px;
}
table.t .num {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* Stopka */
footer {
  border-top: 1px solid var(--line);
  margin-top: 40px;
}
.foot {
  max-width: 760px;
  margin: 0 auto;
  padding: 28px 22px 60px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: center;
  font-size: 13px;
  color: var(--faint);
}
.foot a {
  color: var(--soft);
  text-decoration: none;
}
.foot a:hover {
  color: #fff;
}
.foot a[aria-current="page"] {
  color: var(--fg);
  text-decoration: underline;
}
.foot .sep {
  color: var(--line);
}
.foot .cpy {
  flex-basis: 100%;
  margin-top: 6px;
  color: var(--faint);
}

/* Druk: jasne tło, bez paska i stopki linków. */
@media print {
  html,
  body {
    background: #fff;
    color: #111;
  }
  .bar,
  .toc,
  .skip {
    display: none;
  }
  h1,
  h2,
  h3,
  strong,
  b,
  .dl dd,
  table.t td:first-child {
    color: #000;
  }
  a {
    color: #000;
  }
  .wrap {
    padding-top: 0;
  }
  .card,
  .form {
    border-color: #999;
    background: none;
  }
  .form {
    break-inside: avoid;
  }
}
