:root {
  --color-background: #f7f4ee;
  --color-surface: #fffdf9;
  --color-text: #26251f;
  --color-muted: #6f6a5d;
  --color-accent: #6f7f69;
  --color-accent-soft: #dce4d8;
  --color-border: #e6dfd2;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  color-scheme: light;
}

body {
  min-height: 100vh;
  margin: 0;
  background: linear-gradient(135deg, #f7f4ee 0%, #f8fbfb 100%);
  color: var(--color-text);
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration-color: rgba(111, 127, 105, 0.48);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.24em;
  transition:
    color 160ms ease,
    text-decoration-color 160ms ease;
}

a:hover {
  color: var(--color-accent);
  text-decoration-color: currentColor;
}

a:focus-visible {
  outline: 3px solid var(--color-accent-soft);
  outline-offset: 4px;
  border-radius: 4px;
}

.page {
  display: grid;
  min-height: 100vh;
  grid-template-rows: 1fr auto;
  padding: clamp(1.25rem, 4vw, 3rem);
}

.main-content {
  width: min(100%, 44rem);
  align-self: center;
  justify-self: center;
  padding: clamp(2.5rem, 8vw, 5.5rem) clamp(1.5rem, 6vw, 4rem);
  text-align: center;
}

.main-content::before {
  display: block;
  width: 4.5rem;
  height: 1px;
  margin: 0 auto 2rem;
  background: var(--color-accent-soft);
  content: "";
}

.eyebrow {
  margin: 0 0 1.35rem;
  color: var(--color-accent);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(3rem, 10vw, 5.8rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.98;
}

.subtitle {
  max-width: 34rem;
  margin: 1.25rem auto 0;
  color: var(--color-muted);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(1rem, 2.2vw, 1.18rem);
  line-height: 1.7;
}

.contact {
  margin-top: 2.4rem;
  color: var(--color-text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.98rem;
  font-style: normal;
}

.site-footer {
  justify-self: center;
  padding-top: 2rem;
  color: var(--color-muted);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.9rem;
}

.legal-page {
  background: var(--color-background);
}

.legal-shell {
  width: min(100%, 46rem);
  margin: 0 auto;
  padding: clamp(2rem, 7vw, 5rem) clamp(1.25rem, 5vw, 2rem);
}

.legal-nav {
  margin-bottom: clamp(2rem, 6vw, 4rem);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.95rem;
}

.legal-content {
  padding: clamp(1.5rem, 5vw, 3rem);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-surface);
}

.legal-content h1 {
  font-size: clamp(2.35rem, 7vw, 4rem);
}

.legal-content h2 {
  margin: 2rem 0 0.4rem;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: 0;
}

.legal-content p {
  margin: 0.85rem 0 0;
  color: var(--color-muted);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

@media (max-width: 42rem) {
  .page {
    padding: 1rem;
  }

  .main-content {
    padding-block: 3.25rem;
  }

  .contact {
    display: grid;
    gap: 0.2rem;
  }
}
