/* Shared by the public marketing shell and the authenticated CRM shell. */
.marketing-content-article--legal {
  width: min(100%, 920px);
  color: var(--color-text);
}

.marketing-content-article--legal > h1 {
  margin: 0 0 24px;
  color: var(--color-text-strong);
  font-size: clamp(1.78rem, 5vw, 2.55rem);
  line-height: 1.1;
}

.legal-richtext {
  overflow-wrap: anywhere;
  font-size: 1rem;
  line-height: 1.72;
}

.legal-richtext p {
  margin: 0 0 1rem;
}

.legal-toc {
  margin: 2rem 0 3.25rem;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: var(--color-surface-muted);
  scroll-margin-top: 24px;
}

.legal-richtext .legal-toc h2 {
  margin: 0 0 1rem;
  padding: 0;
  border: 0;
}

.legal-richtext .legal-toc ol {
  margin: 0;
  padding-left: 1.35rem;
}

.legal-richtext .legal-toc ol ol {
  margin-top: .55rem;
}

.legal-richtext .legal-toc li + li {
  margin-top: .4rem;
}

.legal-toc a,
.legal-toc-return a {
  text-underline-offset: .16em;
}

.legal-richtext .legal-toc-return {
  margin: 1.3rem 0 0;
  font-size: .94rem;
}

.legal-richtext h2 {
  margin: 3.25rem 0 .85rem;
  padding-top: 1.65rem;
  border-top: 1px solid var(--color-border);
  color: var(--color-text-strong);
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  line-height: 1.25;
  scroll-margin-top: 24px;
}

.legal-richtext h3 {
  margin: 2.15rem 0 .7rem;
  color: var(--color-text-strong);
  font-size: clamp(1.1rem, 2.4vw, 1.28rem);
  line-height: 1.3;
  scroll-margin-top: 24px;
}

.legal-richtext h2 + p,
.legal-richtext h3 + p {
  margin-top: 0;
}

.legal-richtext ul,
.legal-richtext ol {
  margin: .65rem 0 1.4rem;
  padding-left: 1.55rem;
  color: var(--color-text);
  font-size: inherit;
  line-height: inherit;
}

.legal-richtext li {
  padding-left: .25rem;
}

.legal-richtext li + li {
  margin-top: .55rem;
}

.legal-richtext li::marker {
  color: var(--color-primary);
}

.legal-richtext hr {
  margin: 4rem 0 0;
  border: 0;
}

.legal-table-scroll {
  max-width: 100%;
  margin: 1rem 0 1.75rem;
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: var(--color-surface);
  -webkit-overflow-scrolling: touch;
}

.legal-table-scroll:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.legal-richtext .legal-table-scroll table {
  width: 100%;
  min-width: 680px;
  margin: 0;
  border: 0;
  border-collapse: separate;
  border-spacing: 0;
  font-size: .94rem;
  line-height: 1.55;
}

.legal-richtext .legal-table-scroll th,
.legal-richtext .legal-table-scroll td {
  padding: 12px 14px;
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  vertical-align: top;
}

.legal-richtext .legal-table-scroll th {
  background: var(--color-surface-muted);
  color: var(--color-text-strong);
  font-weight: 700;
}

.legal-richtext .legal-table-scroll th:last-child,
.legal-richtext .legal-table-scroll td:last-child {
  border-right: 0;
}

.legal-richtext .legal-table-scroll tbody tr:last-child td {
  border-bottom: 0;
}

.marketing-content-article--legal .marketing-content-version {
  margin: 28px 0 0;
  color: var(--color-text-muted);
}
