:root {
  --background: #faf7f2;
  --foreground: #1c1917;
  --muted: #78716c;
  --burgundy: #722f37;
  --burgundy-hover: #5c262d;
  --gold: #8b6914;
  --border: #e8e0d5;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  background: radial-gradient(circle at 20% 0%, rgba(139, 105, 20, 0.1), transparent 40%), var(--background);
  color: var(--foreground);
}

.bg-glow {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 90% 10%, rgba(114, 47, 55, 0.14), transparent 35%);
  pointer-events: none;
  z-index: 0;
}

.page {
  position: relative;
  z-index: 1;
  width: min(92vw, 960px);
  margin: 0 auto;
  min-height: 100vh;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.topbar {
  padding: 0;
}

.logo {
  height: auto;
  width: clamp(180px, 35vw, 280px);
}

.tagline {
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 380px;
}

.eyebrow {
  margin: 0;
  color: var(--gold);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

a.eyebrow {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 0;
}

a.eyebrow:visited {
  color: var(--gold);
}

a.eyebrow:hover {
  color: var(--gold);
  border-bottom: 1px solid currentColor;
}

.site-footer {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  white-space: nowrap;
}

.footer-divider {
  width: 1px;
  height: 1rem;
  background: rgba(139, 105, 20, 0.45);
}

/* Legal pages (Terms, Privacy) */

.legal-page {
  position: relative;
  z-index: 1;
  width: min(92vw, 760px);
  margin: 0 auto;
  padding: 2rem 0 4rem;
}

.legal-topbar {
  margin-bottom: 2rem;
}

.legal-logo {
  height: auto;
  width: clamp(120px, 22vw, 180px);
}

.back-link {
  display: inline-block;
  font-size: 0.9rem;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 2rem;
  transition: color 0.2s;
}

.back-link:hover {
  color: var(--foreground);
}

.legal-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--foreground);
  margin: 0 0 0.5rem;
}

.legal-updated {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0 0 2.5rem;
}

.legal-section {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  background: rgba(255, 255, 255, 0.4);
}

.legal-section h2 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--foreground);
  margin: 0 0 1rem;
}

.legal-section h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--foreground);
  margin: 1.5rem 0 0.5rem;
}

.legal-section h3:first-of-type {
  margin-top: 0.5rem;
}

.legal-section p {
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 0.75rem;
}

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

.legal-section ul {
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 0.75rem;
  padding-left: 1.5rem;
}

.legal-section li {
  margin-bottom: 0.35rem;
}

.legal-section strong {
  color: var(--foreground);
}

.legal-section a {
  color: var(--burgundy);
  text-decoration: none;
}

.legal-section a:hover {
  text-decoration: underline;
}

.contact-box {
  margin-top: 1rem;
  padding: 1rem 1.25rem;
  border-radius: 8px;
  background: rgba(139, 105, 20, 0.06);
}

.contact-box p {
  margin: 0 0 0.25rem;
}

.contact-box .contact-name {
  font-weight: 600;
  color: var(--foreground);
}

.legal-footer-links {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
}

.legal-footer-links a {
  font-size: 0.9rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.legal-footer-links a:hover {
  color: var(--burgundy);
}

@media (max-width: 640px) {
  .eyebrow {
    font-size: 0.82rem;
  }

  .site-footer {
    bottom: 1.5rem;
    gap: 0.65rem;
  }

  .legal-title {
    font-size: 1.6rem;
  }

  .legal-section {
    padding: 1.25rem;
  }
}
