:root {
  --cream: #f5f0e3;
  --paper: #fffaf0;
  --ink: #102019;
  --green: #073f2c;
  --green-2: #0c5a3e;
  --muted: #59635d;
  --line: rgba(7, 63, 44, 0.18);
  --yellow: #ffc72c;
  color: var(--ink);
  background: var(--cream);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    linear-gradient(rgba(7, 63, 44, 0.035) 1px, transparent 1px),
    var(--cream);
  background-size: 100% 32px;
}

a {
  color: var(--green-2);
}

a:hover,
a:focus-visible {
  color: var(--green);
}

a:focus-visible {
  outline: 3px solid rgba(255, 199, 44, 0.6);
  outline-offset: 3px;
}

.shell {
  width: min(760px, calc(100% - 32px));
  margin-inline: auto;
}

.legal-header {
  border-bottom: 1px solid var(--line);
  background: rgba(245, 240, 227, 0.94);
}

.legal-header .shell {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--green);
  font-size: 0.88rem;
  font-weight: 950;
  line-height: 1;
  text-decoration: none;
}

.wordmark img {
  width: 40px;
  height: 40px;
  border-radius: 7px;
}

.back-link {
  font-size: 0.76rem;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
}

main {
  padding-block: 46px 72px;
}

.legal-intro {
  padding-bottom: 30px;
  border-bottom: 4px solid var(--yellow);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green-2);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

h1,
h2 {
  color: var(--green);
  letter-spacing: 0;
}

h1 {
  margin: 0 0 16px;
  font-size: clamp(2.5rem, 10vw, 4.6rem);
  font-weight: 950;
  line-height: 0.9;
}

h2 {
  margin: 0 0 12px;
  font-size: 1.32rem;
  font-weight: 900;
  line-height: 1.15;
}

p,
li {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.65;
}

.legal-intro > p:last-child {
  max-width: 620px;
  margin-bottom: 0;
  font-size: 1.05rem;
}

.updated {
  display: inline-block;
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.legal-content {
  display: grid;
  gap: 0;
}

.legal-content section {
  padding-block: 28px;
  border-bottom: 1px solid var(--line);
}

.legal-content p:last-child,
.legal-content ul:last-child {
  margin-bottom: 0;
}

.legal-content ul {
  padding-left: 20px;
}

.contact-panel {
  margin-top: 28px;
  padding: 22px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--yellow);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.72);
}

.contact-panel strong,
.contact-panel a {
  color: var(--green);
}

.contact-panel p {
  margin-bottom: 8px;
}

.legal-footer {
  padding-block: 28px 38px;
  border-top: 1px solid var(--line);
}

.legal-footer .shell {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.76rem;
}

.legal-footer p {
  margin: 0;
  font-size: inherit;
}

.legal-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.legal-footer a {
  font-weight: 800;
}

@media (min-width: 720px) {
  .shell {
    width: min(760px, calc(100% - 64px));
  }

  main {
    padding-block: 70px 96px;
  }

  .legal-intro {
    padding-bottom: 40px;
  }

  .legal-content section {
    padding-block: 34px;
  }
}

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