:root {
  color-scheme: light;
  --paper: #f4efe4;
  --panel: #fffaf0;
  --ink: #1f2a24;
  --muted: #5d675f;
  --line: #d8ccb9;
  --link: #087272;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.62;
}

a {
  color: var(--link);
  text-underline-offset: 0.18em;
}

a:focus-visible,
[tabindex="-1"]:focus-visible {
  outline: 3px solid #f2b84b;
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  transform: translateY(-200%);
  border-radius: 6px;
  padding: 0.7rem 0.9rem;
  background: #111827;
  color: #fff;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-weight: 800;
}

.skip-link:focus {
  transform: translateY(0);
}

.legal-header,
.legal-footer {
  display: flex;
  width: min(936px, calc(100% - 36px));
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: ui-sans-serif, system-ui, sans-serif;
}

.legal-header {
  padding: 1rem 0;
}

.legal-brand img {
  display: block;
  width: 150px;
  height: auto;
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem 1rem;
  font-size: 0.92rem;
  font-weight: 750;
}

main {
  width: min(936px, calc(100% - 36px));
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(1.25rem, 4vw, 2rem);
  background: var(--panel);
}

h1,
h2 {
  line-height: 1.15;
}

h1 {
  margin-top: 0;
  font-size: clamp(2rem, 5vw, 3rem);
}

h2 {
  margin-top: 2rem;
  border-top: 1px solid #e4d8c7;
  padding-top: 1.25rem;
}

.effective {
  color: var(--muted);
  font-weight: 700;
}

.legal-footer {
  padding: 1.25rem 0 2.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.legal-footer p {
  margin: 0;
}

@media (max-width: 640px) {
  .legal-header,
  .legal-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .legal-nav {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
