/* Styles for the static legal pages. They are plain HTML (no app bundle) so Cloudflare Email Obfuscation can rewrite the address in them; colours mirror src/index.css. */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@700;800&family=DM+Sans:wght@400;600&family=Onest:wght@400;600;700;800&display=swap');

:root {
  color-scheme: light;
  --page: #f9f8f5;
  --line: #e8e6df;
  --ink: #1a1a1a;
  --muted: #6b6b6b;
  --heading: #0f3360;
  --brand: #1a4f8a;
}

[data-theme='dark'] {
  color-scheme: dark;
  --page: #0b1626;
  --line: #24364f;
  --ink: #e6eaf0;
  --muted: #9aa6b6;
  --heading: #eef3fa;
  --brand: #8dbbef;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: 'DM Sans', 'Onest', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

.bar,
main,
footer {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px;
}

.bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.brand {
  font-family: 'Outfit', 'Onest', sans-serif;
  font-weight: 800;
  font-size: 20px;
  color: var(--heading);
  text-decoration: none;
}

.brand span {
  color: #f5c418;
}

.langs {
  display: flex;
  gap: 14px;
  font-size: 14px;
}

h1,
h2 {
  font-family: 'Outfit', 'Onest', sans-serif;
  font-weight: 800;
  color: var(--heading);
  line-height: 1.25;
}

h1 {
  font-size: clamp(26px, 5vw, 36px);
  margin: 40px 0 24px;
}

h2 {
  font-size: 20px;
  margin: 32px 0 8px;
}

p,
ul {
  margin: 0 0 12px;
}

ul {
  padding-left: 22px;
}

li + li {
  margin-top: 6px;
}

a {
  color: var(--brand);
}

nav a {
  color: var(--muted);
  text-decoration: none;
}

nav a:hover,
nav a[aria-current='page'] {
  color: var(--brand);
}

nav a[aria-current='page'] {
  font-weight: 600;
}

footer {
  margin-top: 48px;
  padding-top: 24px;
  padding-bottom: 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 12px;
}

footer p {
  margin: 4px 0;
}
