:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  background: #f5f1ed;
  color: #1f2420;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.legal-page {
  background: #f5f1ed;
  margin: 0;
  min-width: 320px;
}

a {
  color: #7d422e;
  text-decoration-thickness: .08em;
  text-underline-offset: .16em;
}

a:hover { color: #5e2e22; }

a:focus-visible,
button:focus-visible {
  border-radius: 4px;
  outline: 3px solid #1f2420;
  outline-offset: 3px;
}

.skip-link {
  background: #1f2420;
  border-radius: 999px;
  color: #fff;
  left: 18px;
  padding: 10px 16px;
  position: fixed;
  top: 14px;
  transform: translateY(-160%);
  transition: transform .2s ease;
  z-index: 10;
}

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

.legal-header {
  background: rgba(255, 249, 244, .84);
  border-bottom: 1px solid rgba(31, 36, 32, .1);
}

.legal-header-inner,
.legal-footer-inner {
  align-items: center;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1180px;
  padding: 22px clamp(20px, 5vw, 64px);
}

.legal-brand {
  align-items: center;
  color: #1f2420;
  display: inline-flex;
  font-size: 1.35rem;
  font-weight: 720;
  gap: 8px;
  letter-spacing: -.06em;
  text-decoration: none;
}

.legal-brand img {
  height: 34px;
  object-fit: contain;
  width: 34px;
}

.legal-nav,
.legal-footer-nav {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.legal-nav a,
.legal-footer-nav a {
  color: #4f5751;
  font-size: .92rem;
  font-weight: 600;
}

.legal-nav a[aria-current="page"],
.legal-footer-nav a[aria-current="page"] {
  color: #1f2420;
  text-decoration-color: #ed9560;
  text-decoration-thickness: 2px;
}

.legal-main {
  padding: clamp(52px, 8vw, 94px) 20px clamp(72px, 10vw, 120px);
}

.legal-article {
  background: rgba(255, 255, 255, .8);
  border: 1px solid rgba(31, 36, 32, .1);
  border-radius: 28px;
  box-shadow: 0 20px 70px rgba(61, 42, 29, .08);
  margin: 0 auto;
  max-width: 820px;
  padding: clamp(30px, 6vw, 70px);
}

.legal-kicker {
  color: #7d422e;
  font-size: .78rem;
  font-weight: 750;
  letter-spacing: .14em;
  margin: 0 0 14px;
  text-transform: uppercase;
}

.legal-article h1 {
  color: #1f2420;
  font-size: clamp(2.4rem, 7vw, 4.4rem);
  letter-spacing: -.065em;
  line-height: .97;
  margin: 0;
}

.legal-updated {
  color: #68716b;
  font-size: .9rem;
  margin: 18px 0 0;
}

.legal-lede {
  border-bottom: 1px solid rgba(31, 36, 32, .12);
  color: #4d554f;
  font-size: 1.12rem;
  line-height: 1.6;
  margin: 28px 0 0;
  padding-bottom: 32px;
}

.legal-article section { margin-top: 34px; }

.legal-article h2 {
  color: #1f2420;
  font-size: 1.35rem;
  letter-spacing: -.025em;
  line-height: 1.2;
  margin: 0 0 12px;
}

.legal-article p,
.legal-article li {
  color: #4d554f;
  font-size: 1rem;
  line-height: 1.72;
}

.legal-article p { margin: 0 0 14px; }

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

.legal-article ul {
  margin: 10px 0 16px;
  padding-left: 1.25rem;
}

.legal-article li { margin: 7px 0; padding-left: 4px; }

.legal-article strong { color: #303832; }

.legal-article code {
  background: #eee8e1;
  border-radius: 4px;
  color: #5e2e22;
  font-size: .92em;
  padding: .12em .3em;
}

.legal-footer {
  border-top: 1px solid rgba(31, 36, 32, .1);
}

.legal-footer-inner {
  color: #68716b;
  font-size: .82rem;
  padding-bottom: 34px;
  padding-top: 24px;
}

.legal-footer p { margin: 0; }

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

  .legal-nav,
  .legal-footer-nav { gap: 14px 18px; }

  .legal-main { padding-left: 12px; padding-right: 12px; }

  .legal-article {
    border-radius: 20px;
    padding: 28px 22px 34px;
  }

  .legal-article p,
  .legal-article li { font-size: .96rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .skip-link { transition: none; }
}
