/* The legal pages (privacy.html, terms.html), one click from the home page's purple Legal block.
   VOICE  plain words a parent or a twelve-year-old can follow; a short version first, the detail after
   IDEA   the page opens in Merge Purple, the colour of the block that led here, then turns to paper for reading
   COLOUR same tokens as the home page; paper or ink for the text, following the phone's light or dark mode
   TYPE   Montserrat, the house face (fonts.css)
   LAYOUT bar and footer as on home; a purple title band; then the text in one 760px column, with a
          contents list beside it on wide screens and above it on phones */
:root{color-scheme:light dark;--bg:light-dark(#F7F6F2,#0E0F14);--ink:light-dark(#0E0F14,#F7F6F2);--mut:light-dark(#4A4C57,#A9ABB6);--line:light-dark(#DEDCD4,#2A2C36);--tint:light-dark(#5B1DBF,#A98BF0);--red:#FF4A3D;--blue:#3A44FF;--pur:#5B1DBF;--k:#0E0F14;--p:#F7F6F2}
*{box-sizing:border-box;min-width:0}
html{scroll-behavior:smooth}
body{margin:0;background:var(--k);color:var(--p);font:16px/1.6 Montserrat,"Segoe UI",system-ui,sans-serif;overflow-x:clip}
h1,h2,h3{line-height:1.08;letter-spacing:-.02em;text-wrap:balance;margin:0}
p{margin:0 0 1em}
a{color:inherit;text-underline-offset:3px}
:focus-visible{outline:3px solid #fff;outline-offset:3px}
.A{display:inline-block;height:.7em;width:.74em;vertical-align:baseline;margin:0 .015em;fill:currentColor}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation:none!important;transition:none!important}}

/* the bar, as on the home page */
.bar{display:flex;align-items:center;gap:16px;padding:16px max(5vw,16px)}
.brand{display:flex;align-items:center;gap:10px;text-decoration:none;margin-right:auto}
.brand svg.sym{width:46px;height:27px;transition:transform .25s}
.brand:hover svg.sym{transform:scale(1.1)}
.wm{font-weight:700;font-size:13px;line-height:1.02;letter-spacing:.01em}
.bar .mail{font-weight:600;font-size:14px;text-decoration:none;padding:10px 0;border-bottom:2px solid var(--red)}

/* both the title band and the text share one left edge */
.wrap{max-width:1016px;margin:0 auto}

/* title band: the Legal block's purple, with the mark's two triangles drawn faintly behind */
.top{position:relative;overflow:hidden;background:var(--pur);color:#fff;padding:clamp(40px,7vw,96px) max(5vw,16px) clamp(28px,4vw,44px)}
.top .wrap{position:relative}
.top h1{font-size:clamp(42px,7.4vw,80px);font-weight:800;letter-spacing:-.035em}
.lede{font-size:clamp(16px,1.6vw,19px);font-weight:500;max-width:40ch;margin:16px 0 0}
.when{font-size:14px;margin:8px 0 0;opacity:.8}
.docs{display:flex;flex-wrap:wrap;gap:10px;margin-top:clamp(24px,3.4vw,36px)}
.docs a{min-height:40px;display:inline-flex;align-items:center;padding:0 16px;border-radius:999px;border:2px solid #fff;font-weight:700;font-size:14px;text-decoration:none}
.docs a[aria-current=page]{background:#fff;color:var(--pur)}
.docs a:not([aria-current]):hover{background:rgba(255,255,255,.16)}
.mark{position:absolute;right:max(-4vw,-60px);bottom:-34%;width:min(64vw,660px);height:auto;pointer-events:none}
@media(max-width:700px){.mark{bottom:-12%;right:-24vw;width:96vw;opacity:.7}}

/* the text */
.read{background:var(--bg);color:var(--ink);padding:clamp(36px,5vw,64px) max(5vw,16px) clamp(64px,9vw,120px)}
.read :focus-visible{outline-color:var(--red)}
.doc{display:grid;grid-template-columns:minmax(0,760px)}
.toc summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;cursor:pointer;list-style:none}
.toc summary::-webkit-details-marker{display:none}
.toc summary::after{content:"";width:9px;height:9px;border-right:2px solid var(--mut);border-bottom:2px solid var(--mut);transform:translateY(-3px) rotate(45deg);transition:transform .2s}
.toc details[open] summary::after{transform:translateY(2px) rotate(-135deg)}
.toc h2{font-size:14px;font-weight:700;letter-spacing:0;color:var(--mut);margin:0}
.toc ul{padding-bottom:8px}
.toc ul{list-style:none;margin:0;padding:0;display:grid;gap:0 24px;grid-template-columns:repeat(auto-fill,minmax(190px,1fr))}
.toc a{display:block;padding:5px 0;font-size:14px;font-weight:600;line-height:1.35;text-decoration:none;color:var(--mut)}
.toc a:hover{color:var(--ink)}
@media(max-width:1079px){.toc{border-top:1px solid var(--line);border-bottom:1px solid var(--line)}}
@media(min-width:1080px){.doc{grid-template-columns:200px minmax(0,760px);gap:56px}.toc{position:sticky;top:24px;align-self:start;max-height:calc(100vh - 48px);overflow-y:auto;overscroll-behavior:contain}.toc ul{grid-template-columns:none}
  .toc summary{min-height:0;margin-bottom:8px;cursor:default;pointer-events:none}.toc summary::after{display:none}}

article h2{font-size:clamp(22px,2.4vw,27px);font-weight:700;margin:52px 0 14px;scroll-margin-top:24px}
article h2:first-child{margin-top:28px}
@media(min-width:1080px){article h2:first-child{margin-top:0}}
article h3{font-size:17px;font-weight:700;letter-spacing:-.01em;margin:26px 0 8px}
article ul{padding-left:1.2em;margin:0 0 1em}
article li{margin-bottom:8px}
article li::marker{color:var(--tint)}
.short{font-size:clamp(17px,1.7vw,19px);font-weight:500;line-height:1.55}
.short li{margin-bottom:10px}
.note{color:var(--mut);font-size:15px}
.path{font-weight:600;white-space:nowrap}

.tw{overflow-x:auto;margin:4px 0 1.2em}
table{border-collapse:collapse;width:100%;font-size:15px;line-height:1.5}
th,td{text-align:left;padding:12px 14px 12px 0;border-bottom:1px solid var(--line);vertical-align:top}
th{font-size:13px;font-weight:700;color:var(--mut);border-bottom-width:2px}
.cols3 th:nth-child(1){width:38%}.cols3 th:nth-child(2){width:36%}
td:first-child{font-weight:600}
td:last-child,th:last-child{padding-right:0}
/* on phones each row becomes a small block, with the column name in front of each line */
@media(max-width:640px){
  .stack thead{display:none}
  .stack tr{display:block;padding:14px 0;border-bottom:1px solid var(--line)}
  .stack td{display:block;border:0;padding:2px 0}
  .stack td[data-l]::before{content:attr(data-l) ": ";color:var(--mut);font-weight:600}
}

/* footer, as on the home page */
.foot{display:flex;flex-wrap:wrap;gap:6px 20px;align-items:center;padding:16px max(5vw,16px);font-size:13px;color:#A9ABB6;background:var(--k)}
.foot nav{display:flex;gap:6px 18px;flex-wrap:wrap;margin-left:auto}
.foot a{color:#F7F6F2;text-decoration:none;font-weight:600;padding:4px 0}
.foot a[aria-current=page]{text-decoration:underline;text-decoration-color:var(--red);text-decoration-thickness:2px}
