.legal-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 760px);
  justify-content: space-between;
  gap: 70px;
  padding-block: 65px 90px;
}
.legal-layout aside {
  align-self: start;
  position: sticky;
  top: 140px;
}
.legal-layout aside nav {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}
.legal-layout aside nav a {
  font-size: 14px;
  padding: 12px 15px;
  border-radius: 8px;
}
.legal-layout aside nav a[aria-current] {
  background: var(--pale);
  color: var(--green);
  font-weight: 700;
}
.legal-updated {
  font-size: 12px;
  line-height: 1.9;
  color: var(--muted);
  margin: 30px 15px 0;
}
.legal-heading {
  border-bottom: 1px solid var(--line);
  padding-bottom: 35px;
  margin-bottom: 40px;
}
.legal-heading h1 {
  font-size: clamp(34px, 4vw, 54px);
  letter-spacing: -2px;
  line-height: 1.15;
  margin-bottom: 20px;
}
.legal-heading p {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.8;
}
.legal-layout article section {
  margin: 0 0 35px;
  scroll-margin-top: 130px;
}
.legal-layout article h2 {
  font-size: 21px;
  line-height: 1.5;
  margin-bottom: 12px;
}
.legal-layout article h2 span {
  color: var(--sage);
  font-size: 12px;
  letter-spacing: 1px;
  display: inline-block;
  width: 30px;
  vertical-align: middle;
}
.legal-layout article section p {
  font-size: 15px;
  line-height: 1.95;
  color: var(--muted);
}
.legal-layout article a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
}
.legal-contact {
  padding: 28px;
  border-radius: 16px;
  background: #e8eddf;
  line-height: 1.8;
}
footer {
  flex-wrap: wrap;
}
footer > a:not(.brand) {
  font-size: 12px;
}
@media (max-width: 800px) {
  .legal-layout {
    grid-template-columns: 1fr;
    gap: 35px;
    padding-block: 35px 60px;
  }
  .legal-layout aside {
    position: static;
  }
  .legal-layout aside nav {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-top: 15px;
  }
  .legal-layout aside nav a {
    font-size: 12px;
    padding: 10px;
  }
  .legal-updated {
    margin: 15px 0 0;
  }
  .legal-updated br {
    display: none;
  }
  .legal-heading {
    margin-bottom: 28px;
  }
  .site-header .text-link {
    display: none;
  }
}
