:root {
  color-scheme: light;
  --legal-nav-bg: #0A1628;
  --legal-nav-height: 66px;
  --legal-nav-border: rgba(255, 255, 255, .12);
  --legal-blue: #005EE3;
  --legal-ink: #262626;
  --legal-copy: #4A4D4F;
  --legal-border: #E8E9EA;
  --legal-footer: #060E28;
  font-family: Inter, Arial, sans-serif;
  color: var(--legal-ink);
  background: #fff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-width: 320px;
  margin: 0;
  background: #fff;
  color: var(--legal-ink);
  font: 400 16px/1.65 Inter, Arial, sans-serif;
}
a { color: var(--legal-blue); text-underline-offset: 3px; }
a:hover { color: #004FC0; }
.skip-link {
  position: absolute;
  z-index: 1000;
  top: 8px;
  left: -9999px;
  padding: 10px 16px;
  border-radius: 8px;
  background: #005EE3;
  color: #fff;
  font-weight: 600;
}
.skip-link:focus { left: 12px; }

/* The legal pages use the same navigation tokens and component names as home. */
.nav.legal-shell-nav {
  position: sticky;
  z-index: 200;
  top: 0;
  width: 100%;
  background: var(--legal-nav-bg);
  border-bottom: 1px solid var(--legal-nav-border);
}
.legal-shell-nav .nav-inner {
  min-height: var(--legal-nav-height);
  padding: 0 22px;
  display: flex;
  align-items: center;
}
.legal-shell-nav .nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
  text-decoration: none;
}
.legal-shell-nav .nav-logo-mark {
  display: flex;
  width: 34px;
  height: 34px;
  flex: none;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #fff;
}
.legal-shell-nav .nav-logo-mark img {
  width: 100%;
  height: 100%;
  padding: 4px;
  object-fit: contain;
}
.legal-shell-nav .nav-logo-name {
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.015em;
  line-height: 1;
}
.legal-shell-nav .nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 26px;
}
.legal-shell-nav .nav-link {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 6px;
  padding: 9px 13px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: rgba(255,255,255,.62);
  font: 600 13px/1.2 Inter, Arial, sans-serif;
  text-decoration: none;
  white-space: nowrap;
}
.legal-shell-nav .nav-link:hover,
.legal-shell-nav .nav-link:focus-visible {
  border-color: #373E4D;
  background: rgba(255,255,255,.08);
  color: #fff;
}
.legal-shell-nav .nav-link:focus-visible,
.legal-shell-nav .nav-cta-btn:focus-visible,
.legal-shell-nav .nav-burger:focus-visible,
.legal-shell-nav .nav-panel-link:focus-visible {
  outline: 2px solid #7DB4FF;
  outline-offset: 2px;
}
.legal-shell-nav .nav-spark { margin-right: 1px; }
.legal-shell-nav .nav-soon {
  padding: 2px 5px;
  border-radius: 6px;
  background: rgba(255,255,255,.12);
  color: rgba(255,255,255,.7);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.legal-shell-nav .nav-cta {
  display: flex;
  flex: none;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.legal-shell-nav .nav-cta-btn {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border: 1px solid var(--legal-nav-border);
  border-radius: 12px;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.75);
  font: 600 13px/1.2 Inter, Arial, sans-serif;
  text-decoration: none;
  white-space: nowrap;
}
.legal-shell-nav .nav-cta-btn:hover { border-color: #373E4D; color: #fff; }
.legal-shell-nav #nav-get-started {
  border-color: #005EE3;
  background: #005EE3;
  color: #fff;
}
.legal-shell-nav #nav-get-started:hover { border-color: #004FC0; background: #004FC0; }
.legal-shell-nav .nav-burger {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  border: 1px solid #4E545F;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
}
.legal-shell-nav .nav-burger-icon {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  box-shadow: 0 6px #fff, 0 -6px #fff;
}
.legal-shell-nav .nav-panel {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 14px 22px 22px;
  border-top: 1px solid var(--legal-nav-border);
  background: var(--legal-nav-bg);
}
.legal-shell-nav .nav-panel.is-open { display: flex; }
.legal-shell-nav .nav-panel-link,
.legal-shell-nav .nav-panel-cta,
.legal-shell-nav .nav-panel-auth {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 8px;
  padding: 12px 0;
  border-bottom: 1px solid var(--legal-nav-border);
  color: #fff;
  font: 500 15px/1.4 Inter, Arial, sans-serif;
  text-decoration: none;
}
.legal-shell-nav .nav-panel-cta,
.legal-shell-nav .nav-panel-auth {
  justify-content: center;
  margin-top: 12px;
  padding: 13px;
  border: 1px solid #4E545F;
  border-radius: 10px;
  background: rgba(255,255,255,.08);
  font-weight: 600;
}
.legal-shell-nav .nav-panel-cta {
  border-color: #005EE3;
  background: #005EE3;
}

.legal-layout {
  display: grid;
  width: min(calc(100% - 48px), 1128px);
  grid-template-columns: 220px minmax(0, 760px);
  align-items: start;
  gap: 48px;
  margin: 0 auto;
  padding: 58px 0 96px;
}
.legal-toc {
  position: sticky;
  top: calc(var(--legal-nav-height) + 30px);
  max-height: calc(100vh - var(--legal-nav-height) - 52px);
  overflow-y: auto;
  padding: 4px 0;
}
.legal-toc-title {
  margin: 0 0 12px;
  color: #262626;
  font-size: 13px;
  font-weight: 600;
}
.legal-toc-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.legal-toc-list a {
  display: block;
  padding: 5px 8px;
  border-left: 2px solid transparent;
  color: #62676B;
  font-size: 12px;
  line-height: 1.45;
  text-decoration: none;
}
.legal-toc-list a:hover,
.legal-toc-list a:focus-visible {
  border-left-color: #005EE3;
  color: #005EE3;
}
.legal-toc-list a:focus-visible { outline: 2px solid #005EE3; outline-offset: 2px; }
.legal-document { min-width: 0; max-width: 760px; }
.legal-back {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  margin: -5px 0 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #005EE3;
  cursor: pointer;
  font: 500 15px/1.4 Inter, Arial, sans-serif;
}
.legal-back:hover { color: #004FC0; }
.legal-back:focus-visible {
  border-radius: 3px;
  outline: 2px solid #005EE3;
  outline-offset: 3px;
}
.legal-document h1 {
  margin: 0 0 5px;
  color: #262626;
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.2;
}
.effective-date { margin: 0 0 38px; color: #4A4D4F; font-size: 14px; }
.legal-document h2 {
  position: relative;
  margin: 40px 0 10px;
  color: #262626;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -.015em;
  line-height: 1.35;
  scroll-margin-top: calc(var(--legal-nav-height) + 20px);
}
.legal-document h2:focus { outline: 2px solid #005EE3; outline-offset: 5px; border-radius: 2px; }
.legal-document p { margin: 0 0 15px; color: #4A4D4F; }
.legal-document ul,
.legal-document ol { margin: 0 0 17px; padding-left: 26px; color: #4A4D4F; }
.legal-document li { margin: 0 0 8px; padding-left: 2px; }
.legal-document strong { color: #262626; }
.legal-document a { color: #005EE3; }
.legal-document a:hover { color: #004FC0; }
.section-anchor {
  position: absolute;
  left: -24px;
  color: #888B8D;
  font-size: 16px;
  opacity: 0;
  text-decoration: none;
}
.legal-document h2:hover .section-anchor,
.section-anchor:focus-visible { opacity: 1; }
.table-wrap {
  width: 100%;
  margin: 0 0 20px;
  overflow-x: auto;
  border: 1px solid var(--legal-border);
  border-radius: 12px;
}
.legal-document table {
  width: 100%;
  border-collapse: collapse;
  color: #4A4D4F;
  font-size: 14px;
  line-height: 1.55;
}
.legal-document th,
.legal-document td {
  min-width: 0;
  padding: 13px 14px;
  border-bottom: 1px solid var(--legal-border);
  text-align: left;
  vertical-align: top;
}
.legal-document th { background: #F5F5F5; color: #262626; font-weight: 600; }
.legal-document tr:last-child td { border-bottom: 0; }

/* Shared public-site footer. */
.site-footer { padding: 64px 0 32px; background: var(--legal-footer); color: rgba(255,255,255,.72); }
.wrap { width: min(100% - 44px, 1200px); margin: 0 auto; }
.footer-inner { display: flex; flex-direction: column; gap: 48px; }
.footer-cols {
  display: grid;
  grid-template-columns: 2fr repeat(3, minmax(0, 1fr)) auto;
  align-items: start;
  gap: 40px;
}
.footer-logo { width: auto; height: 31px; opacity: .92; }
.footer-tagline { max-width: 34ch; margin: 18px 0 0; color: rgba(255,255,255,.72); font-size: 15px; line-height: 1.6; }
.footer-entity { max-width: 44ch; margin: 16px 0 0; color: rgba(255,255,255,.5); font-size: 12px; line-height: 1.7; }
.footer-col-head { display: block; margin-bottom: 16px; color: rgba(255,255,255,.5); font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
.footer-link-list { display: flex; flex-direction: column; gap: 11px; font-size: 14px; }
.footer-link { color: rgba(255,255,255,.72); text-decoration: none; transition: color .15s ease; }
.footer-link:hover { color: #fff; }
.footer-link--legal:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-link:focus-visible { outline: 2px solid #7DB4FF; outline-offset: 3px; border-radius: 3px; }
.footer-trust { display: flex; min-width: 135px; flex-direction: column; align-items: flex-start; gap: 12px; }
.footer-seal-label { color: rgba(255,255,255,.5); font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.footer-seal-link { display: block; border-radius: 10px; line-height: 0; }
.footer-seal-link:focus-visible { outline: 2px solid #7DB4FF; outline-offset: 4px; }
.footer-seal { display: block; width: 135px; height: 135px; border-radius: 10px; object-fit: contain; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.5);
  font-size: 12px;
}
.footer-social-icons { display: flex; align-items: center; gap: 14px; }
.footer-social-icon { display: inline-flex; align-items: center; justify-content: center; color: rgba(255,255,255,.5); opacity: .78; }
.footer-social-icon:hover { color: #fff; opacity: 1; }
.footer-social-icon:focus-visible { outline: 2px solid #7DB4FF; outline-offset: 4px; border-radius: 3px; }
.footer-social-icon svg { display: block; width: 16px; height: 16px; }

@media (max-width: 1180px) {
  .legal-shell-nav .nav-links { display: none; }
  .legal-shell-nav .nav-burger { display: flex; }
}
@media (max-width: 900px) {
  .legal-shell-nav .nav-cta { display: none; }
  .legal-layout { grid-template-columns: 190px minmax(0, 760px); gap: 28px; }
}
@media (max-width: 760px) {
  .legal-layout {
    display: block;
    width: min(calc(100% - 32px), 760px);
    padding: 34px 0 64px;
  }
  .legal-toc {
    position: static;
    display: block;
    max-height: 240px;
    margin-bottom: 24px;
    padding: 14px;
    overflow: auto;
  }
  .legal-toc-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 8px; }
  .legal-toc-list a { padding: 5px 6px; font-size: 12px; line-height: 1.4; }
  .legal-back { margin-bottom: 24px; }
  .legal-document h1 { font-size: 40px; }
  .legal-document h2 { margin-top: 36px; }
  .section-anchor { position: static; margin-right: 7px; opacity: 1; }
  .legal-document table { table-layout: fixed; }
  .legal-document th,
  .legal-document td {
    min-width: 0;
    padding: 11px 8px;
    font-size: 13px;
    overflow-wrap: anywhere;
  }
}
@media (max-width: 860px) {
  .footer-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 500px) {
  .wrap { width: min(100% - 32px, 1200px); }
  .footer-cols { grid-template-columns: 1fr; gap: 30px; }
  .footer-trust { margin-top: 4px; }
  .site-footer { padding-top: 48px; }
  .footer-inner { gap: 36px; }
}
