.legal-copy {
  color: rgb(0 0 0 / 0.7);
  font-size: 1rem;
  line-height: 1.75;
}

.legal-copy h2,
.legal-copy h3,
.legal-copy h4 {
  color: #1d1d1f;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-top: 2.25rem;
}

.legal-copy > h2:first-child {
  margin-top: 0;
}

.legal-copy p {
  margin-block: 1rem;
}

.legal-copy a {
  border-radius: 0.125rem;
  color: #0057d9;
  font-weight: 600;
  text-decoration-color: rgb(0 87 217 / 0.3);
  text-decoration-line: underline;
  text-underline-offset: 4px;
}

.legal-copy a:hover {
  text-decoration-color: currentColor;
}

.legal-copy a:focus-visible {
  box-shadow: 0 0 0 2px #0057d9;
  outline: none;
}

.legal-copy aside {
  background: rgb(255 255 255 / 0.55);
  border: 1px solid rgb(0 0 0 / 0.1);
  border-radius: 0.75rem;
  color: rgb(0 0 0 / 0.75);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.875rem;
  line-height: 1.5rem;
  margin-block: 1.25rem;
  overflow-x: auto;
  padding: 1.25rem;
}

.legal-copy small {
  color: rgb(0 0 0 / 0.5);
}

.legal-copy ol,
.legal-copy ul {
  padding-left: 1.5rem;
}

.legal-copy li {
  margin-block: 0.75rem;
}

.legal-copy > ol {
  counter-reset: legal-section;
  list-style: none;
  padding-left: 0;
}

.legal-copy > ol > li {
  border-top: 1px solid color-mix(in srgb, currentColor 18%, transparent);
  counter-increment: legal-section;
  margin: 0;
  padding-block: 2rem;
}

.legal-copy > ol > li::before {
  color: color-mix(in srgb, currentColor 55%, transparent);
  content: counter(legal-section, decimal-leading-zero);
  display: block;
  font-size: 0.7rem;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  letter-spacing: 0.2em;
  margin-bottom: 0.75rem;
}

.legal-copy ol ol {
  list-style-type: lower-alpha;
}

.legal-copy ol ol ol {
  list-style-type: lower-roman;
}

@media (prefers-color-scheme: dark) {
  .legal-copy {
    color: rgb(255 255 255 / 0.7);
  }

  .legal-copy h2,
  .legal-copy h3,
  .legal-copy h4 {
    color: #f4f3ef;
  }

  .legal-copy a {
    color: #76a9ff;
    text-decoration-color: rgb(118 169 255 / 0.4);
  }

  .legal-copy a:focus-visible {
    box-shadow: 0 0 0 2px #76a9ff;
  }

  .legal-copy aside {
    background: rgb(255 255 255 / 0.05);
    border-color: rgb(255 255 255 / 0.15);
    color: rgb(255 255 255 / 0.75);
  }

  .legal-copy small {
    color: rgb(255 255 255 / 0.5);
  }
}

