:root {
  --bg: #f7f8f7;
  --surface: #ffffff;
  --ink: #12211c;
  --muted: #5f6f69;
  --line: #dce4e0;
  --teal: #0e8a78;
  --teal-dark: #086657;
  --teal-soft: #e7f4f1;
  --focus: #007f6e;
  --sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "Fraunces", Georgia, serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--sans);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--teal-dark); }

a:focus-visible,
button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--focus) 35%, transparent);
  outline-offset: 3px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
}

.topbar-inner,
.page,
.footer-inner {
  width: min(100% - 40px, 920px);
  margin: 0 auto;
}

.topbar-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
}

.home-link {
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.page { padding: 72px 0 80px; }

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(38px, 6vw, 58px);
  line-height: 1.08;
}

.lead {
  max-width: 760px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.updated {
  display: inline-flex;
  margin-top: 22px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
}

.legal-nav {
  display: flex;
  gap: 8px;
  margin: 42px 0 50px;
  padding-bottom: 14px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
}

.legal-nav a {
  flex: none;
  padding: 9px 12px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.legal-nav a:hover,
.legal-nav a[aria-current="page"] {
  color: var(--teal-dark);
  background: var(--teal-soft);
}

.content { max-width: 780px; }

.content section {
  padding: 34px 0;
  border-top: 1px solid var(--line);
}

.content section:first-child {
  padding-top: 0;
  border-top: 0;
}

h2 {
  margin: 0 0 13px;
  font-size: 28px;
  line-height: 1.2;
}

p { margin: 0 0 14px; }

ul,
ol {
  margin: 12px 0 0;
  padding-left: 24px;
}

li { margin: 8px 0; }

.notice {
  margin: 10px 0 22px;
  padding: 18px 20px;
  border-left: 4px solid var(--teal);
  background: var(--teal-soft);
}

.action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin-top: 10px;
  padding: 0 18px;
  border-radius: 6px;
  background: var(--teal);
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
}

.action:hover { background: var(--teal-dark); }

.protocol {
  margin-top: 20px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.footer-inner {
  min-height: 104px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 13px;
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-links a { text-decoration: none; }

@media (max-width: 640px) {
  .topbar-inner,
  .page,
  .footer-inner { width: min(100% - 32px, 920px); }

  .topbar-inner { min-height: 64px; }
  .brand img { width: 36px; height: 36px; }
  .home-link { font-size: 13px; }
  .page { padding: 48px 0 60px; }
  .lead { font-size: 16px; }
  .legal-nav {
    flex-wrap: wrap;
    margin: 32px 0 38px;
    overflow-x: visible;
  }
  h2 { font-size: 24px; }
  .footer-inner { padding: 24px 0; align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
