/* Legal document layout. Deliberately plainer than the marketing pages: a policy is read
   to find one clause, not admired, so the priorities are a usable table of contents,
   a comfortable measure, and headings you can link to. */

.legal { max-width: 1120px; margin: 0 auto; padding: 52px min(6vw, 40px) 90px; }

.legal-head { max-width: 760px; margin-bottom: 46px; }
.legal-head .crumb { display: block; width: fit-content; font-size: 13.6px; color: var(--muted); margin-bottom: 20px; }
.legal-head .crumb:hover { color: var(--blue); }
.legal-head .pill { margin-bottom: 18px; }
.legal-head h1 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; letter-spacing: -.025em; margin: 0 0 14px; }
.updated { font-size: 14.5px; color: var(--muted); margin: 0 0 8px; }
.tnote { font-size: 13.2px; color: #8296B4; margin: 0; font-style: italic; }

.legal-grid { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 46px; align-items: start; }

/* sticky so the reader never loses their place in a long document */
.toc { position: sticky; top: calc(var(--nav-h) + 24px); }
.toc-head {
  font-family: 'Space Grotesk', sans-serif; font-size: 11px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: #8296B4; margin-bottom: 12px;
}
.toc a {
  display: block; font-size: 13.6px; line-height: 1.45; color: #46587A;
  padding: 7px 0 7px 13px; border-left: 2px solid var(--line);
  transition: color .16s var(--ease), border-color .16s var(--ease);
}
.toc a:hover { color: var(--blue); border-left-color: var(--blue); }

.legal-body { max-width: 720px; }
.clause { padding-bottom: 34px; }
/* scroll-margin so a #deep-link does not land underneath the fixed nav */
.clause { scroll-margin-top: calc(var(--nav-h) + 20px); }
.clause h2 { font-size: 20px; font-weight: 700; letter-spacing: -.015em; margin: 0 0 12px; }
.clause p, .lede { font-size: 15.6px; line-height: 1.75; color: #3E4F6B; }
.clause p, .lede { color: #3E4F6B; }
.lede { font-size: 17px; line-height: 1.7; margin: 0 0 34px; padding-bottom: 30px; border-bottom: 1px solid var(--line); }
.clause p { margin: 0 0 14px; }
.clause a { color: var(--blue); font-weight: 500; }
.clause a:hover { color: var(--blue-deep); }

.dlist { margin: 0; }
.drow { padding: 14px 0; border-bottom: 1px solid var(--line); }
.drow:last-child { border-bottom: 0; }
.drow dt { font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 5px; }
.drow dd { margin: 0; font-size: 15.2px; line-height: 1.72; color: #3E4F6B; }

.ulist { margin: 0 0 16px; padding-left: 20px; }
.ulist li { font-size: 15.4px; line-height: 1.72; color: #3E4F6B; margin-bottom: 9px; }

.controller { margin-top: 20px !important; font-weight: 600; color: var(--ink) !important; }
.clause address { font-style: normal; font-size: 15.2px; line-height: 1.7; color: #3E4F6B; }

.legal-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 40px; padding-top: 34px; border-top: 1px solid var(--line); }

@media (max-width: 900px) {
  .legal-grid { grid-template-columns: 1fr; gap: 28px; }
  .toc { position: static; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
  .toc a { display: inline-block; border-left: 0; padding: 6px 12px 6px 0; }
}

/* ===== subprocessor list =====
   Each vendor's real trademark, used nominatively to identify who processes data — which is
   what a subprocessor list is for. Drawn in the vendor's own brand colour on a plain white
   tile, so no mark is recoloured or set on a ground that would alter it.

   No Meta or TikTok mark appears here, and none should be added: Meta's brand terms forbid
   showing their logo alongside other companies' logos, which is exactly what this grid is.
   If those channels ship, they go in as text. */
.sp-group { margin-top: 26px; }
.sp-group h3 {
  font-family: 'Space Grotesk', sans-serif; font-size: 11px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: #8296B4; margin: 0 0 12px;
}
.sp-grid { display: grid; gap: 10px; }
.sp-card {
  display: flex; align-items: flex-start; gap: 13px;
  padding: 14px 16px; border-radius: 14px;
  background: #fff; border: 1px solid var(--line);
  transition: border-color .18s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease);
}
.sp-card:hover {
  border-color: rgba(31,98,255,.32); transform: translateY(-2px);
  box-shadow: 0 14px 28px -18px rgba(12,44,130,.45);
}
.sp-mark {
  flex: 0 0 34px; width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center;
  background: #fff; border: 1px solid var(--line);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.sp-mark .sp-logo { display: block; }
.sp-card:hover .sp-mark { border-color: rgba(31,98,255,.28); box-shadow: 0 4px 12px -6px rgba(12,44,130,.35); }
.sp-txt { flex: 1; min-width: 0; }
.sp-txt b { display: block; font-size: 14.8px; font-weight: 700; color: var(--ink); margin-bottom: 2px; }
.sp-txt em { display: block; font-style: normal; font-size: 13.4px; line-height: 1.55; color: var(--muted); }
.sp-go { flex: 0 0 auto; color: #A9B7CE; font-size: 14px; margin-top: 2px; }
.sp-card:hover .sp-go { color: var(--blue); }
.sp-note {
  margin-top: 22px !important; padding: 13px 15px; border-radius: 12px;
  background: rgba(var(--gold-rgb),.09); border: 1px solid rgba(var(--gold-rgb),.28);
  font-size: 13.6px !important; line-height: 1.6; color: var(--gold-deep) !important;
}

/* ===== document switcher ===== */
.legal-switch {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin-top: 44px; padding-top: 30px; border-top: 1px solid var(--line);
}
.legal-switch a {
  font-size: 14px; font-weight: 600; color: #46587A;
  padding: 10px 18px; border-radius: 100px;
  background: #F3F6FC; border: 1px solid var(--line);
  transition: all .18s var(--ease);
}
.legal-switch a:hover { color: var(--blue); border-color: rgba(31,98,255,.34); }
.legal-switch a.is-here { background: var(--blue); border-color: var(--blue); color: #fff; }

@media (min-width: 640px) { .sp-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }

/* ===== reading position =====
   The same "the line fills as you read" idea, in document form: the TOC's left border is
   the rail, a fill tracks scroll progress down it, and the entry you are inside lights in
   blue. Scroll-linked, never autonomous. Fails open: without JS the TOC is what it was.

   No position:relative here — .toc is already position:sticky (a positioned box, so the
   absolute rail anchors to it); redeclaring position later in the file would OVERRIDE the
   sticky and the TOC would stop following the reader. */
.toc-rail {
  position: absolute; top: 34px; bottom: 6px; left: 0; width: 2px;
  background: transparent; pointer-events: none;
}
.toc-fill {
  position: absolute; inset: 0; background: var(--blue); border-radius: 2px;
  transform-origin: top; transform: scaleY(var(--p, 0));
}
.toc a.is-here { color: var(--blue); border-left-color: var(--blue); font-weight: 600; }

/* cursor spotlight on the subprocessor cards, blue — same mechanism as the plan cards */
.sp-card { position: relative; overflow: hidden; }
.sp-card::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%),
              rgba(31,98,255,.10), transparent 62%);
  transition: opacity .3s var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .sp-card:hover::after { opacity: 1; }
}
@media (max-width: 900px) {
  .toc-rail { display: none; }   /* the TOC flattens to a row; there is no rail to fill */
}
