/* Shared styling for the legal pages (obchodné podmienky, ochrana osobných
   údajov, odstúpenie). Tokens mirror landing/index.html — same neutral ramp and
   blue accents the app resolves its oklch values to — so the three pages and
   the landing read as one site. Dark mode hangs off the same `theme` key the app
   writes, set by the inline script in each page's head. */

:root {
  --bg: #ffffff;
  --fg: #0a0a0a;
  --muted: #737373;
  --border: #e5e5e5;
  --card-soft: #f5f5f5;
  --accent: #3b82f6;
  --accent-text: #2563eb;
  --accent-soft: #eff6ff;
  --accent-border: #bfdbfe;
  --radius: 0.625rem;
}
html.dark {
  --bg: #0a0a0a;
  --fg: #fafafa;
  --muted: #a3a3a3;
  --border: #262626;
  --card-soft: #262626;
  --accent-soft: #172554;
  --accent-border: #1e40af;
  --accent-text: #60a5fa;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.7;
}
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { width: 100%; max-width: 46rem; margin: 0 auto; padding: 0 1.5rem; }

/* ---------- Header ---------- */
header { border-bottom: 1px solid var(--border); padding: 1.25rem 0; }
header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand {
  display: flex; align-items: center; gap: 0.6rem;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700; font-size: 1.0625rem; letter-spacing: -0.02em;
  color: var(--fg);
}
.brand:hover { text-decoration: none; }
.brand .dot {
  width: 26px; height: 26px; border-radius: 999px; background: var(--accent);
  display: grid; place-items: center; flex-shrink: 0;
}
.brand .dot svg { width: 15px; height: 15px; stroke: #fff; }
.back { font-size: 0.875rem; color: var(--muted); white-space: nowrap; }
.back:hover { color: var(--fg); text-decoration: none; }

/* ---------- Document ---------- */
main { padding: 3.5rem 0 4.5rem; }
h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 700; letter-spacing: -0.03em; line-height: 1.15;
}
.updated { margin-top: 0.6rem; font-size: 0.8125rem; color: var(--muted); }
.lead { margin-top: 1.5rem; font-size: 1.0625rem; color: var(--muted); }

h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1875rem; font-weight: 700; letter-spacing: -0.02em;
  margin: 2.75rem 0 0.9rem;
  padding-top: 1.75rem; border-top: 1px solid var(--border);
}
h3 { font-size: 1rem; font-weight: 600; margin: 1.75rem 0 0.5rem; }
p { margin-bottom: 1rem; }
ul, ol { margin: 0 0 1rem 1.25rem; }
li { margin-bottom: 0.5rem; }
strong { font-weight: 600; }

/* Definition-style rows for the "what we collect / who gets it" tables */
.rows { border-top: 1px solid var(--border); margin-bottom: 1.25rem; }
.row {
  display: grid; grid-template-columns: 13rem 1fr; gap: 1.25rem;
  padding: 0.85rem 0; border-bottom: 1px solid var(--border);
  font-size: 0.9375rem;
}
.row dt { font-weight: 600; }
.row dd { color: var(--muted); margin: 0; }
@media (max-width: 640px) {
  .row { grid-template-columns: 1fr; gap: 0.25rem; }
}

/* Callout for the things people actually need to notice */
.note {
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  margin: 1.5rem 0;
  font-size: 0.9375rem;
}
.note p:last-child { margin-bottom: 0; }

/* Placeholder for company details that are not filled in yet — deliberately
   loud, so an unfinished document cannot quietly go live. */
.todo {
  background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c;
  border-radius: 0.375rem; padding: 0.1rem 0.4rem;
  font-size: 0.875rem; font-weight: 600; white-space: nowrap;
}
html.dark .todo { background: #450a0a; border-color: #7f1d1d; color: #fca5a5; }

/* Withdrawal form template */
.form-template {
  background: var(--card-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  margin: 1.25rem 0;
  font-size: 0.9375rem;
}
.form-template p { margin-bottom: 0.65rem; }
.form-template p:last-child { margin-bottom: 0; }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0 2.5rem;
  font-size: 0.8125rem;
  color: var(--muted);
}
footer .wrap { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; }
footer a { color: var(--muted); }
footer a:hover { color: var(--fg); }
