.legal-body {
  background: var(--paper-light);
}

.legal-body .site-header {
  color: var(--ink);
  background: #fff;
  border-color: rgba(17, 17, 17, 0.1);
}

.legal-body .site-header.scrolled {
  color: var(--ink);
  background: #fff;
  border-color: rgba(17, 17, 17, 0.12);
}

.legal-hero {
  position: relative;
  display: flex;
  min-height: 72svh;
  align-items: end;
  overflow: hidden;
  padding: 10rem 5vw 5rem;
  color: var(--paper-light);
  background: var(--ink);
}

.legal-hero::before,
.legal-hero::after {
  position: absolute;
  content: "";
  border: 1px solid rgba(232, 228, 220, 0.11);
  transform: rotate(17deg);
}

.legal-hero::before {
  top: -16vw;
  right: 7vw;
  width: 42vw;
  height: 42vw;
}

.legal-hero::after {
  top: 4vw;
  right: -11vw;
  width: 42vw;
  height: 42vw;
}

.legal-hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
}

.legal-kicker {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 3rem;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.legal-kicker span {
  color: #d71942;
}

.legal-hero h1 {
  max-width: 76rem;
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: clamp(4.2rem, 10.5vw, 11rem);
  font-weight: 300;
  letter-spacing: -0.075em;
  line-height: 0.82;
}

.legal-hero h1 em {
  font-family: Georgia, serif;
  font-weight: 400;
}

.legal-hero__meta {
  display: flex;
  justify-content: space-between;
  margin-top: 4rem;
  padding-top: 1.5rem;
  color: rgba(232, 228, 220, 0.55);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-top: 1px solid rgba(232, 228, 220, 0.2);
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(13rem, 22vw) minmax(0, 50rem);
  gap: 8vw;
  align-items: start;
  justify-content: center;
  padding: 8rem 5vw 11rem;
}

.legal-toc {
  position: sticky;
  top: 7rem;
}

.legal-toc > span {
  display: block;
  margin-bottom: 2rem;
  color: var(--brand-red);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.legal-toc nav {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.legal-toc a {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.5rem;
  padding: 1rem 0;
  color: rgba(23, 23, 19, 0.55);
  font-size: 0.72rem;
  line-height: 1.4;
  border-bottom: 1px solid var(--line);
  transition: color 0.25s ease, padding 0.35s var(--ease);
}

.legal-toc a:hover {
  padding-left: 0.5rem;
  color: var(--ink);
}

.legal-toc a span {
  color: var(--brand-red);
}

.legal-content {
  min-width: 0;
}

.legal-content > h2,
.legal-content > h3 {
  scroll-margin-top: 8rem;
}

.legal-content > h2,
.legal-content > h3 {
  margin: 7rem 0 2rem;
  padding-top: 2rem;
  font-family: "Manrope", sans-serif;
  font-size: clamp(2.35rem, 4.5vw, 4.8rem);
  font-weight: 300;
  letter-spacing: -0.055em;
  line-height: 1;
  border-top: 1px solid var(--ink);
}

.legal-content > h2:first-child,
.legal-content > h3:first-child {
  margin-top: 0;
}

.legal-content h4 {
  margin: 3.2rem 0 1rem;
  font-family: "Manrope", sans-serif;
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.025em;
}

.legal-content p,
.legal-content li {
  color: rgba(23, 23, 19, 0.68);
  font-size: 0.94rem;
  line-height: 1.85;
}

.legal-content p {
  margin: 0 0 1.2rem;
}

.legal-content ul {
  padding-left: 1.2rem;
  margin: 1rem 0 2rem;
}

.legal-content strong {
  color: var(--ink);
  font-weight: 600;
}

.legal-content a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--brand-red);
  text-underline-offset: 0.2em;
  overflow-wrap: anywhere;
}

.legal-card {
  padding: 2.3rem;
  margin: 2rem 0 4rem;
  color: var(--paper-light);
  background: var(--brand-red);
}

.legal-card h2,
.legal-card h3,
.legal-card h4,
.legal-card p,
.legal-card a,
.legal-card strong {
  color: inherit;
}

.legal-card h2 {
  margin: 0 0 1.5rem;
  font: 300 2rem/1.1 "Manrope", sans-serif;
}

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

.legal-facts {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  border-top: 1px solid var(--line);
}

.legal-facts dt,
.legal-facts dd {
  padding: 1rem 0;
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.6;
  border-bottom: 1px solid var(--line);
}

.legal-facts dt {
  color: rgba(23, 23, 19, 0.48);
}

.legal-page-switch {
  display: flex;
  justify-content: space-between;
  padding: 2.2rem 5vw;
  color: var(--paper);
  font-size: 0.68rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  background: var(--brand-red);
}

.legal-page-switch a:last-child {
  text-align: right;
}

@media (max-width: 900px) {
  .legal-hero {
    min-height: 62svh;
    padding: 9rem 1.3rem 3rem;
  }

  .legal-hero h1 {
    font-size: clamp(4rem, 20vw, 7rem);
  }

  .legal-hero__meta {
    gap: 1rem;
    line-height: 1.5;
  }

  .legal-layout {
    grid-template-columns: 1fr;
    gap: 4rem;
    padding: 5rem 1.3rem 7rem;
  }

  .legal-toc {
    position: static;
  }

  .legal-toc nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .legal-toc a:nth-child(odd) {
    padding-right: 1rem;
    border-right: 1px solid var(--line);
  }

  .legal-toc a:nth-child(even) {
    padding-left: 1rem;
  }

  .legal-content > h2,
  .legal-content > h3 {
    margin-top: 5rem;
    font-size: clamp(2.3rem, 11vw, 4rem);
  }

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

  .legal-facts dt {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .legal-facts dd {
    padding-top: 0.25rem;
  }
}
