.legal-hero {
  padding-top: 72px;
  padding-bottom: 60px;
  background: #efefeb;
  border-bottom: 1px solid var(--line);
}

.legal-hero > p:first-child {
  margin-bottom: 24px;
  font-size: .875rem;
}

.legal-hero h1 {
  font-size: clamp(3.5rem, 7vw, 7.25rem);
  margin-bottom: 28px;
}

.legal-lead {
  max-width: 56ch;
  color: #4d4d48;
  font-size: 1.125rem;
  line-height: 1.6;
}

.legal-date {
  margin-top: 32px;
  color: #666661;
  font-size: .875rem;
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(0, 760px);
  gap: clamp(40px, 7vw, 110px);
  align-items: start;
  justify-content: space-between;
  padding-top: 72px;
  padding-bottom: 100px;
}

.legal-index {
  position: sticky;
  top: 125px;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line);
}

.legal-index a {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: .875rem;
  line-height: 1.5;
}

.legal-index a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.legal-document section {
  scroll-margin-top: 125px;
  margin-bottom: 46px;
}

.legal-document section:last-child {
  margin-bottom: 0;
}

.legal-document h2 {
  font-size: clamp(1.65rem, 2.3vw, 2.25rem);
  line-height: 1.15;
  margin-bottom: 22px;
  letter-spacing: -.035em;
}

.legal-document p {
  font-size: 1rem;
  line-height: 1.85;
  max-width: none;
  margin-top: 16px;
  overflow-wrap: anywhere;
}

.legal-document a {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

.legal-document a:hover {
  text-decoration-thickness: 2px;
}

.legal-table-wrap {
  margin-top: 26px;
  max-width: 100%;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: .875rem;
  line-height: 1.65;
  table-layout: fixed;
}

.legal-table caption {
  text-align: left;
  margin-bottom: 12px;
  font-size: 1rem;
  font-weight: 500;
}

.legal-table th,
.legal-table td {
  vertical-align: top;
  border-top: 1px solid #c6c6bf;
  padding: 16px 14px 16px 0;
  overflow-wrap: anywhere;
  font-weight: 400;
}

.legal-table thead th {
  font-weight: 600;
}

.legal-table th:first-child {
  width: 25%;
}

.legal-table th span {
  display: block;
  color: #666661;
  margin-top: 6px;
}

.legal-table code {
  font-size: .875rem;
}

@media (max-width: 850px) {
  .legal-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }

  .legal-index {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 24px;
  }
}

@media (max-width: 520px) {
  .legal-hero {
    padding-top: 44px;
    padding-bottom: 40px;
  }

  .legal-hero h1 {
    font-size: clamp(2.65rem, 11.2vw, 3.5rem);
  }

  .legal-lead {
    font-size: 1rem;
  }

  .legal-layout {
    padding-top: 38px;
    padding-bottom: 64px;
  }

  .legal-index {
    grid-template-columns: minmax(0, 1fr);
  }

  .legal-table {
    font-size: .875rem;
  }

  .legal-table th,
  .legal-table td {
    padding-right: 10px;
  }

  .legal-table th:first-child {
    width: 29%;
  }
}
