:root {
  color-scheme: light;
  --bg: #f7f6f2;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-strong: #ffffff;
  --text: #15202b;
  --muted: #4f5d6b;
  --border: rgba(21, 32, 43, 0.12);
  --primary: #0b63f6;
  --primary-strong: #0847b3;
  --accent: #f0f6ff;
  --shadow: 0 20px 48px rgba(15, 23, 42, 0.08);
  --radius: 20px;
  --content: 760px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Georgia", "Times New Roman", serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(11, 99, 246, 0.09), transparent 28%),
    linear-gradient(180deg, #faf8f4 0%, var(--bg) 100%);
  line-height: 1.7;
}

a {
  color: var(--primary-strong);
}

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

.site-shell {
  max-width: 1160px;
  margin: 0 auto;
  padding: 28px 20px 80px;
}

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

.brand {
  font-family: "Arial", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--text);
}

.nav {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-family: "Arial", sans-serif;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
}

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

.hero,
.article,
.docs-card,
.grid-card,
.cta {
  background: var(--surface);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero,
.article,
.docs-card {
  padding: 36px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 16px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--primary-strong);
  font-family: "Arial", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.15;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  max-width: 14ch;
  margin-bottom: 18px;
}

h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
  margin-bottom: 12px;
}

h3 {
  font-size: 1.18rem;
  margin-bottom: 8px;
}

p,
li {
  color: var(--muted);
  font-size: 1.03rem;
}

.lede {
  font-size: 1.15rem;
  max-width: 62ch;
}

.button-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 26px;
  font-family: "Arial", sans-serif;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 700;
}

.button-primary {
  background: var(--primary);
  color: #fff;
}

.button-primary:hover {
  background: var(--primary-strong);
  color: #fff;
}

.button-secondary {
  border-color: var(--border);
  color: var(--text);
  background: rgba(255, 255, 255, 0.72);
}

.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 28px;
}

.grid-card {
  padding: 28px;
}

.grid-card h3 {
  margin-bottom: 12px;
}

.grid-card a {
  font-family: "Arial", sans-serif;
  font-weight: 700;
}

.stack {
  display: grid;
  gap: 22px;
}

.article {
  max-width: var(--content);
  margin: 0 auto;
}

.article-meta {
  margin-bottom: 18px;
  color: var(--muted);
  font-family: "Arial", sans-serif;
  font-size: 0.95rem;
}

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

.article blockquote {
  margin: 24px 0;
  padding: 16px 20px;
  border-left: 4px solid var(--primary);
  background: rgba(11, 99, 246, 0.06);
  color: var(--text);
}

.cta {
  margin-top: 28px;
  padding: 28px;
}

.docs-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1.2fr 0.8fr;
  margin-top: 24px;
}

.docs-card pre {
  overflow: auto;
  padding: 18px;
  border-radius: 14px;
  background: #111827;
  color: #e5eefc;
  font-size: 0.92rem;
}

.docs-card code,
.article code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.92em;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  list-style: none;
}

.pill-list li {
  margin: 0;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--primary-strong);
  font-family: "Arial", sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
}

.footer {
  margin-top: 42px;
  color: var(--muted);
  font-family: "Arial", sans-serif;
  font-size: 0.92rem;
}

.legal-page {
  min-height: 100vh;
  background: #ffffff;
}

.legal-shell {
  max-width: 48rem;
  margin: 0 auto;
  padding: 4rem 1.5rem;
  font-family: Arial, Helvetica, sans-serif;
  color: #111827;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 2.5rem;
  color: #6b7280;
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.legal-back:hover {
  color: #111827;
}

.legal-title {
  margin: 0;
  font-size: 1.875rem;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.02em;
  max-width: none;
}

.legal-meta {
  margin: 0.5rem 0 0;
  color: #6b7280;
  font-size: 0.875rem;
}

.legal-meta strong {
  color: #111827;
  font-weight: 500;
}

.legal-shell h2 {
  margin: 2.5rem 0 0.75rem;
  font-size: 1.25rem;
  line-height: 1.3;
  font-weight: 600;
  color: #111827;
}

.legal-shell h3 {
  margin: 1rem 0 0.5rem;
  font-size: 0.95rem;
  line-height: 1.4;
  font-weight: 600;
  color: #111827;
}

.legal-shell p,
.legal-shell li {
  color: #6b7280;
  font-size: 0.875rem;
  line-height: 1.7;
}

.legal-shell p {
  margin: 0;
}

.legal-shell p + p,
.legal-shell ul + p,
.legal-shell ol + p {
  margin-top: 0.75rem;
}

.legal-shell ul,
.legal-shell ol {
  margin: 0.75rem 0 0;
  padding-left: 1.25rem;
}

.legal-shell ul {
  list-style: disc;
}

.legal-shell ol {
  list-style: decimal;
}

.legal-shell li + li {
  margin-top: 0.5rem;
}

.legal-shell strong {
  color: #111827;
}

.legal-shell a {
  color: #111827;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 0.2s ease;
}

.legal-shell a:hover {
  color: var(--primary);
}

.legal-footer-nav {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(21, 32, 43, 0.12);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #6b7280;
}

.legal-footer-nav a {
  color: #6b7280;
  text-decoration: none;
}

.legal-footer-nav a:hover {
  color: #111827;
}

@media (min-width: 640px) {
  .legal-footer-nav {
    flex-direction: row;
    justify-content: space-between;
  }
}

@media (max-width: 900px) {
  .grid,
  .docs-grid {
    grid-template-columns: 1fr;
  }

  .hero,
  .article,
  .docs-card {
    padding: 26px;
  }
}

@media (max-width: 640px) {
  .site-shell {
    padding: 18px 14px 60px;
  }

  .legal-shell {
    padding: 3rem 1.25rem;
  }

  .topbar {
    margin-bottom: 20px;
  }

  h1 {
    font-size: 2.2rem;
  }
}
