/**
 * Legal family — privacy / terms document chrome.
 * Layer B. Linked only from those pages via LegalDocStyles / RouteStylesheet.
 *
 * Markup: .bp-legal-doc + .bp-legal-doc__container
 */

:is(.bp-legal-doc, .bp_fn_roadmappage.bp-legal-doc, .bp_fn_single.bp-legal-doc) {
  background: #f5f7fb;
  padding: calc(88px + 28px) 0 72px;
  color: #253045;
}

@media (max-width: 768px) {
  :is(.bp-legal-doc, .bp_fn_roadmappage.bp-legal-doc, .bp_fn_single.bp-legal-doc) {
    padding: calc(76px + 20px) 0 56px;
  }
}

.bp-legal-doc__container {
  max-width: 52rem;
}

.bp-legal-doc__container > * {
  color: inherit;
}

/* Beat global marketing heading tokens (h1–h4 use --bp-heading-*) */
.bp-legal-doc h1,
.bp-legal-doc h2,
.bp-legal-doc h3,
.bp-legal-doc h4 {
  font-family: var(--hff, var(--font-dm-sans), "DM Sans", sans-serif);
  letter-spacing: -0.01em;
  color: #111827;
  font-weight: 500;
}

.bp-legal-doc h1 {
  font-size: clamp(1.65rem, 2.4vw, 1.9rem) !important;
  line-height: 1.2;
  font-weight: 600;
  margin: 0 0 0.65rem;
}

.bp-legal-doc h2 {
  font-size: clamp(1.1rem, 1.5vw, 1.2rem) !important;
  line-height: 1.35;
  font-weight: 500;
  margin: 2rem 0 0.65rem;
  padding-top: 0.35rem;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.bp-legal-doc h2:first-of-type {
  border-top: none;
  padding-top: 0;
}

.bp-legal-doc h3 {
  font-size: 1.02rem !important;
  line-height: 1.4;
  font-weight: 500;
  margin: 1.35rem 0 0.45rem;
}

.bp-legal-doc h4 {
  font-size: 0.95rem !important;
  line-height: 1.4;
  font-weight: 500;
  margin: 1.1rem 0 0.4rem;
}

.bp-legal-doc p,
.bp-legal-doc li {
  font-size: 0.9375rem !important;
  line-height: 1.7;
  color: #334155;
}

.bp-legal-doc p {
  margin: 0 0 0.9rem;
}

/* “Last updated” sits directly under the title */
.bp-legal-doc__container > h1 + p {
  font-size: 0.8125rem !important;
  line-height: 1.45;
  color: #64748b;
  margin-bottom: 1.35rem;
}

.bp-legal-doc ul {
  margin: 0.25rem 0 1rem;
  padding-left: 1.15rem;
}

.bp-legal-doc li {
  margin-bottom: 0.4rem;
}

.bp-legal-doc li > p {
  margin-bottom: 0.35rem;
  font-size: inherit !important;
}

.bp-legal-doc a {
  color: #5b57d9;
  text-decoration: underline;
  text-underline-offset: 2px;
  overflow-wrap: anywhere;
}

.bp-legal-doc a:hover {
  color: #4943c7;
}
