:root {
  color-scheme: light;
  --bg: #f5efe5;
  --paper: #fffdf9;
  --ink: #121214;
  --muted: #5f615e;
  --rule: #ddd3c3;
  --accent: #9c4b34;
  --accent-dark: #713623;
  --shadow: rgba(18, 18, 20, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  background:
    radial-gradient(circle at top, rgba(156, 75, 52, 0.08), transparent 36%),
    linear-gradient(180deg, #f8f2e7 0%, var(--bg) 100%);
  color: var(--ink);
}

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

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.92em;
}

.page {
  width: min(860px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 64px;
}

.hero,
.legal-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 24px;
  box-shadow: 0 18px 40px var(--shadow);
}

.hero {
  padding: 28px;
  margin-bottom: 20px;
}

.eyebrow {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font: 600 12px/1.2 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--accent-dark);
}

h1,
h2 {
  margin: 0;
  line-height: 1.1;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
}

h2 {
  font-size: 1.5rem;
}

.lede,
.meta,
.section-body,
.card-link p,
.note,
li {
  font: 400 1rem/1.65 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.lede,
.meta,
.section-body,
.card-link p,
.note {
  color: var(--muted);
}

.meta {
  margin-top: 10px;
}

.back-link {
  display: inline-block;
  margin-bottom: 16px;
  font: 600 0.95rem/1.2 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-decoration: none;
}

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

.card-link {
  display: block;
  text-decoration: none;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 14px 30px var(--shadow);
}

.card-link:hover {
  transform: translateY(-1px);
}

.legal-card {
  padding: 28px;
}

.section {
  padding-top: 20px;
  margin-top: 20px;
  border-top: 1px solid var(--rule);
}

.section:first-of-type {
  padding-top: 0;
  margin-top: 0;
  border-top: 0;
}

.section-body {
  margin-top: 8px;
}

ul {
  margin: 12px 0 0 18px;
  padding: 0;
}

li + li {
  margin-top: 8px;
}

.callout {
  margin-top: 24px;
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(156, 75, 52, 0.08);
  border: 1px solid rgba(156, 75, 52, 0.2);
}

.callout strong {
  display: block;
  margin-bottom: 6px;
  font: 700 0.95rem/1.2 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

@media (max-width: 640px) {
  .page {
    width: min(100% - 24px, 860px);
    padding-top: 20px;
  }

  .hero,
  .legal-card,
  .card-link {
    padding: 20px;
    border-radius: 18px;
  }
}
