/* Právní stránky (/podminky, /ochrana-udaju) – samostatné, bez JavaScriptu, dobře se tisknou */
:root {
  color-scheme: light dark;
  --bg: #f5f4f8; --surface: #ffffff; --ink: #221d33; --muted: #676279; --line: #e3e0ec; --primary: #3d2b6e; --tint: #ece7fa;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #15121f; --surface: #1e1a2b; --ink: #f0edf7; --muted: #a49db9; --line: #332d45; --primary: #b7a1f2; --tint: #2a2340; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); line-height: 1.6;
       font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
a { color: var(--primary); font-weight: 600; overflow-wrap: anywhere; }
.top { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px;
       padding: 10px 16px; background: var(--surface); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.1rem; }
.brand img { border-radius: 10px; }
.top nav { display: flex; gap: 14px; font-size: .9rem; white-space: nowrap; }
main { max-width: 46rem; margin: 0 auto; padding: 24px 16px 48px; }
h1 { font-family: ui-rounded, "SF Pro Rounded", system-ui, sans-serif; font-size: clamp(1.7rem, 5vw, 2.3rem); line-height: 1.2; margin: 8px 0 6px; }
.meta { color: var(--muted); margin: 0 0 20px; }
h2 { font-family: ui-rounded, "SF Pro Rounded", system-ui, sans-serif; font-size: 1.25rem; margin: 34px 0 10px; padding-top: 6px; border-top: 1px solid var(--line); }
h3 { font-size: 1.05rem; margin: 20px 0 6px; }
p, li { margin: 0 0 10px; }
ol, ul { padding-left: 1.4rem; margin: 0 0 12px; }
ol.clauses { list-style: none; padding-left: 0; counter-reset: c; }
ol.clauses > li { counter-increment: c; position: relative; padding-left: 2.6rem; }
ol.clauses > li::before { content: attr(data-n) counter(c) "."; position: absolute; left: 0; color: var(--muted); font-variant-numeric: tabular-nums; }
.box { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px 18px; margin: 14px 0; }
.box p:last-child { margin-bottom: 0; }
.summary { background: var(--tint); border: 0; }
.toc { columns: 2 14rem; padding-left: 1.2rem; }
table { width: 100%; border-collapse: collapse; margin: 10px 0 16px; font-size: .95rem; }
th, td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 600; }
.wrap { overflow-x: auto; }
@media (max-width: 600px) {
  table, tbody, tr, td { display: block; width: 100%; }
  thead { display: none; }
  tr { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 4px 14px; margin-bottom: 10px; }
  td { border: 0; padding: 6px 0; }
  td + td { border-top: 1px solid var(--line); }
  td[data-label]:not(:first-child)::before { content: attr(data-label); display: block; font-size: .8rem; font-weight: 600; color: var(--muted); }
}
.form { white-space: pre-wrap; font-family: inherit; }
footer { border-top: 1px solid var(--line); padding: 20px 16px 32px; text-align: center; color: var(--muted); font-size: .9rem; }
footer p { margin: 4px 0; }
@media print {
  .top, footer nav { display: none; }
  body { background: #fff; color: #000; }
  .box { border-color: #999; }
}
