/* Native policy pages share the DECODE shell; every rule stays on legal pages. */
body.legal-page {
  --legal-canvas: #16151a;
  --legal-paper: #1b1a23;
  --legal-tint: #202434;
  --legal-heading: #f7f8ff;
  --legal-text: #d1d5e0;
  --legal-muted: #a8b2c8;
  --legal-border: #3d5aa94f;
  --legal-link: #b6c9ff;
  --legal-grid: #3d5aa93d;
  --legal-selected: #3d5aa9;
  --legal-hover: #3d5aa926;
  --legal-shadow: #00000016;
  --legal-focus: #acec00;
}
html[data-theme="light"] body.legal-page {
  --legal-canvas: #fff;
  --legal-paper: #fff;
  --legal-tint: #f1f5fc;
  --legal-heading: #09152b;
  --legal-text: #34445f;
  --legal-muted: #61718a;
  --legal-border: #cbd6e8;
  --legal-link: #3d5aa9;
  --legal-grid: #3d5aa927;
  --legal-selected: #09152b;
  --legal-hover: #e7eefb;
  --legal-shadow: #09152b07;
  --legal-focus: #3d5aa9;
}
.legal-page .legal-main {
  min-width: 0;
}
.legal-page .legal-hero {
  position: relative;
  isolation: isolate;
  padding-top: 82px;
  padding-bottom: 46px;
}
.legal-page .legal-hero::before {
  content: "";
  position: absolute;
  inset: 0 -48px;
  z-index: -1;
  pointer-events: none;
  background-image: linear-gradient(var(--legal-grid) 1px,transparent 1px),linear-gradient(90deg,var(--legal-grid) 1px,transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 36% 30%,#000a 5%,#0005 45%,transparent 77%);
  -webkit-mask-image: radial-gradient(ellipse at 36% 30%,#000a 5%,#0005 45%,transparent 77%);
}
.legal-page .legal-hero .eyebrow {
  color: var(--legal-link);
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: .13em;
  gap: 13px;
}
.legal-page .legal-back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-bottom: 24px;
  color: var(--legal-link);
  font-size: 14px;
  line-height: 1.6;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}
.legal-page .legal-back:hover {
  color: var(--legal-heading);
}
.legal-page .legal-hero .eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #acec00;
  box-shadow: 0 0 0 5px #acec001c;
}
.legal-page .legal-hero h1 {
  max-width: 920px;
  margin-top: 24px;
  color: var(--legal-heading);
  font-size: clamp(44px,5vw,68px);
  line-height: 1.1;
  letter-spacing: -.05em;
  overflow-wrap: break-word;
}
.legal-page .legal-updated {
  color: var(--legal-muted);
  font-size: 14px;
  line-height: 1.7;
  margin-top: 20px;
}
.legal-page .legal-hero :is(h1, .legal-updated) {
  position: relative;
  isolation: isolate;
  width: fit-content;
  max-width: 100%;
}
.legal-page .legal-hero :is(h1, .legal-updated)::before {
  content: "";
  position: absolute;
  inset: -18px -12px -18px -24px;
  z-index: -1;
  border-radius: 16px;
  background: var(--legal-canvas);
  filter: blur(20px);
  pointer-events: none;
}
.legal-page .legal-page-switcher {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 5px;
  max-width: 100%;
  padding: 5px;
  margin-top: 32px;
  border: 1px solid var(--legal-border);
  border-radius: 10px;
  background: var(--legal-paper);
  box-shadow: 0 4px 16px var(--legal-shadow);
}
.legal-page .legal-page-switcher a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 46px;
  padding: 11px 20px;
  color: var(--legal-text);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  transition: background .18s,color .18s;
}
.legal-page .legal-page-switcher a:hover {
  background: var(--legal-hover);
  color: var(--legal-heading);
}
.legal-page .legal-page-switcher a[aria-current="page"] {
  background: var(--legal-selected);
  color: #fff;
}

/* A narrow navigation rail leaves a comfortable measure for long documents. */
.legal-page .legal-layout {
  display: grid;
  grid-template-columns: 230px minmax(0,1fr);
  gap: 50px;
  align-items: start;
  max-width: 1160px;
  padding-bottom: 104px;
}
.legal-page .legal-sidebar {
  min-width: 0;
  position: sticky;
  top: 28px;
  max-height: calc(100svh - 56px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--legal-border) transparent;
}
.legal-page .legal-toc {
  border: 1px solid var(--legal-border);
  border-radius: 10px;
  background: var(--legal-tint);
}
.legal-page .legal-toc summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 58px;
  padding: 17px 20px;
  color: var(--legal-heading);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.5;
  list-style: none;
  cursor: pointer;
  border-radius: 9px;
}
.legal-page .legal-toc summary::-webkit-details-marker {
  display: none;
}
.legal-page .legal-toc summary::after {
  content: "+";
  font-size: 20px;
  line-height: 1;
  color: var(--legal-link);
  font-weight: 500;
}
.legal-page .legal-toc[open] summary::after {
  content: "−";
}
.legal-page .legal-toc nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 12px 14px;
}
.legal-page .legal-toc nav a {
  display: block;
  min-height: 40px;
  padding: 9px 9px;
  color: var(--legal-muted);
  font-size: 13px;
  line-height: 1.6;
  border-radius: 5px;
  overflow-wrap: anywhere;
  text-decoration: none;
}
.legal-page .legal-toc nav a:hover {
  color: var(--legal-heading);
  background: var(--legal-hover);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal-page .legal-toc nav a[aria-current="location"],
.legal-page .legal-toc nav a[aria-current="true"] {
  color: var(--legal-link);
  background: var(--legal-hover);
  font-weight: 700;
}

.legal-page .legal-document {
  min-width: 0;
  width: 100%;
  max-width: 830px;
  padding: 40px;
  color: var(--legal-text);
  background: var(--legal-paper);
  border: 1px solid var(--legal-border);
  border-radius: 12px;
  box-shadow: 0 12px 38px var(--legal-shadow);
  font-size: 17px;
  line-height: 1.8;
}
.legal-page .legal-document p {
  margin: 0;
  overflow-wrap: anywhere;
}
.legal-page .legal-document p+p {
  margin-top: 18px;
}
.legal-page .legal-document>p {
  margin-bottom: 20px;
}
.legal-page .legal-document strong,
.legal-page .legal-document b {
  color: var(--legal-heading);
  font-weight: 800;
}
.legal-page .legal-document em {
  color: inherit;
  font-style: italic;
}
.legal-page .legal-document a {
  color: var(--legal-link);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  overflow-wrap: anywhere;
}
.legal-page .legal-document a:hover {
  color: var(--legal-heading);
  text-decoration-thickness: 2px;
}
.legal-page .legal-section {
  margin-top: 38px;
  padding-top: 36px;
  border-top: 1px solid var(--legal-border);
  scroll-margin-top: 28px;
}
.legal-page .legal-document h2 {
  color: var(--legal-heading);
  font-size: 28px;
  line-height: 1.3;
  letter-spacing: -.035em;
  font-weight: 800;
  margin: 0 0 20px;
  overflow-wrap: break-word;
}
.legal-page .legal-document h3 {
  color: var(--legal-heading);
  font-size: 21px;
  line-height: 1.4;
  letter-spacing: -.025em;
  font-weight: 800;
  margin: 28px 0 14px;
  overflow-wrap: break-word;
}
.legal-page .legal-document h4 {
  color: var(--legal-heading);
  font-size: 18px;
  line-height: 1.5;
  letter-spacing: -.015em;
  margin: 24px 0 12px;
}
.legal-page .legal-document ul,
.legal-page .legal-document ol {
  padding-left: 25px;
  margin: 18px 0;
}
.legal-page .legal-document li {
  padding-left: 3px;
  margin: 10px 0;
  overflow-wrap: anywhere;
}
.legal-page .legal-document li::marker {
  color: var(--legal-link);
}
.legal-page .legal-document li>ul,
.legal-page .legal-document li>ol {
  margin-block: 12px;
}
.legal-page .legal-document blockquote {
  margin: 24px 0;
  padding: 20px 24px;
  background: var(--legal-tint);
  border-left: 3px solid #3d5aa9;
  border-radius: 0 7px 7px 0;
}

/* Wide provider tables scroll inside the document, never across the page. */
.legal-page .legal-document .table-wrap {
  max-width: 100%;
  width: 100%;
  margin: 24px 0;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--legal-border) var(--legal-tint);
  border: 1px solid var(--legal-border);
  border-radius: 8px;
  background: var(--legal-paper);
}
.legal-page .legal-document table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 15px;
  line-height: 1.7;
}
.legal-page .legal-document th,
.legal-page .legal-document td {
  padding: 15px 17px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--legal-border);
  overflow-wrap: anywhere;
}
.legal-page .legal-document th {
  color: var(--legal-heading);
  background: var(--legal-tint);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.6;
}
.legal-page .legal-document th:first-child {
  width: 20%;
}
.legal-page .legal-document th:nth-child(2) {
  width: 26%;
}
.legal-page .legal-document [aria-label="Data retention"] th:first-child { width: 34%; }
.legal-page .legal-document [aria-label="Data retention"] th:nth-child(2) { width: 66%; }
.legal-page .legal-document tbody tr:last-child td {
  border-bottom: 0;
}
.legal-page .legal-document td:first-child {
  color: var(--legal-heading);
  font-weight: 700;
}
.legal-page .legal-document caption {
  color: var(--legal-muted);
  text-align: left;
  padding: 15px 17px;
  font-size: 14px;
  line-height: 1.7;
}
.legal-page :is(a,button,summary,[tabindex]):focus-visible {
  outline: 2px solid var(--legal-focus);
  outline-offset: 4px;
}
.legal-page .legal-toc summary:focus-visible {
  outline-offset: -4px;
}
.legal-page .legal-document .table-wrap:focus-visible {
  outline-offset: 4px;
}
html[data-theme="light"] .legal-page .site-header .button {
  background: #09152b;
  border-color: #09152b;
  color: #fff;
}
html[data-theme="light"] .legal-page .site-header .button:hover {
  background: #3d5aa9;
  border-color: #3d5aa9;
  color: #fff;
}

@media (max-width:1200px) {
  .legal-page .legal-hero::before {
    inset-inline: -24px;
  }
  .legal-page .legal-layout {
    grid-template-columns: 210px minmax(0,1fr);
    gap: 32px;
  }
  .legal-page .legal-document {
    padding: 34px;
  }
}
@media (max-width:999px) {
  .legal-page .legal-hero {
    padding-top: 58px;
    padding-bottom: 34px;
  }
  .legal-page .legal-layout {
    grid-template-columns: minmax(0,1fr);
    gap: 24px;
    max-width: 830px;
    padding-bottom: 76px;
  }
  .legal-page .legal-sidebar {
    position: static;
    max-height: none;
    overflow: visible;
  }
  .legal-page .legal-toc nav {
    max-height: min(440px,60svh);
    overflow-y: auto;
    scrollbar-width: thin;
  }
  .legal-page .legal-toc nav a {
    font-size: 14px;
    min-height: 44px;
    padding-inline: 12px;
  }
  .legal-page .legal-document {
    max-width: none;
  }
}
@media (max-width:600px) {
  .legal-page .legal-hero {
    padding-top: 44px;
    padding-bottom: 28px;
  }
  .legal-page .legal-hero::before {
    inset-inline: -16px;
    background-size: 40px 40px;
  }
  .legal-page .legal-hero .eyebrow {
    font-size: 11px;
  }
  .legal-page .legal-hero h1 {
    font-size: 44px;
    margin-top: 22px;
  }
  .legal-page .legal-updated {
    font-size: 14px;
    margin-top: 18px;
  }
  .legal-page .legal-page-switcher {
    margin-top: 26px;
  }
  .legal-page .legal-page-switcher a {
    padding-inline: 15px;
  }
  .legal-page .legal-layout {
    padding-bottom: 60px;
  }
  .legal-page .legal-document {
    padding: 25px 22px;
    font-size: 17px;
    line-height: 1.8;
    border-radius: 10px;
  }
  .legal-page .legal-document h2 {
    font-size: 26px;
    line-height: 1.35;
  }
  .legal-page .legal-document h3 {
    font-size: 21px;
  }
  .legal-page .legal-section {
    margin-top: 32px;
    padding-top: 30px;
    scroll-margin-top: 20px;
  }
  .legal-page .legal-document ul,
  .legal-page .legal-document ol {
    padding-left: 22px;
  }
  .legal-page .legal-document blockquote {
    padding: 18px;
  }
}
@media (max-width:420px) {
  .legal-page .legal-hero h1 {
    font-size: 40px;
  }
  .legal-page .legal-page-switcher {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    width: 100%;
    max-width: 360px;
  }
  .legal-page .legal-page-switcher a {
    padding: 10px;
    font-size: 13px;
  }
  .legal-page .legal-document {
    padding: 24px 16px;
  }
  .legal-page .legal-document h2 {
    font-size: 25px;
  }
}
@media (prefers-reduced-motion:reduce) {
  .legal-page .legal-page-switcher a {
    transition: none;
  }
}
