/* Shared chrome for the legal suite (terms, privacy, support, subprocessors,
   website terms). Loaded after v2.css: the header is the landing's own
   header.nav, and this file only lays out the document on the same 1200px
   content grid, the "On this page" section nav (legal-nav.js marks the section
   in view) and the shared footer. Every color is a tokens.css variable. */

main.legal{max-width:1200px;margin:0 auto;padding:56px 24px 96px}
.legal-head{max-width:680px}
.legal h1{font-size:40px;line-height:1.15;letter-spacing:-.025em;font-weight:600;margin:0 0 12px;max-width:none;text-wrap:balance}
.legal-meta{font-size:15px;line-height:1.5;color:var(--ink-secondary);margin:0}
.legal-meta strong{color:var(--ink-primary);font-weight:500}

.legal-layout{display:grid;grid-template-columns:minmax(0,1fr);gap:32px;margin-top:40px}
.legal-body{max-width:680px;min-width:0}
.legal-body.is-wide{max-width:960px}
.legal-body > section{scroll-margin-top:80px}
.legal-body > section + section,.legal-body > .legal-intro + section{margin-top:48px}
.legal h2{font-size:25px;line-height:1.25;letter-spacing:-.02em;font-weight:600;margin:0 0 16px;max-width:none;display:flex;gap:12px;align-items:baseline;text-wrap:balance}
.legal h2 strong{font-weight:inherit}
.legal-no{color:var(--accent);font-size:15px;font-weight:600;font-variant-numeric:tabular-nums;letter-spacing:0;min-width:1.5em}
.legal h3{font-size:19px;line-height:1.35;letter-spacing:-.01em;font-weight:600;margin:28px 0 8px}
.legal p{font-size:17px;line-height:1.65;margin:0 0 16px;max-width:65ch;color:var(--ink-primary)}
.legal ul,.legal ol{font-size:17px;line-height:1.65;margin:0 0 16px;padding-left:24px;max-width:65ch}
.legal li{margin:0 0 8px}
.legal-body > section > :last-child{margin-bottom:0}

/* Links inside the document text keep the line rhythm but get a 44px-tall
   hit area from inline padding (inline padding does not move the lines). */
.legal-body a:not(.btn),.legal-head a{color:var(--accent);text-decoration:underline;text-underline-offset:3px;padding:13px 0;overflow-wrap:break-word}
.legal-body a:not(.btn):hover{color:var(--accent-hover)}
.legal-body a.btn{color:var(--accent-on);text-decoration:none}

/* legal-nav.js keeps the <details> open at >=900px and collapsed below. */
details.legal-toc{border:1px solid var(--border);border-radius:12px;background:var(--bg-surface);padding:0;margin:0}
.legal-toc summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:48px;padding:0 16px;font-size:16px;line-height:1.4;font-weight:600;color:var(--ink-primary);cursor:pointer;list-style:none}
.legal-toc summary::-webkit-details-marker{display:none}
.legal-toc summary::after{content:"";flex:none;width:8px;height:8px;margin-top:-4px;border-right:2px solid var(--ink-secondary);border-bottom:2px solid var(--ink-secondary);transform:rotate(45deg);transition:transform var(--motion-fast) var(--ease-out)}
.legal-toc[open] summary::after{content:"";margin-top:4px;transform:rotate(-135deg)}
.legal-toc:not([open]) > nav{display:none}
.legal-toc ol{list-style:none;margin:0;padding:0 8px 8px;display:grid;gap:2px;max-width:none}
.legal-toc li{margin:0}
.legal-toc a{display:flex;align-items:center;gap:10px;min-height:44px;padding:8px;border-radius:8px;color:var(--ink-secondary);text-decoration:none;font-size:15px;line-height:1.35}
.legal-toc a:hover{color:var(--ink-primary);background:var(--bg-canvas-alt)}
.legal-toc a[aria-current]{color:var(--accent);font-weight:600;background:var(--accent-tint)}
.legal-toc .legal-no{font-size:14px;min-width:1.6em}

@media (min-width:900px){
  .legal-layout.has-toc{grid-template-columns:240px minmax(0,680px);gap:64px}
  details.legal-toc{position:sticky;top:80px;align-self:start;max-height:calc(100vh - 96px);overflow:auto;border:0;background:none;border-radius:0}
  .legal-toc summary{cursor:default;padding:0 8px;min-height:44px}
  .legal-toc summary::after{display:none}
  .legal-toc ol{padding:0}
}

.sp-table{width:100%;border-collapse:collapse;margin:24px 0;text-align:left}
.sp-table th{font-size:14px;font-weight:600;color:var(--ink-secondary);padding:0 24px 12px 0;border-bottom:1px solid var(--border)}
.sp-table td{font-size:15px;line-height:1.55;padding:12px 24px 12px 0;border-bottom:1px solid var(--border);vertical-align:top;color:var(--ink-primary)}
.sp-table tbody tr:last-child td{border-bottom:0}
.sp-table .sp-name{font-weight:600;white-space:nowrap}
.legal-body .sp-table .sp-name a{display:inline-flex;align-items:center;min-height:44px;min-width:44px;padding:0 4px;margin:-10px 0 0 -4px}
.legal-body .sp-table td a{padding:13px 0}

.legal-foot{border-top:1px solid var(--border);padding-top:40px;padding-bottom:56px}
.legal-foot p{margin:0}
.legal-foot ul{list-style:none;display:flex;flex-wrap:wrap;column-gap:16px;margin:8px 0 0 -4px;padding:0}
.legal-foot a{display:inline-flex;align-items:center;min-height:44px;min-width:44px;padding:0 4px;color:var(--ink-secondary)}
.legal-foot a[aria-current]{color:var(--ink-primary);font-weight:600;text-decoration:none}

@media (max-width:720px){
  .sp-table thead{display:none}
  .sp-table,.sp-table tbody,.sp-table tr,.sp-table td{display:block;width:100%}
  .sp-table tr{background:var(--bg-surface);border:1px solid var(--border);border-radius:12px;padding:12px 16px 16px}
  .sp-table tr + tr{margin-top:12px}
  .sp-table td{border:0;padding:0}
  .sp-table td + td{margin-top:10px}
  .sp-table td::before{content:attr(data-label);display:block;font-size:14px;font-weight:600;color:var(--ink-secondary);margin-bottom:2px}
  .sp-table td.sp-name{font-size:17px;line-height:1.4}
  .sp-table td.sp-name::before{content:none}
  .legal-body .sp-table .sp-name a{display:flex;margin:0 -4px;padding:0 4px}
}
@media (max-width:640px){
  main.legal{padding:40px 24px 72px}
  .legal h1{font-size:32px}
  .legal h2{font-size:21px;gap:10px}
  .legal p,.legal ul,.legal ol{font-size:16px}
  .legal-body > section + section,.legal-body > .legal-intro + section{margin-top:40px}
}
