/* Wspólne style stron prawnych eSIM TIR (regulation.html / privacy.html).
   Samodzielny arkusz — bez Tailwinda z CDN, żeby generowanie PDF-a
   (Chrome --print-to-pdf) dawało dokładnie ten sam wygląd co przeglądarka. */

:root {
  --brand-50:  #e6faf8;
  --brand-100: #c2f2ee;
  --brand-200: #8fe7df;
  --brand-500: #07b6a8;
  --brand-600: #059488;
  --brand-700: #067568;
  --brand-950: #022e2a;
  --ink:       #0b1f1d;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--brand-200); color: var(--brand-700); }

.font-display {
  font-family: "Bricolage Grotesque", system-ui, -apple-system, sans-serif;
  letter-spacing: -0.02em;
}

a { color: var(--brand-700); }
a:hover { color: var(--brand-600); }

/* ============ NAV ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, .85);
  border-bottom: 1px solid var(--slate-100);
}
.nav {
  margin: 0 auto;
  max-width: 80rem;
  padding: 0 1.25rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: .625rem;
  text-decoration: none;
  color: inherit;
}
.nav-brand img {
  height: 2.25rem;
  width: 2.25rem;
  border-radius: .75rem;
  object-fit: cover;
  box-shadow: 0 0 0 1px var(--brand-100);
}
.nav-brand span { font-size: 1.125rem; font-weight: 700; }
.nav-links { display: flex; align-items: center; gap: 1.25rem; font-size: .875rem; font-weight: 500; }
.nav-links a { color: var(--slate-600); text-decoration: none; transition: color .15s; }
.nav-links a:hover { color: var(--brand-600); }
.nav-links a.is-active { color: var(--brand-700); font-weight: 600; }

/* ============ HERO ============ */
.hero { margin: 0 auto; max-width: 56rem; padding: 2rem 1.25rem 0; }
.hero-card {
  position: relative;
  overflow: hidden;
  border-radius: 2.5rem;
  padding: 3rem 1.5rem;
  color: #fff;
  background:
    radial-gradient(60rem 40rem at 80% -10%, rgba(255, 255, 255, .18), transparent 60%),
    linear-gradient(135deg, var(--brand-700), var(--brand-950));
  box-shadow: 0 10px 40px -12px rgba(7, 84, 76, .35);
}
.hero-card h1 { margin: .75rem 0 0; font-size: 2rem; font-weight: 800; line-height: 1.15; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .15);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2);
  padding: .375rem 1rem;
  font-size: .8125rem;
  font-weight: 600;
}
.hero-meta { margin: 1rem 0 0; color: var(--brand-50); font-size: .9375rem; }
.hero-actions { margin-top: 1.75rem; display: flex; flex-wrap: wrap; gap: .75rem; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  border-radius: 999px;
  padding: .7rem 1.25rem;
  font-size: .875rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s, color .15s;
}
.btn-solid { background: #fff; color: var(--brand-700); }
.btn-solid:hover { background: var(--brand-50); color: var(--brand-700); }
.btn-ghost { background: rgba(255, 255, 255, .12); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.btn-ghost:hover { background: rgba(255, 255, 255, .2); color: #fff; }
.btn svg { height: 1rem; width: 1rem; }

/* ============ TREŚĆ ============ */
.doc { margin: 0 auto; max-width: 56rem; padding: 2.5rem 1.25rem 4rem; }

.doc-intro p { color: var(--slate-600); }

.doc h2 {
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  letter-spacing: -0.02em;
  font-size: 1.375rem;
  font-weight: 700;
  margin: 2.75rem 0 .75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--slate-100);
}
.doc h2:first-of-type { border-top: 0; padding-top: 0; }
.doc h3 {
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-size: 1.0625rem;
  font-weight: 700;
  margin: 1.75rem 0 .5rem;
}
.doc p { margin: 0 0 1rem; }
.doc ol, .doc ul { margin: 0 0 1rem; padding-left: 1.5rem; }
.doc li { margin-bottom: .5rem; }
.doc ol > li::marker { font-weight: 600; color: var(--brand-600); }
.doc ul { list-style: none; padding-left: 1.25rem; }
.doc ul > li { position: relative; padding-left: .75rem; }
.doc ul > li::before {
  content: "";
  position: absolute;
  left: -.25rem;
  top: .7em;
  height: .3125rem;
  width: .3125rem;
  border-radius: 999px;
  background: var(--brand-500);
}
.doc ol ul, .doc ul ul, .doc ol ol { margin-top: .5rem; margin-bottom: 0; }

/* lista definicji */
.defs { list-style: none; padding-left: 0; }
.defs > li { padding-left: 0; }
.defs > li::before { display: none; }
.defs dfn { font-style: normal; font-weight: 600; color: var(--ink); }

/* karta z danymi kontaktowymi / wyróżnieniem */
.callout {
  border-radius: 1.25rem;
  background: var(--brand-50);
  box-shadow: inset 0 0 0 1px var(--brand-100);
  padding: 1.25rem 1.5rem;
  margin: 0 0 1.25rem;
}
.callout p:last-child { margin-bottom: 0; }

/* spis treści */
.toc {
  border-radius: 1.25rem;
  box-shadow: inset 0 0 0 1px var(--slate-200);
  padding: 1.25rem 1.5rem;
  margin: 0 0 2.5rem;
}
.toc h2 {
  border: 0;
  padding: 0;
  margin: 0 0 .625rem;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--slate-400);
}
.toc ol { columns: 2; column-gap: 2rem; margin: 0; padding-left: 1.25rem; font-size: .9375rem; }
.toc li { margin-bottom: .375rem; break-inside: avoid; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }

/* załącznik */
.appendix {
  border-radius: 1.25rem;
  box-shadow: inset 0 0 0 1px var(--slate-200);
  padding: 1.5rem;
  margin-top: 1rem;
}
.appendix .form-line { color: var(--slate-500); }

/* ============ STOPKA ============ */
.site-footer { border-top: 1px solid var(--slate-100); }
.footer-inner {
  margin: 0 auto;
  max-width: 80rem;
  padding: 2rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: .875rem;
  color: var(--slate-500);
}
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer-inner a { color: var(--slate-600); text-decoration: none; }
.footer-inner a:hover { color: var(--brand-600); }

@media (min-width: 640px) {
  .hero-card { padding: 3.5rem 2.5rem; }
  .hero-card h1 { font-size: 2.5rem; }
}

@media (max-width: 640px) {
  .toc ol { columns: 1; }
  .nav-links { gap: .875rem; font-size: .8125rem; }
}

/* ============ DRUK / PDF ============ */
@media print {
  @page { size: A4; margin: 18mm 16mm; }

  .site-header, .site-footer, .hero-actions, .no-print { display: none !important; }

  body { font-size: 10.5pt; line-height: 1.55; color: #000; }

  .hero { padding: 0; max-width: none; }
  .hero-card {
    border-radius: 0;
    padding: 0 0 1rem;
    color: #000;
    background: none;
    box-shadow: none;
    border-bottom: 2pt solid var(--brand-500);
  }
  .hero-card h1 { font-size: 20pt; color: var(--brand-700); }
  .hero-badge { background: none; box-shadow: none; padding: 0; color: var(--brand-600); }
  .hero-meta { color: #444; }

  .doc { padding: 1.25rem 0 0; max-width: none; }
  .doc h2 { font-size: 13pt; page-break-after: avoid; break-after: avoid; }
  .doc h3 { font-size: 11pt; page-break-after: avoid; break-after: avoid; }
  .doc li, .doc p { page-break-inside: avoid; break-inside: avoid; }

  .callout { background: none; box-shadow: none; border-left: 2pt solid var(--brand-500); border-radius: 0; padding: .25rem 0 .25rem 1rem; }
  .toc { box-shadow: none; border: 0; padding: 0; }
  .toc a { color: #000; }
  .appendix { box-shadow: none; border: 1pt solid #999; page-break-inside: avoid; }

  a { color: #000; text-decoration: none; }
}
