/* Reading pages (D447): Support, Privacy and Terms. Colours come only from the
   tokens in site.css, so all three styles work: one calm column, hairlines
   instead of boxes. The Handbook has its own stylesheet, handbook.css. */

/* ---------- Part 1: About us, Support, Privacy, Terms (body.legal) ---------- */

body.legal{--col:640px;--gut:16px;--rule:color-mix(in srgb,var(--ink) 15%,transparent);
  min-height:100dvh;display:flex;flex-direction:column;line-height:1.65}
/* The Aida weave is the home page's; a reading page keeps the plain ground. */
html[data-style="blush"] body.legal{background-image:none}

.legal-top,.legal-main{width:100%;max-width:calc(var(--col) + var(--gut) * 2);margin:0 auto;padding-left:var(--gut);padding-right:var(--gut)}
.legal-top{padding-top:clamp(20px,3.6vw,36px)}
.legal-top .brand{display:inline-flex;align-items:center;gap:10px;text-decoration:none;color:var(--ink);
  font-family:var(--display);font-weight:var(--display-w);letter-spacing:var(--track);font-size:19px;line-height:1}
.legal-top .brand img{width:28px;height:28px;border-radius:7px}
.legal-main{flex:1;padding-top:clamp(32px,6vw,64px);padding-bottom:clamp(40px,5vw,56px)}

/* Title block */
.legal h1{font-family:var(--display);font-weight:var(--display-w);letter-spacing:var(--track);color:var(--ink);
  font-size:clamp(36px,6.2vw,56px);line-height:1.04;margin:0;overflow-wrap:break-word}
.legal .meta{margin:18px 0 0;font-size:14.5px;line-height:1.5;color:var(--ink-2)}
.legal .lead{margin:28px 0 0;font-size:clamp(18px,1.9vw,20px);line-height:1.5;color:var(--ink)}

/* Text */
.legal-doc p,.legal-doc li{font-size:17px;color:var(--ink-2)}
.legal-doc p{margin:.9em 0}
.legal-doc strong{color:var(--ink);font-weight:650}
.legal-doc ul,.legal-doc ol{padding-left:1.2em;margin:.9em 0}
.legal-doc li{margin:.4em 0}
.legal-doc li::marker{color:var(--muted)}
.legal-doc a{color:var(--accent);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px;
  text-decoration-color:color-mix(in srgb,var(--accent) 40%,transparent);transition:text-decoration-color .2s}
.legal-doc a:hover{text-decoration-color:currentColor}
.legal-doc em{font-style:italic}
.legal-doc code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.88em;color:var(--ink);
  background:color-mix(in srgb,var(--ink) 7%,transparent);padding:.1em .38em;border-radius:5px}

/* Sections: a hairline, a short heading, plain paragraphs. */
.legal-doc h2{font-family:var(--display);font-weight:var(--display-w);letter-spacing:calc(var(--track) * .55);color:var(--ink);
  font-size:clamp(21px,2.7vw,26px);line-height:1.2;margin:clamp(36px,5.5vw,56px) 0 0;padding-top:clamp(26px,3.6vw,36px);
  border-top:1px solid var(--rule);scroll-margin-top:24px}
.legal-doc h2 + p,.legal-doc h2 + ul,.legal-doc h2 + ol{margin-top:.7em}
.legal-doc h3{font-weight:650;font-size:16px;line-height:1.35;letter-spacing:0;color:var(--ink);margin:1.9em 0 .3em}
.legal-doc h3 + p,.legal-doc h3 + ul{margin-top:.5em}
/* The number is drawn, so the translated text stays plain; the text refers to "section 4". */
/* About us is a letter: the hoop by day or by night, the two names at the end. */
.about-hoop{display:block;width:clamp(150px,36vw,210px);height:auto;margin:0 0 22px -4px}
.about-hoop.at-night,html[data-style="night"] .about-hoop{display:none}
html[data-style="night"] .about-hoop.at-night{display:block}
.about .legal-doc h2{margin-top:1.7em;padding-top:0;border-top:0}
.about-ways{display:flex;flex-wrap:wrap;gap:6px 18px;align-items:baseline}
.legal-doc .about-sign{margin:2em 0 0;color:var(--ink);font-family:var(--display);font-weight:var(--display-w);letter-spacing:calc(var(--track) * .55);font-size:clamp(22px,2.6vw,26px);line-height:1.2}
.about-note{margin-top:2.4em;padding-top:1.1em;border-top:1px solid var(--rule)}

.legal-doc.numbered{counter-reset:sec}
.legal-doc.numbered h2{padding-left:1.6em;text-indent:-1.6em}
.legal-doc.numbered h2::before{counter-increment:sec;content:counter(sec);display:inline-block;min-width:1.6em;text-indent:0;color:var(--accent);font-feature-settings:'tnum'}

/* Contents (Privacy): a quiet index, not a box. */
.legal-doc .toc{margin:44px 0 0}
.legal-doc .toc strong{display:block;margin:0 0 12px;font:650 12px/1 var(--text);letter-spacing:.08em;text-transform:uppercase;color:var(--ink-2)}
.legal-doc .toc ol{margin:0;padding:0;list-style:none;counter-reset:toc;columns:2 250px;column-gap:36px}
.legal-doc .toc li{counter-increment:toc;margin:0;padding:5px 0;font-size:15px;line-height:1.4;break-inside:avoid}
.legal-doc .toc li::before{content:counter(toc);display:inline-block;min-width:1.8em;color:var(--accent);font-feature-settings:'tnum'}
.legal-doc .toc a{color:var(--ink-2);text-decoration:none}
.legal-doc .toc a:hover{color:var(--accent)}

/* Table (Privacy): hairline rows. */
.legal-doc .table-wrap{margin:1.2em 0;overflow-x:auto}
.legal-doc table{border-collapse:collapse;width:100%;font-size:15px;line-height:1.55}
.legal-doc th{text-align:left;padding:0 18px 10px 0;border-bottom:1px solid var(--rule);font:650 12px/1.2 var(--text);letter-spacing:.06em;text-transform:uppercase;color:var(--ink-2)}
.legal-doc td{vertical-align:top;padding:14px 18px 14px 0;border-bottom:1px solid var(--rule);color:var(--ink-2)}
.legal-doc td:first-child{color:var(--ink);font-weight:600}
.legal-doc td.mono{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:13.5px;white-space:nowrap;color:var(--ink)}
.legal-doc tr:last-child td{border-bottom:0;padding-bottom:0}
@media (max-width:640px){
  .legal-doc thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
  .legal-doc table,.legal-doc tbody{display:block}
  .legal-doc tr{display:block;padding:14px 0;border-bottom:1px solid var(--rule)}
  .legal-doc tr:last-child{border-bottom:0}
  .legal-doc td{display:inline;padding:0;border:0}
  .legal-doc td.mono{margin-left:.7em}
  .legal-doc td:last-child{display:block;margin-top:.35em}
}

/* Buttons: one filled action, one outlined. */
.legal-doc .mail,.legal-doc .btn-line{display:inline-block;border-radius:999px;font:650 16px/1.2 var(--text);text-decoration:none;cursor:pointer;
  transition:background .2s,filter .2s,color .2s}
.legal-doc .mail{padding:14px 26px;background:var(--accent);color:var(--on-accent);font-size:clamp(16px,2.2vw,18px);overflow-wrap:anywhere}
.legal-doc .mail:hover{filter:brightness(1.07)}
.legal-doc .btn-line{padding:10px 20px;border:1px solid var(--rule);background:transparent;color:var(--ink)}
.legal-doc .btn-line:hover{background:var(--accent-soft);color:var(--accent)}

/* Support: the address is the one action; the rest is two quiet lines. */
.legal-doc .actions{margin:36px 0 0}
.legal-doc .actions + p{margin-top:22px}
/* Support: the common problems, quieter than a section, above the e-mail. */
.legal-doc .quick h2{margin-top:clamp(22px,3.4vw,32px);padding-top:0;border:0;font-size:clamp(19px,2.4vw,22px)}
.legal-doc .more{margin-top:clamp(36px,4.4vw,48px);padding-top:clamp(26px,3.6vw,36px);border-top:1px solid var(--rule)}
.legal-doc .more h2{margin:0;padding:0;border:0;font-size:clamp(21px,2.7vw,26px)}
.legal-doc .more p{margin:.5em 0 0}
.legal-doc .more .go::after{content:" \2192"}
.legal-doc .small{margin-top:clamp(24px,3.2vw,32px);font-size:15px;line-height:1.55;scroll-margin-top:24px}

/* The shared footer is one line from about 1000px; between 760 and 1000px it wraps to two tidy rows here. */
@media (min-width:761px) and (max-width:1000px){
  body.legal .foot{flex-wrap:wrap;justify-content:flex-start;row-gap:8px;padding-top:12px;padding-bottom:16px}
  body.legal .foot>span:first-child{white-space:nowrap}
  body.legal .foot nav,body.legal .foot .cta{margin-left:auto}   /* the links and "Get the app" sit at the right of their rows, the controls together at the left */
  body.legal .foot .grow{display:block;flex:0 0 100%;height:0}
}

/* Phones: the links a finger meets on their own are 40px tall. */
@media (max-width:640px),(pointer:coarse) and (max-height:500px){
  .legal-top .brand{min-height:40px}
  .legal-doc .toc li{padding:0}
  .legal-doc .toc a{display:inline-block;padding:10px 8px;margin:0 -8px}
}

@media print{.legal-top,.foot,.consent{display:none}.legal-main{padding:0}}
