.legal-body {
  min-height: 100svh;
  background: #f5f3ed;
}

.legal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 120px;
  padding: 1.2rem clamp(1.25rem, 6vw, 6rem);
  border-bottom: 1px solid rgba(43, 47, 96, 0.12);
  background: white;
}

.legal-header .brand {
  width: clamp(170px, 17vw, 240px);
}

.back-link {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  color: #2b2f60;
  font-size: 0.8rem;
  font-weight: 750;
  text-decoration: none;
}

.back-link:hover {
  text-decoration: underline;
  text-underline-offset: 0.25rem;
}

.legal-main {
  display: grid;
  width: min(1240px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 8rem) 0;
  gap: clamp(2rem, 8vw, 8rem);
  grid-template-columns: 220px minmax(0, 760px);
}

.legal-nav {
  position: sticky;
  top: 2rem;
  display: flex;
  align-self: start;
  flex-direction: column;
  gap: 0.8rem;
}

.legal-nav p {
  margin: 0 0 0.8rem;
  color: #bba651;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.legal-nav a {
  color: #727587;
  font-size: 0.88rem;
  text-decoration: none;
}

.legal-nav a:hover {
  color: #2b2f60;
}

.legal-content section {
  padding-bottom: clamp(4rem, 8vw, 7rem);
  scroll-margin-top: 2rem;
}

.legal-content section + section {
  padding-top: clamp(4rem, 8vw, 7rem);
  border-top: 1px solid rgba(43, 47, 96, 0.14);
}

.legal-content h1 {
  margin: 0 0 3rem;
  font-size: clamp(3.2rem, 7vw, 6.8rem);
}

.legal-content h2 {
  margin: 2.4rem 0 0.65rem;
  color: #2b2f60;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.legal-content p:not(.eyebrow) {
  margin: 0 0 1.25rem;
  color: #626578;
  font-size: 0.95rem;
  line-height: 1.82;
}

.legal-content a {
  color: #2b2f60;
  text-decoration-color: rgba(43, 47, 96, 0.3);
  text-underline-offset: 0.2rem;
}

.legal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 90px;
  padding: 1rem clamp(1.25rem, 6vw, 6rem);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  background: #2b2f60;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.75rem;
}

.legal-footer a {
  color: white;
  text-decoration: none;
}

@media (max-width: 760px) {
  .legal-header {
    min-height: 96px;
  }

  .legal-header .brand {
    width: 155px;
  }

  .back-link {
    font-size: 0;
  }

  .back-link span {
    display: grid;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(43, 47, 96, 0.14);
    border-radius: 50%;
    font-size: 1rem;
    place-items: center;
  }

  .legal-main {
    grid-template-columns: 1fr;
  }

  .legal-nav {
    position: static;
    flex-flow: row wrap;
    gap: 1rem;
  }

  .legal-nav p {
    width: 100%;
  }

  .legal-content h1 {
    margin-bottom: 2.2rem;
  }
}
