.legal-template {
  background: #fff;
}

.legal-shell {
  width: var(--shell);
  margin-inline: auto;
}

.legal-header {
  position: sticky;
  z-index: 80;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 16px max(24px, calc((100vw - 1480px) / 2));
  border-bottom: 1px solid rgba(226, 226, 220, 0.92);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
}

.legal-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 800;
}

.legal-nav a {
  text-decoration: none;
  transition: color 0.18s ease;
}

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

.legal-hero {
  position: relative;
  overflow: hidden;
  padding-block: 118px 72px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 84% 18%, rgba(45, 122, 95, 0.14), transparent 34%),
    linear-gradient(180deg, #fff 0%, #f6fbf8 100%);
}

.legal-hero::after {
  position: absolute;
  right: -8vw;
  bottom: -38%;
  width: min(520px, 36vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(45, 122, 95, 0.06);
  content: "";
}

.legal-eyebrow {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--green-light);
  color: var(--green-dark);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.legal-hero h1 {
  max-width: 780px;
  margin-bottom: 18px;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(3.8rem, 8vw, 7.2rem);
  font-weight: 400;
  line-height: 0.94;
}

.legal-hero p:not(.legal-eyebrow) {
  max-width: 780px;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.35vw, 1.22rem);
  line-height: 1.58;
}

.legal-hero span {
  color: var(--green-dark);
  font-size: 0.9rem;
  font-weight: 900;
}

.legal-content {
  width: min(100% - 48px, 920px);
  margin-inline: auto;
  padding-block: 66px 92px;
}

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

.legal-content section:first-child {
  padding-top: 0;
}

.legal-content h2 {
  margin-bottom: 12px;
  color: var(--ink);
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(2rem, 3.6vw, 3rem);
  font-weight: 400;
  line-height: 1;
}

.legal-content p,
.legal-content li {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.72;
}

.legal-content p {
  margin-bottom: 14px;
}

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

.legal-content ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 1.2rem;
}

.legal-content a {
  color: var(--green-dark);
  font-weight: 900;
}

.legal-callout {
  margin-top: 32px;
  padding: 28px !important;
  border: 1px solid rgba(45, 122, 95, 0.18) !important;
  border-radius: 18px;
  background: var(--green-soft);
}

.legal-footer {
  padding-block: 42px;
  background: #151716;
  color: rgba(255, 255, 255, 0.58);
}

.legal-footer .legal-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.legal-footer img {
  width: 146px;
  height: auto;
}

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

.legal-footer a {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.9rem;
  text-decoration: none;
}

.legal-footer a:hover,
.legal-footer a:focus-visible {
  color: #fff;
}

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

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

  .legal-header {
    gap: 14px;
    min-height: 0;
  }

  .legal-nav {
    flex-wrap: wrap;
    gap: 12px 18px;
  }

  .legal-hero {
    padding-block: 72px 50px;
  }

  .legal-content {
    width: min(100% - 32px, 920px);
    padding-block: 46px 68px;
  }

  .legal-callout {
    padding: 22px !important;
  }
}
