/* ══════════════════════════════════════════════════════════════════════════
   poranakorki.pl — shared stylesheet for the legal / compliance pages.

   index.html does NOT use this file: the landing page is self-contained and
   carries its own inline <style>. This stylesheet serves only:
     privacy.html, regulamin.html, cookies.html, podwykonawcy.html,
     bezpieczenstwo-dzieci.html  — generated by scripts/lib/generate-legal-pages.js
     usun-konto.html             — hand-maintained

   Tokens below are kept in sync with the landing page by hand.
   ══════════════════════════════════════════════════════════════════════════ */

/* ── FONTS (self-hosted — no third-party requests) ───────────────────────── */
@font-face {
  font-family: 'Geist'; font-style: normal; font-weight: 300 900; font-display: swap;
  src: url('/fonts/geist-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Geist'; font-style: normal; font-weight: 300 900; font-display: swap;
  src: url('/fonts/geist-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Geist Mono'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('/fonts/geistmono-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Geist Mono'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('/fonts/geistmono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ── TOKENS (mirror of the landing page's :root) ─────────────────────────── */
:root {
  --bg: #F8FAFC;
  --ink: #0F172A;
  --muted: #475569;
  --muted-2: #64748B;
  --faint: #94A3B8;
  --line: #E2E8F0;
  --line-soft: #EEF2F7;
  --blue: #3B82F6;
  --blue-700: #1D4ED8;
  --blue-600: #2563EB;
  --blue-50: #EFF6FF;
  --blue-100: #DBEAFE;
  --white: #FFFFFF;
  --nav-h: 72px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Geist', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue-700); text-decoration: none; }
a:hover { color: var(--blue); text-decoration: underline; }
::selection { background: var(--blue-100); color: var(--ink); }
:focus-visible { outline: 2px solid var(--blue-600); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: 10px;
  font-size: 14px; font-weight: 600; transition: top .2s;
}
.skip:focus { top: 12px; color: var(--white); text-decoration: none; }

/* ── HEADER ──────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(248, 250, 252, .84);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(15, 23, 42, .06);
}
.site-header .nav {
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 11px; color: var(--ink); }
.brand:hover { color: var(--ink); text-decoration: none; }
/* the wordmark must be one flex item — otherwise `gap` opens up inside "Pora|Na|Korki" */
.brand-name { font-size: 17px; font-weight: 700; letter-spacing: -.02em; }
.brand-name em { font-style: normal; color: var(--blue); }
.brand-mark {
  flex: none;
  width: 34px; height: 34px; border-radius: 10px; background: var(--blue); color: var(--white);
  display: flex; align-items: center; justify-content: center; font-weight: 750; font-size: 18px;
  box-shadow: 0 6px 16px rgba(59, 130, 246, .30);
}

/* ── BUTTONS ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px; padding: 10px 18px;
  font-size: 14.5px; font-weight: 600; letter-spacing: -.01em;
  white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s, background .2s, color .2s, border-color .2s;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }

.btn-ghost { border: 1px solid var(--line); background: var(--white); color: var(--muted); }
.btn-ghost:hover { border-color: #CBD5E1; color: var(--ink); }

.btn-primary {
  background: var(--ink); color: var(--white);
  padding: 12px 22px;
  box-shadow: 0 12px 26px rgba(15, 23, 42, .20);
}
.btn-primary:hover {
  color: var(--white); transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(15, 23, 42, .26);
}

/* ── LEGAL PAGE BODY ─────────────────────────────────────────────────────── */
.legal-main { padding: 64px 0 96px; }
.legal-main .wrap { max-width: 880px; }

.legal-main h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 52px); line-height: 1.06;
  letter-spacing: -.035em; font-weight: 750;
}
.legal-updated {
  margin: 14px 0 0;
  font-family: 'Geist Mono', monospace; font-size: 12.5px;
  letter-spacing: .04em; color: var(--faint);
}

.legal-body { margin-top: 48px; color: var(--muted); }
.legal-body > *:first-child { margin-top: 0; }

.legal-body h2 {
  margin: 56px 0 0;
  font-size: clamp(22px, 2.4vw, 28px); line-height: 1.2;
  letter-spacing: -.025em; font-weight: 700; color: var(--ink);
}
.legal-body h3 {
  margin: 36px 0 0;
  font-size: 18.5px; line-height: 1.3;
  letter-spacing: -.015em; font-weight: 650; color: var(--ink);
}
.legal-body p { margin: 16px 0 0; text-wrap: pretty; }
.legal-body ul, .legal-body ol { margin: 16px 0 0; padding-left: 24px; }
.legal-body li { margin-top: 8px; }
.legal-body li::marker { color: var(--blue); }
.legal-body strong { color: var(--ink); font-weight: 650; }
.legal-body em { font-style: italic; }
.legal-body small { font-size: 13.5px; color: var(--muted-2); }

.legal-body hr { border: 0; border-top: 1px solid var(--line); margin: 48px 0 0; }

.legal-body code {
  font-family: 'Geist Mono', monospace; font-size: .89em;
  background: var(--blue-50); color: var(--blue-700);
  padding: 2px 6px; border-radius: 6px;
}

.legal-body blockquote {
  margin: 24px 0 0; padding: 4px 0 4px 20px;
  border-left: 3px solid var(--blue-100); color: var(--muted-2);
}

/* sub-processor tables are wide: min-width forces a scroll instead of a squish */
.table-scroll {
  margin: 24px 0 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
}
.legal-body table {
  border-collapse: collapse;
  width: 100%; min-width: 560px;
  font-size: 14.5px;
}
.legal-body th, .legal-body td {
  text-align: left; padding: 13px 16px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}
.legal-body th {
  background: #FBFCFE;
  font-family: 'Geist Mono', monospace; font-size: 11.5px;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--faint); font-weight: 500; white-space: nowrap;
}
.legal-body tbody tr:last-child td { border-bottom: 0; }

/* ── CALLOUT CARD (usun-konto.html) ──────────────────────────────────────── */
.legal-card {
  margin: 28px 0 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 30px 32px;
  box-shadow: 0 20px 44px rgba(59, 130, 246, .07);
}
.legal-card > *:first-child { margin-top: 0; }
.legal-card h2 { margin-top: 0; font-size: 21px; }

/* ── FOOTER ──────────────────────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 40px; }

.footer-docs { display: flex; flex-wrap: wrap; gap: 10px 26px; padding-bottom: 28px; }
.footer-docs a { font-size: 14px; color: var(--muted); }
.footer-docs a:hover { color: var(--blue-700); }
.footer-docs a.danger { color: #B91C1C; }
.footer-docs a.danger:hover { color: #991B1B; }

.footer-meta {
  border-top: 1px solid var(--line-soft);
  padding-top: 24px;
  display: flex; flex-wrap: wrap; gap: 12px;
  justify-content: space-between;
}
.footer-meta span, .footer-meta a {
  font-family: 'Geist Mono', monospace; font-size: 11.5px; color: var(--faint);
}
.footer-meta a:hover { color: var(--muted); }

/* ── RESPONSIVE ──────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  .legal-main { padding: 40px 0 72px; }
  .legal-body { margin-top: 36px; }
  .legal-body h2 { margin-top: 44px; }
  .legal-card { padding: 24px 22px; border-radius: 18px; }
  .site-header .nav { gap: 12px; }
  .btn-ghost { padding: 9px 14px; font-size: 13.5px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}
