:root {
  color-scheme: light;
  --bg: #fcfcfa; --fg: #26303b; --muted: #5f6b78; --accent: #2f6fb3; --border: #e6e9ed; --card: #ffffff;
  --hero: #eef4fa; --on-accent: #fff; --shadow: rgba(20,40,60,.04);
  --moon: block; --sun: none;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #12171d; --fg: #e6eaf0; --muted: #a3adba; --accent: #7db7f0; --border: #2b3441; --card: #1a212a;
    --hero: #18212c; --on-accent: #12171d; --shadow: rgba(0,0,0,.2);
    --moon: none; --sun: block;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #12171d; --fg: #e6eaf0; --muted: #a3adba; --accent: #7db7f0; --border: #2b3441; --card: #1a212a;
  --hero: #18212c; --on-accent: #12171d; --shadow: rgba(0,0,0,.2);
  --moon: none; --sun: block;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--fg);
  font: 1.0625rem/1.7 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
.wrap { max-width: 50rem; margin: 0 auto; padding: 0 1.25rem; }
a { color: var(--accent); text-underline-offset: 0.15em; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 3px; }

.hero { background: var(--hero); border-bottom: 1px solid var(--border); padding: 4.5rem 0 3.5rem; }
h1 { font-size: 3rem; line-height: 1.1; margin: 0; letter-spacing: -0.02em; }
.lead { font-size: 1.3rem; margin: 0.6rem 0 0; color: var(--muted); }
.place { margin: 0.25rem 0 0; color: var(--muted); }
.hero .wrap { position: relative; }
.theme-toggle {
  position: absolute; top: -2.75rem; right: 1.25rem; width: 2.5rem; height: 2.5rem; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; border: 1px solid var(--border); background: var(--card); color: var(--fg); cursor: pointer;
}
.theme-toggle[hidden] { display: none; }
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
.theme-toggle:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.theme-toggle svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .icon-moon { display: var(--moon); }
.theme-toggle .icon-sun { display: var(--sun); }

.topbar { background: var(--hero); border-bottom: 1px solid var(--border); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; padding-top: 0.9rem; padding-bottom: 0.9rem; }
.topbar .theme-toggle { position: static; }
.back { color: var(--fg); font-weight: 600; text-decoration: none; }
.back:hover { color: var(--accent); }
main.legal-page { padding-top: 2.5rem; padding-bottom: 6rem; }
.legal-page h1 { font-size: 2rem; margin-bottom: 1rem; }
.legal-page h2 { font-size: 1.15rem; margin: 2rem 0 0.4rem; }
footer a[aria-current="page"] { color: var(--fg); }
.cta { margin: 1.75rem 0 0; display: flex; flex-wrap: wrap; gap: 0.75rem; }

.button {
  display: inline-block; padding: 0.6rem 1.2rem; border-radius: 8px; border: 2px solid var(--accent);
  background: var(--accent); color: var(--on-accent); font-weight: 600; text-decoration: none;
}
.button:hover { filter: brightness(1.08); }
.button.ghost { background: transparent; color: var(--accent); }

main.wrap { flex: 1 0 auto; width: 100%; padding-top: 1rem; padding-bottom: 6rem; }
h2 { font-size: 1.5rem; margin: 2.75rem 0 0.9rem; letter-spacing: -0.01em; }
h3 { font-size: 1.05rem; margin: 1.25rem 0 0.25rem; }

.facts { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 1rem; }
.facts li { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 1.25rem 1.4rem; display: flex; flex-direction: column; box-shadow: 0 1px 2px var(--shadow); }
.facts strong { font-size: 2rem; line-height: 1.1; color: var(--accent); }
.facts span { color: var(--muted); font-size: 0.95rem; line-height: 1.45; margin-top: 0.4rem; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 1.25rem 1.4rem; box-shadow: 0 1px 2px var(--shadow); }
.card h3 { margin: 0 0 0.4rem; line-height: 1.35; }
.card p { margin: 0; color: var(--muted); font-size: 0.98rem; line-height: 1.5; }

ul { margin: 0; padding-left: 1.25rem; }
ul.tags { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.45rem; }
ul.tags li { background: var(--hero); border: 1px solid var(--border); border-radius: 999px; padding: 0.1rem 0.8rem; font-size: 0.95rem; }
address { font-style: normal; margin-bottom: 1rem; }


footer { background: var(--hero); border-top: 1px solid var(--border); color: var(--muted); font-size: 0.95rem; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.5rem; padding-top: 1.25rem; padding-bottom: 1.5rem; }
footer nav { display: flex; gap: 1.25rem; }
footer a { color: var(--muted); }

@media (max-width: 30rem) { h1 { font-size: 2.25rem; } .hero { padding: 4rem 0 2.5rem; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print { .theme-toggle, .topbar { display: none; } .hero { background: none; padding: 0; border: 0; } .cta, footer nav { display: none; } }
