/* Strony prawne i kontakt w stylu nowej strony glownej. PRODUKCJA od 2026-11-04: szablon w renderLegalPage (server.js),
   tresc z public/legal/<nazwa>.html. Kopia z prezentacja/strona/prawne.css; znak.png lezy obok (url wzgledny). */
:root {
  --tlo: #0c0d11; --pow: #131419; --pow2: #1a1b21;
  --kr: rgba(255, 255, 255, 0.07); --kr2: rgba(255, 255, 255, 0.13);
  --t1: #ffffff; --t2: rgba(255, 255, 255, 0.62); --t3: rgba(255, 255, 255, 0.4);
  --atr: #0c0d11;
  --spr: cubic-bezier(0.22, 1, 0.36, 1); --spr-t: 0.7s;
  --mono: 'Geist Mono', ui-monospace, Consolas, monospace;
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { background: var(--tlo); color: var(--t1); font-family: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
.shell { width: min(1180px, 100% - 56px); margin-inline: auto; }
::selection { background: #fff; color: var(--atr); }

.btn { display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 17px; border-radius: 999px; font-weight: 500; font-size: 14px; white-space: nowrap; transition: transform var(--spr-t) var(--spr), background-color 0.2s; }
.btn--b { background: #fff; color: var(--atr); }
.btn--b:hover { transform: scale(1.035); }
.btn--g { box-shadow: inset 0 0 0 1px var(--kr2); }
.btn--g:hover { background: rgba(255, 255, 255, 0.06); }

.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; height: 68px; display: flex; align-items: center; transition: background-color 0.3s, box-shadow 0.3s; }
.nav.sc { background: rgba(12, 13, 17, 0.74); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: inset 0 -1px 0 var(--kr); }
.nav__w { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: flex; align-items: center; gap: 11px; }
.logo__z { flex: none; width: 36px; height: 36px; border-radius: 10px; background: rgba(255, 255, 255, 0.08) url("znak.png") center / 24px auto no-repeat; }
.logo__s { display: flex; flex-direction: column; gap: 1px; line-height: 1.15; }
.logo__s small { font-size: 11px; font-weight: 500; letter-spacing: 0.01em; color: rgba(255, 255, 255, 0.5); }
.logo__s b { font-size: 15px; font-weight: 700; letter-spacing: -0.02em; }
.nav__l { display: flex; gap: 32px; font-size: 14.5px; color: var(--t2); }
.nav__l a { transition: color 0.2s; }
.nav__l a:hover { color: #fff; }
.nav__p { display: flex; align-items: center; gap: 8px; }

.odk { opacity: 0; transform: translateY(20px); filter: blur(6px); transition: opacity 0.5s, filter 0.6s, transform var(--spr-t) var(--spr); transition-delay: calc(var(--i, 0) * 80ms); }
.odk.on { opacity: 1; transform: none; filter: none; }

/* uklad: lista dokumentow po lewej, tresc po prawej */
.pr { padding: 136px 0 110px; }
.pr__w { display: grid; grid-template-columns: 220px minmax(0, 780px); gap: 80px; align-items: start; }
.pr__m { position: sticky; top: 104px; display: flex; flex-direction: column; gap: 4px; }
.pr__m a { height: 42px; padding: 0 16px; border-radius: 999px; display: flex; align-items: center; color: var(--t2); font-size: 15px; transition: color 0.2s, background-color 0.2s; }
.pr__m a:hover { color: #fff; background: rgba(255, 255, 255, 0.05); }
.pr__m a.akt { background: #fff; color: var(--atr); font-weight: 500; }

/* tresc dokumentu (klasy z plikow public/legal) */
.legal-hero h1 { font-size: clamp(40px, 5.4vw, 78px); line-height: 1; letter-spacing: -0.045em; font-weight: 600; }
.legal-hero .subtitle { color: var(--t2); font-size: 18px; margin-top: 20px; max-width: 600px; }
.legal-updated { display: inline-block; margin-top: 18px; font-size: 13.5px; color: var(--t3); }
.legal-content { margin-top: 26px; }
.legal-content h2 { font-size: 27px; line-height: 1.2; letter-spacing: -0.03em; font-weight: 600; margin: 52px 0 18px; padding-top: 30px; box-shadow: inset 0 1px 0 var(--kr2); scroll-margin-top: 90px; }
.legal-content h3 { font-size: 18.5px; font-weight: 600; letter-spacing: -0.015em; margin: 30px 0 10px; scroll-margin-top: 90px; }
.legal-content p, .legal-content li { color: var(--t2); font-size: 16.5px; line-height: 1.7; }
.legal-content p { margin-bottom: 14px; }
.legal-content strong { color: #fff; font-weight: 500; }
.legal-content a { color: #fff; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.3); text-underline-offset: 4px; transition: text-decoration-color 0.2s; }
.legal-content a:hover { text-decoration-color: #fff; }
.legal-content ul, .legal-content ol { padding-left: 22px; margin-bottom: 16px; }
.legal-content li { margin-bottom: 7px; }
.legal-content li::marker { color: var(--t3); }
.legal-card { padding: 20px 22px; border-radius: 18px; background: var(--pow); box-shadow: inset 0 0 0 1px var(--kr2); margin: 12px 0 18px; }
.legal-card p:last-child { margin-bottom: 0; }
.legal-content .muted { color: var(--t3); font-size: 14.5px; }
.tab { overflow-x: auto; margin: 14px 0 22px; }
.legal-content table { width: 100%; border-collapse: collapse; font-size: 15px; }
.legal-content th { text-align: left; color: var(--t3); font-weight: 500; font-size: 13px; padding: 10px 16px 10px 0; border-bottom: 1px solid var(--kr2); white-space: nowrap; }
.legal-content td { padding: 13px 16px 13px 0; border-bottom: 1px solid var(--kr); color: var(--t2); vertical-align: top; line-height: 1.55; }
.legal-content code { font-family: var(--mono); font-size: 0.86em; padding: 2px 7px; border-radius: 7px; background: rgba(255, 255, 255, 0.07); color: #fff; }

.stopka { padding: 30px 0 44px; box-shadow: inset 0 1px 0 var(--kr); color: var(--t3); font-size: 13.5px; }
.stopka__w { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.stopka nav { display: flex; gap: 24px; flex-wrap: wrap; }
.stopka a { transition: color 0.2s; }
.stopka a:hover { color: #fff; }

@media (max-width: 940px) {
  .nav__l { display: none; }
  .pr { padding-top: 104px; }
  .pr__w { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .pr__m { position: static; flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 560px) {
  .shell { width: calc(100% - 36px); }
  .nav .btn--g { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01s !important; }
}
