:root {
  --bg: #f8f8f5;
  --surface-subtle: #fbfbf8;
  --ink: #111827;
  --ink-muted: #667085;
  --ink-soft: #98a2b3;
  --line: rgba(17, 24, 39, 0.08);
  --line-strong: rgba(17, 24, 39, 0.14);
  --radius: 14px;
  --font:
    -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(248, 248, 245, 0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.brand-mark {
  width: 26px;
  height: 26px;
  flex: none;
  display: block;
}

.header-nav a {
  color: var(--ink-muted);
  font-size: 14.5px;
  font-weight: 500;
}

.header-nav a:hover {
  color: var(--ink);
}

/* Hero — one line, centered in the viewport */

.hero {
  flex: 1;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 96px 0;
}

.hero h1 {
  margin: 0 auto;
  max-width: 760px;
  font-size: clamp(34px, 6vw, 56px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

/* Footer */

.site-footer {
  background: var(--ink);
  color: #ffffff;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 32px;
  padding-bottom: 24px;
}

.brand-light {
  color: #ffffff;
}

.site-footer a {
  color: #ffffff;
}

.site-footer a:hover {
  text-decoration: underline;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.78);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  padding-bottom: 28px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 13px;
}

/* Legal pages */

.legal-main {
  padding: 64px 0 96px;
}

.legal-article {
  max-width: 720px;
}

.back-link {
  display: inline-block;
  margin-bottom: 28px;
  color: var(--ink-muted);
  font-size: 14.5px;
  font-weight: 500;
}

.back-link:hover {
  color: var(--ink);
}

.legal-article h1 {
  margin: 0 0 6px;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.legal-meta {
  margin: 0 0 36px;
  color: var(--ink-soft);
  font-size: 14px;
}

.legal-article h2 {
  margin: 36px 0 10px;
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.legal-article p {
  margin: 0 0 12px;
  color: var(--ink-muted);
  font-size: 15.5px;
}

.legal-article strong {
  color: var(--ink);
}

.legal-article a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
}

.legal-article a:hover {
  text-decoration-color: var(--ink);
}

.legal-article ul {
  margin: 0 0 12px;
  padding-left: 20px;
  color: var(--ink-muted);
  font-size: 15.5px;
}

.legal-article li {
  margin-bottom: 6px;
}

/* Responsive */

@media (max-width: 760px) {
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
