*, *::before, *::after {
  box-sizing: border-box;
}

:root {
  --bg: #f5f4f0;
  --surface: #ffffff;
  --surface-alt: #eeede9;
  --fg: #0c0c0e;
  --fg2: rgba(0, 0, 0, 0.78);
  --muted: rgba(0, 0, 0, 0.56);
  --faint: rgba(0, 0, 0, 0.28);
  --border: rgba(0, 0, 0, 0.1);
  --accent: #b8892e;
  --accent-bg: rgba(184, 137, 46, 0.1);
  --max: 920px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration-color: rgba(184, 137, 46, 0.55);
  text-underline-offset: 4px;
}

a:hover {
  color: var(--accent);
}

.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(245, 244, 240, 0.92);
}

.site-header-inner,
.site-footer {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-weight: 700;
  letter-spacing: 0;
}

.brand img {
  width: 112px;
  height: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

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

main {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 72px 0 88px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: "Space Grotesk", Inter, sans-serif;
  letter-spacing: 0;
  line-height: 1.05;
}

h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(42px, 8vw, 84px);
}

.lede {
  max-width: 760px;
  margin: 24px 0 0;
  color: var(--fg2);
  font-size: 19px;
}

.meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.pill {
  padding: 7px 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 6px;
}

.legal-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 56px;
  margin-top: 64px;
  align-items: start;
}

.toc {
  position: sticky;
  top: 24px;
  display: grid;
  gap: 9px;
  padding: 16px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 8px;
}

.toc a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.toc a:hover {
  color: var(--fg);
}

.legal-content {
  display: grid;
  gap: 38px;
}

.legal-section {
  padding-top: 2px;
}

.legal-section h2 {
  margin: 0 0 14px;
  font-size: 29px;
}

.legal-section h3 {
  margin: 24px 0 8px;
  font-size: 20px;
}

.legal-section p,
.legal-section ul,
.legal-section ol {
  margin: 0 0 14px;
  color: var(--fg2);
}

.legal-section ul,
.legal-section ol {
  padding-left: 22px;
}

.legal-section li {
  margin: 8px 0;
}

.callout {
  padding: 18px;
  border: 1px solid rgba(184, 137, 46, 0.28);
  background: var(--accent-bg);
  border-radius: 8px;
}

.callout p:last-child,
.legal-section p:last-child,
.legal-section ul:last-child,
.legal-section ol:last-child {
  margin-bottom: 0;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 34px 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
}

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

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

@media (max-width: 760px) {
  .site-header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px 0;
  }

  main {
    padding: 52px 0 64px;
  }

  .legal-layout {
    display: block;
    margin-top: 42px;
  }

  .toc {
    position: static;
    margin-bottom: 36px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
