/* Wspólny wygląd dokumentów csprism.com: polityka prywatności, regulamin, pomoc. Te same barwy i krój co strona główna. */
:root {
  --night: #0F1218;
  --panel: #171B23;
  --deep: #12151C;
  --edge: #252A35;
  --ink: #ECEEF2;
  --muted: #98A0AD;
  --brand: #FF5500;
  --amber: #F2B04A;
  --ct: #5DA3E6;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--night);
  color: var(--ink);
  font-family: "Archivo", "Segoe UI", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: #ff7a33; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 4px; }
code { font-size: .92em; background: var(--deep); border: 1px solid var(--edge); border-radius: 5px; padding: 1px 6px; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* Wybrany język: widoczne tylko elementy z data-l równym językowi strony. */
html[lang="pl"] [data-l="en"], html[lang="en"] [data-l="pl"] { display: none !important; }

/* ── Pasek: znak, dokumenty, język ── */
.bar { display: flex; align-items: center; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--edge); }
.mark { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 18px; font-variation-settings: "wdth" 112; color: var(--ink); text-decoration: none; }
.mark:hover { color: var(--ink); }
.mark svg { width: 30px; height: 30px; }
.docs { display: flex; gap: 4px; margin-left: auto; }
.docs a { color: var(--muted); text-decoration: none; font-size: 15px; padding: 7px 12px; border-radius: 8px; white-space: nowrap; }
.docs a:hover { color: var(--ink); background: var(--panel); }
.docs a[aria-current="page"] { color: var(--ink); background: var(--panel); box-shadow: inset 0 -2px 0 var(--brand); }
.lang { display: flex; border: 1px solid var(--edge); border-radius: 8px; overflow: hidden; }
.lang button { background: none; border: 0; color: var(--muted); font: inherit; font-size: 14px; padding: 6px 11px; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--panel); color: var(--ink); }

/* ── Tytuł z promieniem (jak w hero strony głównej): biały promień wchodzi w pryzmat i rozszczepia się na trzy barwy ── */
.title { padding: 56px 0 8px; }
.title h1 {
  margin: 0;
  font-weight: 800;
  font-variation-settings: "wdth" 125;
  font-size: clamp(36px, 5.4vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.title .lead { color: var(--muted); font-size: 19px; max-width: 54ch; margin: 18px 0 0; }
.title .facts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin: 22px 0 0; color: var(--muted); font-size: 15px; }
.title .facts button { font: inherit; color: var(--ink); background: var(--panel); border: 1px solid var(--edge); border-radius: 8px; padding: 6px 12px; cursor: pointer; }
.title .facts button:hover { border-color: #3a4150; }
.ray { display: block; width: 100%; height: 26px; margin-top: 30px; overflow: visible; }
.ray path { fill: none; stroke-width: 2; stroke-linecap: round; }
.ray .in { stroke: var(--ink); stroke-dasharray: 260; stroke-dashoffset: 260; animation: draw .5s ease-in .1s forwards; }
.ray .out { stroke-dasharray: 1200; stroke-dashoffset: 1200; animation: draw 1s cubic-bezier(.2,.7,.2,1) .55s forwards; }
.ray .a { stroke: var(--brand); } .ray .b { stroke: var(--amber); } .ray .c { stroke: var(--ct); }
.ray .prism { fill: var(--panel); stroke: #3a4150; stroke-width: 1; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ── Dokument: spis treści przy lewej krawędzi, treść do ~68 znaków ── */
.layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 64px; padding: 28px 0 88px; }
.toc { position: sticky; top: 24px; align-self: start; max-height: calc(100vh - 48px); overflow: auto; font-size: 15px; }
.toc p { color: var(--muted); margin: 0 0 10px; font-size: 14px; }
.toc p button { all: unset; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--edge); }
.toc a { display: block; padding: 6px 0 6px 16px; margin-left: -1px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; line-height: 1.35; }
.toc a:hover { color: var(--ink); }
.toc a.on { color: var(--ink); border-left-color: var(--brand); }
.body { max-width: 68ch; }
.body > section { padding-top: 8px; }
.body > section + section { margin-top: 36px; padding-top: 36px; border-top: 1px solid var(--edge); }
.body h2 {
  position: relative;
  margin: 0 0 12px;
  font-size: 23px;
  line-height: 1.25;
  font-weight: 750;
  font-variation-settings: "wdth" 112;
  scroll-margin-top: 24px;
}
/* Numer paragrafu regulaminu wysunięty na margines – to faktycznie kolejne paragrafy. */
.body h2 .n { position: absolute; right: calc(100% + 18px); top: 2px; color: var(--brand); font-size: 17px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.body p { margin: 0 0 14px; }
.body ul, .body ol { margin: 0 0 14px; padding: 0; list-style: none; }
.body li { position: relative; padding-left: 22px; margin: 8px 0; }
.body ul > li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; border-radius: 2px; background: var(--brand); }
.body ol { counter-reset: item; }
.body ol > li { counter-increment: item; padding-left: 32px; }
.body ol > li::before { content: counter(item) "."; position: absolute; left: 0; color: var(--muted); font-variant-numeric: tabular-nums; }
.body b { color: #fff; font-weight: 650; }
.note { color: var(--muted); font-size: 15px; }

/* Polityka: najważniejsze w trzech zdaniach. */
.gist { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--edge); border: 1px solid var(--edge); border-radius: 12px; overflow: hidden; margin: 0 0 8px; }
.gist div { background: var(--panel); padding: 20px 22px; }
.gist i { display: block; width: 10px; height: 10px; border-radius: 3px; margin-bottom: 14px; background: var(--c); }
.gist strong { display: block; font-size: 17px; font-variation-settings: "wdth" 110; margin-bottom: 4px; }
.gist span { color: var(--muted); font-size: 15px; line-height: 1.5; }

/* Administrator / usługodawca – dane, które prawo każe podać. */
.who { display: grid; grid-template-columns: auto 1fr; gap: 4px 18px; background: var(--deep); border: 1px solid var(--edge); border-radius: 10px; padding: 16px 20px; margin: 4px 0 14px; font-size: 16px; }
.who dt { color: var(--muted); }
.who dd { margin: 0; }

/* ── Pomoc: kontakt, wyszukiwarka, pytania ── */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 18px 28px; background: var(--panel); border: 1px solid var(--edge); border-radius: 14px; padding: 26px 28px; margin: 30px 0 0; }
.contact h2 { margin: 0 0 4px; font-size: 22px; font-weight: 750; font-variation-settings: "wdth" 112; }
.contact p { margin: 0; color: var(--muted); }
.contact .act { display: flex; align-items: center; gap: 12px; justify-self: end; }
.contact .address { font-weight: 650; font-size: 18px; word-break: break-all; }
.btn { font: 650 16px "Archivo", "Segoe UI", system-ui, sans-serif; border: 0; border-radius: 10px; padding: 12px 18px; background: var(--brand); color: #160800; cursor: pointer; }
.btn:hover { background: #ff6a1f; }
.search { position: relative; margin: 4px 0 18px; }
.search svg { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--muted); }
.search input { width: 100%; font: inherit; color: var(--ink); background: var(--deep); border: 1px solid var(--edge); border-radius: 10px; padding: 12px 14px 12px 44px; }
.search input::placeholder { color: #6f7685; }
.search input:focus { outline: none; border-color: var(--amber); }
.faq details { border-top: 1px solid var(--edge); }
.faq details:last-of-type { border-bottom: 1px solid var(--edge); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 14px; padding: 16px 0; font-weight: 650; font-size: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; margin-left: auto; flex: none; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translate(-2px, -2px); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(225deg) translate(-2px, -2px); border-color: var(--brand); }
.faq summary:hover { color: #fff; }
.faq .a { padding: 0 0 18px; color: #d3d7de; }
.faq .a p:last-child { margin-bottom: 0; }
.faq .tag { flex: none; font-size: 12px; font-weight: 650; color: var(--c); border: 1px solid currentColor; border-radius: 6px; padding: 1px 7px; }
.empty { color: var(--muted); padding: 18px 0; }
.path { color: var(--ink); font-weight: 600; }

/* ── Stopka jak na stronie głównej ── */
footer { border-top: 1px solid var(--edge); padding: 26px 0 40px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 6px 18px; }
footer a { color: var(--muted); }
footer a:hover { color: var(--ink); }

@media (max-width: 900px) {
  .layout { grid-template-columns: minmax(0, 1fr); gap: 8px; padding-top: 8px; }
  .toc { position: static; max-height: none; border: 1px solid var(--edge); border-radius: 12px; padding: 0; background: var(--panel); }
  .toc p { margin: 0; }
  .toc p button { display: flex; align-items: center; width: 100%; font: inherit; font-size: 15px; color: var(--ink); background: none; border: 0; padding: 14px 16px; cursor: pointer; text-align: left; }
  .toc p button::after { content: ""; margin-left: auto; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); }
  .toc.open p button::after { transform: rotate(225deg); }
  .toc ol { margin: 0 16px 14px; }
  .toc:not(.open) ol { display: none; }
  .body h2 .n { position: static; display: block; margin-bottom: 2px; }
  .gist { grid-template-columns: minmax(0, 1fr); }
  .contact { grid-template-columns: minmax(0, 1fr); }
  .contact .act { justify-self: start; }
}
@media (max-width: 640px) {
  .bar { flex-wrap: wrap; gap: 12px; }
  .docs { order: 3; width: 100%; margin-left: 0; overflow-x: auto; }
  .lang { margin-left: auto; }
  .title { padding-top: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ray .in, .ray .out { animation: none; stroke-dashoffset: 0; }
  .faq summary::after { transition: none; }
}
@media print {
  body { background: #fff; color: #000; font-size: 11pt; }
  .bar, .toc, .ray, footer, .facts button, .search, .lang { display: none !important; }
  .layout { display: block; padding: 0; }
  .body { max-width: none; }
  .body b, .gist strong { color: #000; }
  .gist, .gist div, .who, code { background: #fff; border-color: #bbb; }
  .gist span, .note, .who dt, .title .lead, .title .facts { color: #333; }
  .body h2 .n { position: static; margin-right: 8px; }
  a { color: #000; }
}
