:root {
  color-scheme: light;
  --bg: #f5f3ef;
  --paper: #fcfbf8;
  --text: #1f2933;
  --muted: #667085;
  --primary: #1f5fbf;
  --secondary: #0f8a78;
  --border: rgba(15, 23, 42, 0.1);
  --shadow: 0 20px 44px rgba(15, 23, 42, 0.08);
  --button-bg: rgba(252, 251, 248, 0.72);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at top left, rgba(31, 95, 191, 0.13), transparent 30%),
    radial-gradient(circle at 85% 14%, rgba(15, 138, 120, 0.1), transparent 24%),
    var(--bg);
  color: var(--text);
  font-family: Inter, Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
}

body[data-theme="dark"] {
  color-scheme: dark;
  --bg: #111418;
  --paper: #1a1f24;
  --text: #eef2f6;
  --muted: #a7b1bc;
  --primary: #7fb3ff;
  --secondary: #5cc8b0;
  --border: rgba(255, 255, 255, 0.1);
  --shadow: 0 20px 44px rgba(0, 0, 0, 0.24);
  --button-bg: rgba(26, 31, 36, 0.74);
}

a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.page {
  width: min(100%, 1040px);
  margin: 0 auto;
  padding: 28px 18px 42px;
}

.topbar,
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.legal-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand {
  color: var(--text);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
}

.pill-button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 14px;
  background: var(--button-bg);
  color: var(--text);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.pill-button:hover {
  border-color: rgba(31, 95, 191, 0.28);
}

.theme-toggle {
  min-width: 40px;
  padding-inline: 12px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.panel {
  margin-top: 30px;
  padding: clamp(24px, 4vw, 48px);
  background: rgba(252, 251, 248, 0.88);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--secondary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  max-width: 850px;
  font-size: clamp(2.25rem, 6vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.summary {
  max-width: 850px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.updated {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 800;
}

section {
  margin-top: 34px;
}

h2 {
  margin: 0 0 10px;
  font-size: 1.35rem;
  line-height: 1.25;
}

p {
  margin: 0 0 12px;
  color: var(--muted);
}

ul {
  margin: 0;
  padding-left: 24px;
  color: var(--muted);
}

li {
  margin: 0 0 10px;
}

li::marker {
  color: var(--primary);
}

.footer {
  margin-top: 24px;
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 640px) {
  .footer {
    justify-content: center;
    text-align: center;
  }

  .topbar {
    justify-content: space-between;
    flex-wrap: nowrap;
  }

  .desktop-legal-nav {
    display: none;
  }

  .brand {
    display: none;
  }
}
