.legal-page {
  --legal-copy: #c5cadc;
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  background:
    radial-gradient(ellipse 900px 620px at 78% 0%, #1b1744 0%, #0b1024 48%, transparent 80%),
    var(--page);
}

.legal-page::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 0 auto;
  height: 600px;
  background: radial-gradient(circle, #acbfff55 .75px, transparent 1.2px) 0 0 / 15px 15px;
  opacity: .24;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 100%);
  pointer-events: none;
}

.legal-home {
  color: var(--muted);
  font-size: .875rem;
  font-weight: 600;
  white-space: nowrap;
}

.legal-home:hover,
.legal-footer a[aria-current="page"] {
  color: var(--ink);
}

.legal-content {
  width: min(calc(100% - max(40px, var(--gutter) * 2)), 50rem);
  margin-inline: auto;
  padding-block: clamp(2.75rem, 8vw, 6.5rem) clamp(3.5rem, 8vw, 6rem);
}

.legal-document {
  color: var(--legal-copy);
  font-size: clamp(1rem, .96rem + .2vw, 1.125rem);
  line-height: 1.75;
  overflow-wrap: break-word;
}

.legal-heading {
  margin-bottom: 2.25rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.legal-heading h1 {
  max-width: 19ch;
  margin-bottom: clamp(1.125rem, 2vw, 1.5rem);
  padding-bottom: .16em;
  color: #a5f4ff;
  background: linear-gradient(100deg, #a5f4ff, #77ddf7 52%, #b6a1ff);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: clamp(2rem, 1.25rem + 4.1vw, 3.625rem);
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: 1.04;
  text-wrap: balance;
}

.legal-heading p {
  color: var(--muted);
  font-size: .875rem;
  line-height: 1.65;
}

.legal-document h2 {
  margin: 2.55em 0 .65em;
  color: var(--ink);
  font-size: clamp(1.2rem, 1rem + .7vw, 1.5rem);
  font-weight: 740;
  letter-spacing: -.015em;
  line-height: 1.3;
  text-wrap: pretty;
}

.legal-document > p,
.legal-document > ol {
  margin: .92em 0;
}

.legal-document ol {
  padding-inline-start: 1.55em;
}

.legal-document li + li {
  margin-top: .62em;
}

.legal-document li::marker {
  color: var(--muted);
}

.legal-document strong {
  color: var(--ink);
}

.legal-table {
  margin-block: 1.4em;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0c101e;
  scrollbar-color: #54617a #121626;
}

.legal-table table {
  width: 100%;
  min-width: 43rem;
  border-collapse: collapse;
  font-size: .875em;
  line-height: 1.55;
}

.legal-table :is(th, td) {
  padding: .78em .9em;
  border-inline-end: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: start;
  vertical-align: top;
}

.legal-table :is(th, td):last-child {
  border-inline-end: 0;
}

.legal-table tbody tr:last-child > * {
  border-bottom: 0;
}

.legal-table thead {
  color: var(--ink);
  background: #181d31;
}

.legal-table tbody tr:nth-child(even) {
  background: #101525;
}

.legal-table th[scope="row"] {
  color: var(--ink);
  font-weight: 600;
}

.legal-footer {
  padding-block: 1.7rem;
}

@media (max-width: 700px) {
  .legal-content {
    width: calc(100% - 40px);
  }

  .legal-heading {
    margin-bottom: 1.65rem;
    padding-bottom: 1.15rem;
  }
}
