:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --text: #1a2332;
  --muted: #5c6b7f;
  --accent: #3d8bfd;
  --accent-soft: #e8f1ff;
  --border: #dbe4f0;
  --shadow: 0 10px 30px rgba(26, 35, 50, 0.06);
  --radius: 16px;
  --max-width: 760px;
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(circle at top left, #dff0ff 0%, transparent 42%),
    radial-gradient(circle at bottom right, #fff4df 0%, transparent 38%),
    var(--bg);
}

.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

.site-header {
  padding: 3rem 0 2rem;
}

.eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.site-header h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 5vw, 2.75rem);
  line-height: 1.15;
}

.meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

main {
  padding-bottom: 3rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.25rem;
}

.intro p:last-child {
  margin-bottom: 0;
}

.toc h2,
.terms h2 {
  margin-top: 0;
  font-size: 1.25rem;
}

.toc ol {
  margin: 0;
  padding-left: 1.25rem;
}

.toc li + li {
  margin-top: 0.35rem;
}

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

.toc a:hover {
  text-decoration: underline;
}

.terms h2 {
  margin-bottom: 0.75rem;
}

.terms p,
.terms ul {
  margin-top: 0;
}

.terms p:last-child,
.terms ul:last-child {
  margin-bottom: 0;
}

.terms ul {
  padding-left: 1.25rem;
}

.terms li + li {
  margin-top: 0.35rem;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: var(--accent-soft);
  color: #2456a6;
  padding: 0.1em 0.35em;
  border-radius: 6px;
}

.contact-email {
  font-size: 1.1rem;
  font-weight: 600;
}

.contact-email a {
  color: var(--accent);
}

.fine-print {
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer {
  padding: 2rem 0 3rem;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 600px) {
  .card {
    padding: 1.25rem;
  }

  .site-header {
    padding-top: 2rem;
  }
}
