/* ==========================================================================
   Mapvera legal / policy pages
   On-brand look: purple map-grid background (like the form pages), Outfit type,
   a badge + gradient hero heading, with the long legal text kept in a readable
   white "document card". Ported content reuses the corporate structural class
   names (.solidco-legal-body, .solidco-table, .i1…) which this file re-skins.
   ========================================================================== */

/* Purple map-grid backdrop + brand font. Reset the default body margin so the
   full-width nav/footer touch the edges like every other public page. */
body.legal-page {
  margin: 0;
  font-family: "Outfit", system-ui, sans-serif;
  color: #fff;
  background-color: #6523d0;
  background-image:
    radial-gradient(1000px 560px at 82% -8%, rgba(139, 59, 240, .55), rgba(139, 59, 240, 0) 60%),
    radial-gradient(900px 520px at 0% 100%, rgba(34, 211, 238, .16), rgba(34, 211, 238, 0) 55%),
    linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 46px 46px, 46px 46px;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  /* No text-caret / selection I-beam on these pages (matches the auth pages);
     interactive elements get the pointer below. */
  cursor: default;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
body.legal-page a,
body.legal-page button,
body.legal-page summary,
body.legal-page [data-solidified-chat-open] { cursor: pointer; }

.legal {
  position: relative;
  z-index: 1;
  max-width: 940px;
  margin: 0 auto;
  padding: 116px 1.1rem 4rem; /* room for the fixed site nav */
}

/* Breadcrumb ------------------------------------------------------------- */
.legal__crumb {
  font-size: .82rem;
  color: #fff;
  margin: 0 0 1.1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem;
}
.legal__crumb a { color: #fff; text-decoration: none; font-weight: 600; }
.legal__crumb a:hover { text-decoration: underline; }
.legal__crumb span[aria-hidden] { color: #fff; }
.legal__crumb .legal__here { color: #fff; font-weight: 600; }

/* Badge — the hero "tag" pill, on brand. */
.legal__tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .5em 1.05em;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 100px;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  margin: 0 0 1.1rem;
}

/* Hero heading — multicoloured gradient (lilac → cyan → pink). */
.legal > h1 {
  font-size: clamp(2rem, 5.4vw, 3.1rem);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.2; /* room for descenders — background-clip:text crops them at tight line-heights */
  padding-bottom: .08em;
  margin: 0 0 .85rem;
  background: linear-gradient(100deg, #b98bff, #22d3ee 55%, #ff5da2);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Hub intro line. */
.legal__hublede { font-size: 1.08rem; line-height: 1.65; color: #fff; max-width: 640px; margin: 0 0 2rem; }

/* "product of SolidCo" note — subtle full-width white intro text on the grid (no box). */
.legal__note {
  font-size: .95rem;
  line-height: 1.6;
  color: #fff;
  margin: 0 0 1.4rem;
}
.legal__note a { color: #fff; font-weight: 600; text-decoration: none; }

/* Document card — the legal text lives here, dark on white for readability. */
.solidco-legal-body {
  background: #fff;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 18px;
  padding: clamp(24px, 4.5vw, 56px);
  box-shadow: 0 34px 80px -46px rgba(20, 4, 60, .7);
  color: #000;
  counter-reset: legal-section;
}

/* Numbered section headings with a hairline rule above each. */
.solidco-legal-body h2 {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  line-height: 1.25;
  letter-spacing: -.01em;
  font-weight: 700;
  color: #241a3d;
  margin: 46px 0 16px;
  padding-top: 28px;
  border-top: 1px solid #f0ecf9;
}
.solidco-legal-body h2::before {
  counter-increment: legal-section;
  content: counter(legal-section, decimal-leading-zero);
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  /* gradient section number — a touch of the brand colour on the white card */
  background: linear-gradient(100deg, #8b3bf0, #22d3ee);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transform: translateY(-2px);
}
.solidco-legal-body > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
/* Pages whose headings carry their own numbering (MSA etc.) switch the counter off. */
.solidco-legal-body--nonum h2 { display: block; }
.solidco-legal-body--nonum h2::before { content: none; }

.solidco-legal-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #3b2d63;
  margin: 28px 0 10px;
}
.solidco-legal-body p {
  font-size: 1rem;
  line-height: 1.8;
  margin: 0 0 1.1rem;
  color: #000;
}
.solidco-legal-body > h2:first-child + p,
.solidco-legal-body .solidco-lead { font-size: 1.08rem; line-height: 1.7; color: #000; }

/* Diamond-bullet lists. */
.solidco-legal-body ul { list-style: none; margin: 0 0 1.3rem; padding: 0; }
.solidco-legal-body ul li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
  line-height: 1.7;
  color: #000;
}
.solidco-legal-body ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 10px;
  width: 7px;
  height: 7px;
  background: #6523d0;
  border-radius: 2px;
  transform: rotate(45deg);
}
.solidco-legal-body ol { list-style: none; counter-reset: legal-list; margin: 0 0 1.3rem; padding: 0; }
.solidco-legal-body ol li { position: relative; padding-left: 30px; margin-bottom: 10px; line-height: 1.7; color: #000; }
.solidco-legal-body ol li::before {
  counter-increment: legal-list;
  content: counter(legal-list) ".";
  position: absolute;
  left: 0;
  font-weight: 700;
  color: #6523d0;
}

.solidco-legal-body a {
  color: #6523d0;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(101, 35, 208, .3);
  transition: text-decoration-color .2s ease;
}
.solidco-legal-body a:hover { text-decoration-color: #6523d0; }
.solidco-legal-body strong { color: #241a3d; }
.solidco-legal-body code {
  font: .86em ui-monospace, "SFMono-Regular", Menlo, monospace;
  background: #f3f0fa;
  color: #4a18a2;
  padding: .08em .38em;
  border-radius: 5px;
}

/* Long-form legal document (MSA) numbering + indentation. */
.solidco-post-body .i1 { padding-left: 24px; }
.solidco-post-body .i2 { padding-left: 48px; }
.solidco-post-body .i3 { padding-left: 72px; }
.solidco-post-body .i1, .solidco-post-body .i2, .solidco-post-body .i3 { margin-bottom: 10px; }
.solidco-post-body h2.section-title { margin-top: 48px; padding-top: 24px; border-top: 2px solid #e7ddfa; }

/* Table of contents (MSA / terms). */
.solidco-toc { columns: 2; column-gap: 40px; list-style: none; padding: 0; margin: 10px 0 20px; }
.solidco-toc li { margin-bottom: 8px; break-inside: avoid; }
.solidco-toc li::before { display: none; }
@media (max-width: 600px) { .solidco-toc { columns: 1; } }

/* Tables — pretty horizontal touch-scroll. */
.solidco-table { width: 100%; border-collapse: collapse; margin: 24px 0 28px; }
.solidco-table th, .solidco-table td {
  border: 1px solid #e7e3f0;
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  font-size: .92rem;
  line-height: 1.5;
  color: #000;
}
.solidco-table thead th { background: #f5f2fc; font-weight: 700; color: #3b2d63; }
.solidco-table td strong { color: #241a3d; }
.solidco-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  margin: 26px 0;
  border: 1px solid #ece7f6;
  border-radius: 12px;
  scrollbar-width: thin;
  scrollbar-color: #cbb8ef transparent;
}
.solidco-table-scroll .solidco-table { margin: 0; min-width: 640px; border: 0; }
.solidco-table-scroll::-webkit-scrollbar { height: 8px; }
.solidco-table-scroll::-webkit-scrollbar-track { background: transparent; }
.solidco-table-scroll::-webkit-scrollbar-thumb { background: #cbb8ef; border-radius: 999px; }
.solidco-table-scroll::-webkit-scrollbar-thumb:hover { background: #a37fe0; }
.solidco-table--compact th, .solidco-table--compact td { padding: 9px 11px; font-size: .82rem; line-height: 1.45; }
@media (max-width: 575px) {
  .solidco-table-scroll::after {
    content: "\2192  scroll to see more";
    display: block;
    padding: 7px 12px;
    font-size: 12px;
    color: #9a93b3;
    border-top: 1px solid #f0ecf9;
  }
}

/* Closing CTA button in the document. */
.legal__btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-top: 1.4rem;
  padding: .6rem 1.15rem;
  background: #6523d0;
  color: #fff !important;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none !important;
}
.legal__btn:hover { background: #571db3; }
.solidco-legal-body > p:last-child:has(.legal__btn) { margin-top: 40px; padding-top: 30px; border-top: 1px solid #f0ecf9; }

.legal__back { margin: 1.8rem 0 0; }
.legal__back a { color: #fff; font-weight: 600; text-decoration: none; }
.legal__back a:hover { text-decoration: underline; }

/* ---- /policies hub — glassy cards on the purple grid ------------------ */
.legal__cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}
.legal__card {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 14px;
  padding: 1.2rem 1.25rem;
  text-decoration: none;
  color: #fff;
  backdrop-filter: blur(6px);
  transition: transform .16s ease, background .16s ease, border-color .16s ease;
}
.legal__card:hover { transform: translateY(-3px); background: rgba(255, 255, 255, .13); border-color: rgba(255, 255, 255, .4); }
.legal__card h2 { font-size: 1.05rem; font-weight: 700; margin: 0 0 .35rem; color: #fff; }
.legal__card p { font-size: .88rem; line-height: 1.55; color: #fff; margin: 0 0 .9rem; flex: 1; }
.legal__card .legal__more { font-size: .82rem; font-weight: 700; color: #22d3ee; }
