.legal-page {
  background:
    radial-gradient(circle at 12% 8%, rgba(251, 146, 60, .09), transparent 24rem),
    radial-gradient(circle at 88% 18%, rgba(251, 191, 36, .08), transparent 22rem),
    #f8fafc;
}

.legal-shell {
  position: relative;
  max-width: 60rem;
}

.legal-document {
  position: relative;
  overflow: hidden;
  border-color: rgba(226, 232, 240, .9);
  box-shadow: 0 24px 70px -34px rgba(15, 23, 42, .28),
    0 8px 24px -20px rgba(15, 23, 42, .18);
}

.legal-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: -1.5rem -1.5rem 2rem;
  padding: 2rem 1.5rem 1.75rem;
  border-bottom: 1px solid #ffedd5;
  background: linear-gradient(135deg, #fff7ed 0%, #fffbeb 56%, #fff 100%);
}

.legal-hero::before,
.legal-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 999px;
  filter: blur(1px);
}

.legal-hero::before {
  width: 12rem;
  height: 12rem;
  right: -4rem;
  top: -6rem;
  background: rgba(251, 146, 60, .13);
}

.legal-hero::after {
  width: 7rem;
  height: 7rem;
  right: 7rem;
  bottom: -5rem;
  background: rgba(251, 191, 36, .11);
}

.legal-hero > p:first-child {
  display: inline-flex;
  align-items: center;
  min-height: 1.75rem;
  margin: 0;
  padding: .25rem .7rem;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  background: rgba(255, 255, 255, .78);
  color: #ea580c;
  font-size: .75rem;
  letter-spacing: .08em;
}

.legal-hero h1 {
  max-width: 44rem;
  letter-spacing: -.025em;
  line-height: 1.25;
}

.legal-hero h1 + p {
  max-width: 46rem;
  line-height: 1.8;
}

.legal-content {
  display: grid;
  gap: 1rem;
}

.legal-content > :not([hidden]) ~ :not([hidden]) {
  margin-top: 0;
}

.legal-content section {
  position: relative;
  padding: 1.15rem 1.25rem 1.2rem;
  border: 1px solid #e8edf3;
  border-radius: .9rem;
  background: linear-gradient(145deg, #fff 0%, #fdfefe 100%);
  box-shadow: 0 8px 24px -24px rgba(15, 23, 42, .45);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.legal-content section:hover {
  border-color: #fed7aa;
  box-shadow: 0 14px 30px -24px rgba(234, 88, 12, .34);
  transform: translateY(-1px);
}

.legal-content h2 {
  position: relative;
  margin-bottom: .65rem;
  padding-left: 1rem;
  line-height: 1.55;
}

.legal-content h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: .42em;
  width: .28rem;
  height: 1em;
  border-radius: 999px;
  background: linear-gradient(180deg, #fb923c, #f97316);
  box-shadow: 0 0 0 4px #fff7ed;
}

.legal-content p,
.legal-content li {
  color: #526175;
  line-height: 1.95;
  text-align: justify;
  text-justify: inter-ideograph;
}

.legal-content a {
  color: #ea580c;
  text-decoration: underline;
  text-decoration-color: #fed7aa;
  text-underline-offset: .2em;
}

@media (min-width: 640px) {
  .legal-hero {
    margin: -2.5rem -2.5rem 2.25rem;
    padding: 2.6rem 2.5rem 2.25rem;
  }

  .legal-content {
    gap: 1.15rem;
  }

  .legal-content section {
    padding: 1.35rem 1.5rem 1.4rem;
  }
}

@media (max-width: 639px) {
  .legal-shell {
    padding-top: 1.5rem;
    padding-bottom: 1.75rem;
  }

  .legal-document {
    border-radius: 1.15rem;
  }

  .legal-hero h1 {
    font-size: 1.75rem;
  }

  .legal-content h2 {
    font-size: 1rem;
  }

  .legal-content p,
  .legal-content li {
    font-size: .93rem;
    line-height: 1.85;
  }
}

@media (prefers-reduced-motion: reduce) {
  .legal-content section {
    transition: none;
  }

  .legal-content section:hover {
    transform: none;
  }
}
