:root {
  --bg: #f4efe7;
  --surface: rgba(255, 252, 247, 0.82);
  --surface-strong: #fff9f1;
  --ink: #1c150f;
  --muted: #5f5348;
  --accent: #b2472f;
  --accent-dark: #7e2f1e;
  --line: rgba(28, 21, 15, 0.1);
  --shadow: 0 18px 50px rgba(75, 44, 30, 0.12);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(235, 197, 141, 0.42), transparent 32%),
    radial-gradient(circle at bottom right, rgba(178, 71, 47, 0.18), transparent 28%),
    var(--bg);
}

a {
  color: inherit;
}

.hero,
.section,
.footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  padding: 24px 0 56px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 249, 241, 0.72);
  backdrop-filter: blur(10px);
}

.brand {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.navlinks {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.navlinks a,
.footer-links a {
  text-decoration: none;
  color: var(--muted);
}

.navlinks a:hover,
.footer-links a:hover,
.legal-card:hover h2 {
  color: var(--accent-dark);
}

.hero-content {
  padding: 84px 8px 24px;
  max-width: 780px;
}

.eyebrow {
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  color: var(--accent-dark);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(2.7rem, 8vw, 5.7rem);
  line-height: 0.96;
  margin-bottom: 18px;
}

h2 {
  font-size: clamp(1.55rem, 3vw, 2.3rem);
  line-height: 1.08;
  margin-bottom: 12px;
}

h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

p {
  color: var(--muted);
  line-height: 1.65;
}

.lead {
  font-size: 1.1rem;
  max-width: 62ch;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.button:hover,
.legal-card:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--accent);
  color: #fff;
}

.button.secondary {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
}

.section {
  margin-bottom: 28px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.grid-three {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.card,
.mini-card,
.legal-card {
  padding: 22px;
  border-radius: 22px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 22px;
  align-items: start;
}

.stack {
  display: grid;
  gap: 14px;
}

.notice {
  background: linear-gradient(135deg, rgba(178, 71, 47, 0.08), rgba(255, 249, 241, 0.9));
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.legal-card {
  text-decoration: none;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 0 0 44px;
}

.footer-links {
  display: grid;
  gap: 8px;
  text-align: right;
}

.legal-page {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}

.legal-shell {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.legal-shell h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  margin-bottom: 12px;
}

.legal-shell p,
.legal-shell li {
  color: var(--muted);
  line-height: 1.72;
}

.legal-shell ul {
  padding-left: 20px;
}

.back-link {
  display: inline-block;
  margin-bottom: 20px;
  text-decoration: none;
  color: var(--accent-dark);
  font-weight: 700;
}

@media (max-width: 900px) {
  .grid-three,
  .split,
  .legal-grid,
  .footer {
    grid-template-columns: 1fr;
    display: grid;
  }

  .footer-links {
    text-align: left;
  }
}

@media (max-width: 640px) {
  .topbar {
    border-radius: 24px;
    align-items: flex-start;
  }

  .navlinks,
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .section,
  .legal-shell {
    padding: 24px 18px;
  }
}