/* Shared styles for the Type landing site (index.html, en/, legal pages). */

/* Inter z własnego hosta (P8): bez Google Fonts, więc strona nie wysyła
   adresu IP odwiedzającego do Google, a CSP w site/_headers nie wpuszcza
   żadnego obcego hosta czcionek. Plik to Inter 4.001 (InterVariable,
   osie wght 100–900 i opsz), okrojony do łaciny z rozszerzeniami, interpunkcji
   i walut (pyftsubset). Licencja SIL OFL 1.1 — jej tekst i prawa autorskie
   są w tablicy `name` samego pliku. Ścieżka jest względna wobec style.css,
   więc działa z każdej podstrony. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/InterVariable.woff2") format("woff2");
}
:root {
  --bg: #f7f3f3;
  --card: #eae7e6;
  --card-2: #f2eeed;
  --ink: #313133;
  --muted: #605e5e;
  --line: #dfdbd7;
  /* Kolory marki wzięte z aplikacji (`AppColors.light`), nie obok niej.
     Strona miała niebieski #0099ff i fiolet #a78bd9, a aplikacja jest
     terakotowa — ktoś klikał „Otwórz w przeglądarce" i trafiał z
     niebiesko-fioletowego gradientu w ciepły pomarańcz. Dla kogoś, kto
     widzi Type pierwszy raz, to nie jest ta sama firma. */
  --accent: #cb5338;      /* AppColors.light.accent */
  --accent-2: #f18061;    /* AppColors.light.warning — jaśniejsza terakota */
  --accent-deep: #a8412b; /* AppColors.light.accentInk */
  --coral: #f18061;
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }

/* ---------- nav ---------- */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 0;
}
.brand {
  font-weight: 800; font-size: 30px; letter-spacing: -0.03em; color: #cfcac7;
  text-shadow: 0 1px 0 #fff, 0 -1px 0 #b9b3b0;
}
.nav-links { display: flex; gap: 10px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 18px; border-radius: 999px;
  background: var(--card); color: var(--ink);
  font-weight: 500; font-size: 15px; white-space: nowrap;
  transition: background .15s ease, transform .05s ease;
}
.pill:hover { background: #e2dedc; }
.pill:active { transform: translateY(1px); }
.pill.dark { background: var(--ink); color: #fff; }
.pill.dark:hover { background: #1f1f21; }
.badge {
  font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 8px; border-radius: 6px; background: var(--coral); color: #fff;
  vertical-align: middle; margin-left: 8px;
}

/* ---------- hero ---------- */
.hero { padding: 36px 0 0; }
.hero h1 {
  margin: 0; font-size: clamp(30px, 4.2vw, 46px); line-height: 1.12;
  font-weight: 700; letter-spacing: -0.02em;
  background: linear-gradient(
    90deg,
    var(--accent),
    var(--accent-deep),
    var(--accent-2),
    var(--accent)
  );
  background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: hue 12s linear infinite;
}
@keyframes hue { from { background-position: 0% 0; } to { background-position: 300% 0; } }
/* Nagłówek przelewa się kolorem w kółko, bez końca i bez powodu, jeśli
   ktoś prosił system o mniej ruchu. Gradient zostaje, animacja nie. */
@media (prefers-reduced-motion: reduce) {
  .hero h1 { animation: none; }
}
.hero p {
  margin: 18px 0 0; max-width: 560px; color: var(--muted);
  font-size: clamp(16px, 1.6vw, 18px); line-height: 1.5;
}
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.hero-art { margin-top: 24px; }
.hero-art img { width: 100%; height: auto; }

/* ---------- sections ---------- */
section { padding: 56px 0; }
.section-title {
  margin: 0 0 8px; font-size: clamp(26px, 3.6vw, 36px); font-weight: 700; letter-spacing: -0.02em;
}
.section-sub { margin: 0 0 32px; color: var(--muted); max-width: 640px; }

.panel {
  background: var(--card); border-radius: var(--radius-xl); padding: 24px;
}
.feature {
  display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center;
  background: var(--bg); border-radius: var(--radius-lg); padding: 32px;
}
.feature + .feature { margin-top: 16px; }
.feature h3 {
  display: flex; align-items: center; gap: 12px; margin: 0 0 14px;
  font-size: 24px; font-weight: 600; letter-spacing: -0.01em;
}
.feature h3 .glyph { font-size: 26px; line-height: 1; }
.feature p { margin: 0; color: var(--muted); max-width: 420px; }
.feature .art img { margin: 0 auto; max-height: 300px; width: auto; }

/* ---------- download ---------- */
.dl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.dl-group h5 {
  margin: 0 0 10px; font-size: 13px; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted);
}
.dl-list { display: flex; flex-direction: column; gap: 10px; }
.dl {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px; border-radius: var(--radius-md);
  background: var(--bg); border: 1px solid var(--line);
  transition: background .15s ease;
}
.dl:hover { background: #fff; }
.dl .name { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.dl .name svg { width: 20px; height: 20px; flex: none; }
.dl .meta { color: var(--muted); font-size: 13px; }
.dl.soon { opacity: .55; cursor: default; }
.dl.soon:hover { background: var(--bg); }
.dl-note { margin: 22px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.web-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 20px; padding: 20px 22px; border-radius: var(--radius-lg);
  background: var(--ink); color: #fff;
}
.web-cta strong { font-size: 18px; font-weight: 600; }
.web-cta span { color: #bdb7b4; font-size: 14px; }
.web-cta .pill { background: #fff; color: var(--ink); }
.web-cta .pill:hover { background: #f1eeec; }

footer {
  padding: 32px 0 44px; color: var(--muted); font-size: 13px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
footer a:hover { color: var(--ink); }

@media (max-width: 820px) {
  .feature { grid-template-columns: 1fr; padding: 24px; }
  .feature .art { order: -1; }
  .dl-grid { grid-template-columns: 1fr; }
  .nav-links .pill.hide-sm { display: none; }
}

/* ---------- nav (extra pills) ---------- */
.nav-links { flex-wrap: wrap; justify-content: flex-end; }

/* ---------- hero + opt-in ---------- */
.hero-grid {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 28px; align-items: start;
}
.hero-copy { padding-top: 6px; }

.optin {
  background: var(--card); border-radius: var(--radius-xl); padding: 26px 24px;
}
.optin h2 { margin: 0 0 8px; font-size: 21px; font-weight: 600; letter-spacing: -0.01em; }
.optin .optin-sub { margin: 0 0 18px; max-width: none; color: var(--muted); font-size: 15px; }
.optin-form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-label { font-size: 13px; font-weight: 600; color: var(--muted); }
.optin-form input[type="email"] {
  font: inherit; font-size: 16px; padding: 13px 14px;
  border-radius: var(--radius-md); border: 1px solid var(--line);
  background: var(--bg); color: var(--ink);
}
.optin-form input[type="email"]:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 1px;
}
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); }
.consent input { margin-top: 3px; flex: none; width: 16px; height: 16px; }
.consent a { text-decoration: underline; }
.optin-form .submit { justify-content: center; border: 0; font: inherit; font-weight: 600; cursor: pointer; }
.optin-form .submit[disabled] { opacity: .6; cursor: default; }
.optin .form-msg { margin: 0; max-width: none; min-height: 18px; font-size: 13px; color: var(--muted); }
.optin .form-msg.error { color: #b0392a; }
/* Honeypot: off-screen for humans, still filled in by naive bots. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- why not chat ---------- */
.why { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.why-item {
  background: var(--card-2); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 24px;
}
.why-item h3 { margin: 0 0 8px; font-size: 18px; font-weight: 600; }
.why-item p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- no subscription traps ---------- */
.traps .section-title, .traps .section-sub { padding: 0 8px; }
.traps-list {
  list-style: none; counter-reset: trap; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.traps-list li {
  counter-increment: trap;
  background: var(--bg); border-radius: var(--radius-lg); padding: 24px;
  color: var(--muted); font-size: 15px;
}
.traps-list li::before {
  content: counter(trap);
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; margin-bottom: 14px; border-radius: 999px;
  background: var(--ink); color: #fff; font-size: 14px; font-weight: 600;
}
.traps-list strong { display: block; margin-bottom: 6px; color: var(--ink); font-weight: 600; }
.traps-extra { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.traps-extra h3 { margin: 0 0 6px; font-size: 16px; font-weight: 600; }
.traps-extra p { margin: 0; color: var(--muted); font-size: 14px; }
.traps-extra a { text-decoration: underline; }

/* ---------- pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: start; }
.plan {
  position: relative;
  background: var(--card-2); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px 24px; display: flex; flex-direction: column; gap: 10px;
}
.plan.featured { background: var(--card); border-color: var(--ink); }
.plan-flag {
  align-self: flex-start; font-size: 11px; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; padding: 4px 8px; border-radius: 6px;
  background: var(--ink); color: #fff;
}
.plan h3 { margin: 0; font-size: 18px; font-weight: 600; }
.plan .price { margin: 0; font-size: 15px; color: var(--muted); }
.plan .price strong { font-size: 32px; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; }
.plan-sub { margin: 0; color: var(--muted); font-size: 14px; }
.plan ul { margin: 8px 0 4px; padding-left: 20px; color: var(--muted); font-size: 15px; }
.plan li + li { margin-top: 6px; }
.plan .pill { align-self: flex-start; margin-top: auto; }

/* Nagłówek i podtytuł wewnątrz panelu — ciaśniej niż sekcja na stronie. */
.section-title.tight { margin-bottom: 4px; }
.section-sub.tight { margin-bottom: 24px; }

/* Przełącznik języka (E11-02). */
.pill.lang { font-weight: 600; letter-spacing: .04em; }

/* Elementy chowane z JS (licznik Founding Pair) muszą znikać naprawdę. */
[hidden] { display: none !important; }

/* Licznik Founding Pair (E11-04). Renderowany dopiero wtedy, gdy /api/founding
   poda prawdziwą liczbę — bez danych element zostaje ukryty. */
.founding-count {
  margin: 0 0 8px; font-size: 15px; font-weight: 600; color: #fff;
}

.founding {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  margin-top: 16px; padding: 24px; border-radius: var(--radius-lg);
  background: var(--ink); color: #fff;
}
.founding h3 { margin: 0 0 6px; font-size: 19px; font-weight: 600; }
.founding p { margin: 0; max-width: 640px; color: #bdb7b4; font-size: 14px; }
.founding .pill.dark { background: #fff; color: var(--ink); }
.founding .pill.dark:hover { background: #f1eeec; }

@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 22px; }
  .plans { grid-template-columns: 1fr; }
  .traps-list { grid-template-columns: 1fr; }
  .why { grid-template-columns: 1fr; }
  .traps-extra { grid-template-columns: 1fr; }
}

/* ---------- what's new ---------- */
.page-head { padding: 36px 0 8px; }
.page-head h1 {
  margin: 0; font-size: clamp(34px, 5vw, 52px); line-height: 1.08;
  font-weight: 700; letter-spacing: -0.03em;
}
.page-head p { margin: 14px 0 0; color: var(--muted); max-width: 600px; font-size: 17px; }
.log { display: flex; flex-direction: column; gap: 16px; }
.log-entry {
  display: grid; grid-template-columns: 150px 1fr; gap: 20px;
  background: var(--card-2); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 24px;
}
.log-entry time {
  font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); padding-top: 3px;
}
.log-entry h3 { margin: 0 0 10px; font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.log-entry ul { margin: 0; padding-left: 20px; color: var(--muted); }
.log-entry li + li { margin-top: 8px; }
.log-entry li strong { color: var(--ink); font-weight: 600; }
.tag {
  display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 6px; margin-right: 8px; vertical-align: middle;
  background: var(--card); color: var(--ink);
}
.tag.new { background: var(--accent); color: #fff; }
.tag.fix { background: var(--accent-2); color: #fff; }

@media (max-width: 820px) {
  .log-entry { grid-template-columns: 1fr; gap: 8px; padding: 20px; }
}

/* ---------- landing: pierwszy ekran ---------- */
/* Gradient zostaje — ten sam, co na `en/`.
   Był tu kiedyś wyłączony („nagłówek jest czytany, nie oglądany"), a
   skutek był taki, że dwie strony tego samego produktu wyglądały jak dwa
   produkty: angielska z animowanym nagłówkiem, polska z czarnym. Wybór
   właściciela (2026-09-17) to gradient na obu.
   Zostaje tylko rozmiar: polski nagłówek jest dłuższy niż angielski i
   przy 46 px łamał się na cztery wiersze na laptopie. */
.hero-remont .hero-copy h1 {
  font-size: clamp(30px, 4vw, 44px); line-height: 1.1;
}
.hero-remont .eyebrow { margin-bottom: 12px; }
.hero-remont .lede { margin-top: 16px; }
.hero-remont .hero-cta { margin-top: 24px; }
.hero-remont .hero-cta .pill { font-weight: 600; }
/* Liczba w etykiecie to <span> z generatora; bez tego .pill (inline-flex, gap)
   rozsuwa „47” od reszty tekstu. */
.hero-remont .hero-cta .pill span { display: contents; }
.hero-remont .cta-sub {
  margin: 10px 0 0; font-size: 14px; color: var(--muted); max-width: none;
}
.hero-remont .trust {
  margin: 14px 0 0; font-size: 13px; color: var(--muted); max-width: none;
}
.hero-remont .hero-art picture { display: block; }
.hero-remont .hero-art img { width: 100%; height: auto; border-radius: var(--radius-lg); }

/* „Jak to działa”: trzy kroki, numerowane tak jak .traps-list. */
.steps {
  list-style: none; counter-reset: step; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.steps li {
  counter-increment: step;
  background: var(--card-2); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 24px; color: var(--muted); font-size: 15px;
}
.steps li::before {
  content: counter(step);
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; margin-bottom: 14px; border-radius: 999px;
  background: var(--ink); color: #fff; font-size: 14px; font-weight: 600;
}
.steps strong { display: block; margin-bottom: 6px; color: var(--ink); font-weight: 600; font-size: 17px; }

/* /dziekujemy/: dwa przyciski w ciemnym pasku — główny biały, drugi obrysowany. */
.thanks-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.web-cta .pill.ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px #6f6b69; }
.web-cta .pill.ghost:hover { background: #2a2a2c; }
.thanks-cta { align-items: flex-start; }

@media (max-width: 920px) {
  .steps { grid-template-columns: 1fr; }
}

/* Telefon: nagłówek, podtytuł i formularz mają zmieścić się jak najwyżej. */
@media (max-width: 560px) {
  .nav { padding: 16px 0; }
  .hero { padding: 12px 0 0; }
  .hero h1 { font-size: 27px; line-height: 1.15; }
  .hero p { margin-top: 12px; font-size: 15px; }
  .hero-cta { margin-top: 16px; }
  .optin { padding: 20px 18px; }
  .optin h2 { font-size: 19px; }
  .optin .optin-sub { margin-bottom: 14px; font-size: 14px; }
  section { padding: 40px 0; }

  /* Pierwszy ekran na telefonie 390 px (założenie: viewport ≥ 640 px wysokości,
     Inter). Budżet od góry: nav 74 + hero 12 + eyebrow 30 + h1 4×31 + lede
     4×22 + 12 + CTA 2×44 + 10 + 14 + sub 2×20 + 10 ≈ 470 px — główny CTA i
     link do PDF-a mieszczą się nad zgięciem z zapasem; formularz opt-in
     jest zaraz pod nimi (link „Pobierz checklistę” przewija do #optin). */
  .hero-remont .hero-copy h1 { font-size: 27px; line-height: 1.15; }
  .hero-remont .eyebrow { margin-bottom: 8px; font-size: 11px; }
  .hero-remont .lede { margin-top: 10px; }
  .hero-remont .hero-cta { margin-top: 14px; gap: 8px; }
  .hero-remont .hero-cta .pill { width: 100%; justify-content: center; padding: 13px 16px; white-space: normal; text-align: center; }
  .hero-remont .cta-sub { margin-top: 8px; font-size: 13px; }
  .hero-remont .trust { margin-top: 8px; font-size: 12px; }
  .hero-grid { gap: 18px; }
  .thanks-actions .pill { width: 100%; justify-content: center; white-space: normal; text-align: center; }
}

/* ---------- strony HVCO (E4-15, generowane przez tool/build_site.mjs) ---------- */
.hvco-hero { padding: 24px 0 0; }
.eyebrow {
  margin: 0 0 10px; font-size: 12px; font-weight: 600; letter-spacing: .09em;
  text-transform: uppercase; color: var(--muted);
}
/* Nagłówek HVCO jest czytany, nie oglądany — bez gradientu z landingu.
   Selektor musi być mocniejszy niż `.hero h1` (i niż jego wariant w @media). */
.hero h1.hvco-h1 {
  margin: 0; font-size: clamp(28px, 3.8vw, 42px); line-height: 1.14;
  font-weight: 700; letter-spacing: -0.02em;
  background: none; color: var(--ink); animation: none;
}
.hvco-hero .hero-copy p {
  margin: 16px 0 0; max-width: 620px; color: var(--muted);
  font-size: clamp(15px, 1.5vw, 17px);
}

.hvco-panel { padding: 28px 32px; }
.cl-group {
  margin: 28px 0 12px; font-size: 13px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted);
}
.cl-group:first-child { margin-top: 4px; }
.cl { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.cl li {
  display: flex; gap: 14px; align-items: baseline;
  padding: 12px 0; border-top: 1px solid var(--line);
}
.cl li:first-child { border-top: 0; }
.cl-n {
  flex: none; width: 28px; font-size: 13px; font-weight: 600;
  color: var(--muted); font-variant-numeric: tabular-nums;
}
.cl-t { font-size: 16px; }
.cl-hint { display: block; margin-top: 3px; color: var(--muted); font-size: 14px; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mini-note {
  background: var(--card-2); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 24px;
}
.mini-note h3 { margin: 0 0 4px; font-size: 18px; font-weight: 600; }
.mini-sub { margin: 0 0 14px; color: var(--muted); font-size: 14px; }
.fields { list-style: none; margin: 0; padding: 0; font-size: 15px; color: var(--muted); }
.fields li { padding: 3px 0; }
.fields li strong { color: var(--ink); font-weight: 600; }
.fields .fl-head { margin-top: 12px; color: var(--ink); font-weight: 600; }
.fields li:first-child.fl-head { margin-top: 0; }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.mini-actions {
  display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0 0;
}
.mini-actions .pill { font-size: 14px; padding: 8px 14px; }
.mini-note.link-card { display: block; transition: background .15s ease, border-color .15s ease; }
.mini-note.link-card:hover { background: #fff; border-color: var(--ink); }
.mini-note.link-card h3 { text-decoration: underline; text-underline-offset: 3px; }

.hvco-note { margin: 18px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; }

.faq { display: flex; flex-direction: column; gap: 10px; }
.faq details {
  background: var(--card-2); border: 1px solid var(--line);
  border-radius: var(--radius-md); padding: 16px 20px;
}
.faq summary { font-weight: 600; cursor: pointer; }
.faq summary::marker { color: var(--muted); }
.faq p { margin: 10px 0 0; color: var(--muted); font-size: 15px; }

.disclaimer {
  margin-top: 24px; padding: 22px 24px;
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--card-2);
}
.disclaimer h3 { margin: 0 0 8px; font-size: 16px; font-weight: 600; }
.disclaimer p { margin: 0 0 8px; color: var(--muted); font-size: 14px; }
.disclaimer p:last-child { margin-bottom: 0; }

@media (max-width: 920px) {
  .two-col { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .hero h1.hvco-h1 { font-size: 26px; line-height: 1.18; }
  .hvco-panel { padding: 20px 18px; }
  .cl li { gap: 10px; }
  .cl-n { width: 22px; }
  .cl-t { font-size: 15px; }
}

/* Wydruk strony HVCO: sama treść, bez nawigacji i formularza. */
@media print {
  .nav, .optin, .web-cta, footer, .faq, .hvco-note { display: none; }
  body { background: #fff; }
  .panel, .mini-note, .disclaimer { background: #fff; border: 0; padding: 0; }
  .cl li { break-inside: avoid; }
}

/* ---------- E9-01: dokumenty prawne (polityka prywatności) ---------- */
/* Długi tekst do czytania, nie do skanowania: węższa kolumna, spokojne
   nagłówki, tabele przewijane w poziomie na wąskim ekranie. */
.legal { max-width: 760px; font-size: 16px; line-height: 1.65; }
.legal h2 {
  margin: 40px 0 10px; font-size: 24px; font-weight: 700; letter-spacing: -0.01em;
  scroll-margin-top: 20px;
}
.legal h3 { margin: 26px 0 8px; font-size: 18px; font-weight: 600; scroll-margin-top: 20px; }
.legal p { margin: 0 0 14px; color: var(--muted); }
.legal ul { margin: 0 0 14px; padding-left: 22px; color: var(--muted); }
.legal li { margin: 0 0 8px; }
.legal li > ul { margin: 8px 0 0; }
.legal strong { color: var(--ink); font-weight: 600; }
.legal code {
  padding: 1px 5px; border-radius: 5px; background: var(--card);
  font-size: 14px; word-break: break-word;
}
.legal a { text-decoration: underline; text-underline-offset: 3px; }
.legal hr { margin: 28px 0; border: 0; border-top: 1px solid var(--line); }

/* Baner „dokument niezweryfikowany prawnie” i lista placeholderów —
   mają być widoczne, a nie schowane w przypisie. */
.legal-note {
  margin: 0 0 18px; padding: 18px 20px;
  border: 1px solid var(--line); border-left: 4px solid var(--coral);
  border-radius: var(--radius-md); background: var(--card-2);
}
.legal-note p { margin: 0 0 10px; font-size: 15px; }
.legal-note p:last-child { margin-bottom: 0; }

.table-wrap { overflow-x: auto; margin: 0 0 18px; }
.legal table { width: 100%; border-collapse: collapse; font-size: 15px; }
.legal th, .legal td {
  padding: 10px 12px; border-bottom: 1px solid var(--line);
  text-align: left; vertical-align: top; color: var(--muted);
}
.legal th { color: var(--ink); font-weight: 600; white-space: nowrap; }
.legal tbody tr:last-child td { border-bottom: 0; }

@media (max-width: 560px) {
  .legal { font-size: 15px; }
  .legal h2 { font-size: 21px; }
  .legal table { font-size: 14px; }
  .legal th { white-space: normal; }
}
