@font-face {
  font-family: "STIX Two Text";
  src: url("fonts/stix-two-text-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #202420;
  --body: #374039;
  --accent: #b7cd4f;
  --accent-dark: #78942e;
  --rule: #d1d8cd;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  color: var(--ink);
  background: #fff;
  font-family: "STIX Two Text", Georgia, "Times New Roman", serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-padding-top: 1rem;
}

body {
  min-width: 320px;
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.55;
}

a {
  color: #374d20;
  text-decoration-color: var(--accent-dark);
  text-underline-offset: 0.19em;
  text-decoration-thickness: 1px;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid #365e7d;
  outline-offset: 4px;
}

::selection {
  color: #162115;
  background: #d8e69c;
}

h1,
h2,
p {
  margin: 0;
}

h1,
h2 {
  color: var(--ink);
  font-weight: 650;
}

.legal-frame {
  width: min(100%, 88rem);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  top: 0.5rem;
  left: var(--gutter);
  z-index: 2;
  padding: 0.65rem 0.9rem;
  transform: translateY(-160%);
  border: 1px solid var(--ink);
  background: white;
}

.skip-link:focus {
  transform: translateY(0);
}

.legal-header {
  border-bottom: 1px solid #e8eeec;
  background: #fff;
}

.header-layout {
  display: flex;
  min-height: 5.5rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.wordmark {
  color: #1d211f;
  font-size: clamp(1.8rem, 3.2vw, 2.7rem);
  font-weight: 660;
  letter-spacing: -0.046em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.wordmark::after {
  display: block;
  width: 2.2em;
  height: 0.1em;
  margin-top: 0.12em;
  background: var(--accent);
  content: "";
}

.home-link {
  display: inline-block;
  min-height: 2.75rem;
  padding-block: 0.4rem;
  font-weight: 600;
}

.legal-main {
  padding-block: clamp(3rem, 6vw, 5.5rem) clamp(4rem, 8vw, 7rem);
}

.legal-document {
  max-width: 52rem;
  margin-inline: auto;
  color: var(--body);
}

.legal-document h1 {
  margin-bottom: 0.24em;
  font-size: clamp(2.55rem, 5vw, 4.2rem);
  letter-spacing: -0.045em;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.last-updated {
  margin-bottom: 1.7rem;
  color: #596259;
  font-size: 1rem;
}

.legal-document > p:not(.last-updated) {
  margin-bottom: 1.5rem;
}

.legal-document section {
  margin-top: 1.8rem;
}

.legal-document h2 {
  margin-bottom: 0.35em;
  font-size: clamp(1.45rem, 2.7vw, 1.8rem);
  letter-spacing: -0.025em;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.legal-document section p + p {
  margin-top: 0.85rem;
}

.legal-document address {
  color: var(--body);
  font-style: normal;
}

.legal-footer {
  border-top: 1px solid var(--rule);
  background: #f7f9f5;
}

.footer-layout {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 2rem;
  padding-block: 1.75rem;
}

.policy-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.policy-links a[aria-current="page"] {
  color: var(--ink);
  font-weight: 650;
  text-decoration-thickness: 2px;
}

@media (max-width: 42rem) {
  body {
    font-size: 1.05rem;
  }

  .header-layout {
    min-height: 4.6rem;
  }

  .legal-main {
    padding-block: 2.5rem 4rem;
  }

  .last-updated {
    margin-bottom: 1.4rem;
  }

  .legal-document section {
    margin-top: 1.55rem;
  }

  .footer-layout {
    flex-direction: column;
    gap: 0.85rem;
  }

  .policy-links {
    display: grid;
    gap: 0.35rem;
  }
}
