/* What every page of the site shares: the brand's navy and three colors, light and dark, system fonts, the bar with
   the logo and the language menu, and the footer. Generated pages put them in place (landing/build.mjs). */
:root {
  color-scheme: light dark;
  --navy: #101632;
  --navy-raised: #1a2150;
  --on-navy: #ffffff;
  --on-navy-muted: #c4c9ea;
  --bg: #f6f7fc;
  --surface: #ffffff;
  --text: #14172d;
  --muted: #555b79;
  --line: #e1e4f0;
  --link: #5a3de6;
  --blue: #288efa;
  --green: #19d2ae;
  --purple: #7d50ff;
  --blue-soft: #e5f0ff;
  --green-soft: #dcf8f0;
  --purple-soft: #eee8ff;
  --blue-ink: #1465d0;
  --green-ink: #08806a;
  --purple-ink: #5f33ec;
  --shadow: 0 1.5rem 3.5rem rgba(16, 22, 50, 0.2);
  --radius: 1.25rem;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0f24;
    --surface: #131a38;
    --text: #e8eaf6;
    --muted: #a7add0;
    --line: #242b52;
    --link: #b6a5ff;
    --blue-soft: rgba(40, 142, 250, 0.16);
    --green-soft: rgba(25, 210, 174, 0.14);
    --purple-soft: rgba(125, 80, 255, 0.2);
    --blue-ink: #82bbff;
    --green-ink: #62e3c5;
    --purple-ink: #b8a3ff;
    --shadow: 0 1.5rem 3.5rem rgba(0, 0, 0, 0.5);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--link); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 0.5rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wrap { width: 100%; max-width: 72rem; margin: 0 auto; padding-left: 1.25rem; padding-right: 1.25rem; }
.icon { width: 1.5rem; height: 1.5rem; fill: currentColor; flex: none; }

/* The bar: the logo, home, and the page in the other languages. */
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1.1rem; padding-bottom: 1.1rem; position: relative; z-index: 2; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: inherit; text-decoration: none; font-weight: 800; font-size: 1.3rem; letter-spacing: -0.02em; }
.brand-mark { width: 2.25rem; height: 2.25rem; }

.langs { position: relative; }
.langs summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2.75rem;
  padding: 0.4rem 0.7rem 0.4rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.95rem;
  font-weight: 600;
}
.langs summary::-webkit-details-marker { display: none; }
.langs summary .icon { width: 1.25rem; height: 1.25rem; }
.langs[open] summary { background: rgba(255, 255, 255, 0.14); }
.langs ul {
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  min-width: 12rem;
  margin: 0;
  padding: 0.4rem;
  list-style: none;
  border-radius: 1rem;
  background: var(--navy-raised);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.45);
}
.langs a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 2.75rem;
  padding: 0.5rem 0.8rem;
  border-radius: 0.7rem;
  color: var(--on-navy);
  text-decoration: none;
}
.langs a:hover { background: rgba(255, 255, 255, 0.08); }
.langs a[aria-current] { font-weight: 700; }
.langs a .icon { width: 1.2rem; height: 1.2rem; color: var(--green); }
.langs li { margin: 0; }

/* The bar on its own, over the legal pages. */
.site-header {
  color: var(--on-navy);
  background:
    radial-gradient(40rem 14rem at 0% 0%, rgba(40, 142, 250, 0.38), transparent 70%),
    radial-gradient(36rem 14rem at 100% 100%, rgba(125, 80, 255, 0.34), transparent 70%),
    var(--navy);
}

.footer { border-top: 1px solid var(--line); padding: 2.5rem 0 3rem; color: var(--muted); font-size: 0.92rem; }
.footer p { margin: 0.4rem 0 0; }
.footer li { margin: 0; }
.footer-links, .footer-langs { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.footer-links a { color: var(--text); font-weight: 600; text-decoration: none; }
.footer-links a:hover, .footer-langs a:hover { text-decoration: underline; }
.footer-langs a { color: var(--muted); text-decoration: none; display: inline-flex; align-items: center; gap: 0.2rem; }
.footer-langs a[aria-current] { color: var(--text); font-weight: 600; }
.footer-langs .icon { width: 1rem; height: 1rem; }
.footer-links a, .footer-langs a { min-height: 2.75rem; display: inline-flex; align-items: center; }
