:root {
  --bg: #fafaf7;
  --surface: #ffffff;
  --text: #15191c;
  --muted: #5b6671;
  --border: #e6e6e0;
  --accent: #1f8a4c;
  --accent-soft: #e6f4ec;
  --max: 760px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1113;
    --surface: #161a1d;
    --text: #f1f1ee;
    --muted: #9aa3ad;
    --border: #25292d;
    --accent: #4cc784;
    --accent-soft: #15321f;
  }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a:hover { text-decoration: underline; }

header.site {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

header.site .inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

header.site .brand {
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 18px;
  color: var(--text);
}

header.site nav a {
  margin-left: 18px;
  font-size: 14px;
  color: var(--muted);
}

header.site nav a:hover { color: var(--text); text-decoration: none; }

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px 24px 96px;
}

main.legal { padding-top: 40px; }

h1 {
  font-size: 34px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  font-weight: 700;
}

main.legal h1 { font-size: 28px; }

.lede {
  font-size: 18px;
  color: var(--muted);
  margin: 0 0 32px;
}

h2 {
  font-size: 20px;
  margin: 40px 0 10px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 16px;
  margin: 24px 0 6px;
  font-weight: 600;
}

p, li { color: var(--text); }
.muted { color: var(--muted); }

ul { padding-left: 22px; }
li { margin: 6px 0; }

.meta {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 24px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  margin: 24px 0;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 10px;
  margin-top: 8px;
}

.btn:hover { text-decoration: none; opacity: 0.92; }

.btn-secondary {
  background: var(--accent-soft);
  color: var(--accent);
}

.hero {
  text-align: center;
  padding: 24px 0 8px;
}

.hero .tag {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.hero p.lede {
  max-width: 560px;
  margin: 0 auto 28px;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 40px 0 16px;
}

.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
}

.feature h3 { margin: 0 0 4px; }
.feature p { margin: 0; color: var(--muted); font-size: 14px; }

footer.site {
  border-top: 1px solid var(--border);
  background: var(--surface);
  margin-top: 60px;
}

footer.site .inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 14px;
  color: var(--muted);
}

footer.site a { color: var(--muted); margin-left: 16px; }
footer.site a:first-child { margin-left: 0; }
footer.site a:hover { color: var(--text); text-decoration: none; }

@media (max-width: 520px) {
  header.site .inner { padding: 14px 20px; }
  header.site nav a { margin-left: 12px; }
  main { padding: 36px 20px 72px; }
  h1 { font-size: 28px; }
  main.legal h1 { font-size: 24px; }
  footer.site .inner { flex-direction: column; }
  footer.site a { margin-left: 0; }
}
