/* The legal pages' shared look (/privacy and /terms; play/legal.js dresses Mika). Prefix lg-. The toys come from the
   play kit (play/play.css); each page's own toys are in play/privacy.css / play/terms.css. Tokens, type, buttons, the
   header and footer come from /site.css. The look is the comparison's (compare/flow.css, the standard): soft filled
   slabs, no hairlines, Mika's colour the only colour, Geist and Geist Mono.

   The pieces:
     .lg-hero (on .pl-hero)  .lg-who > .lg-mika + .mika-says   Mika in its tie and what it says, centred
     .lg-tie                                                   the tie kit, drawn by Legal.tie() inside Mika's SVG
     .lg-full  .lg-full-head  .lg-toc                          the full text, its label and its pills
     .lg-card > .lg-no + h2 + .lg-take + text                  one section: § number, heading, Mika's take, the words
     .lg-take > .lg-take-mk[data-mika] + .lg-take-says         Mika's take, in place of the grey "In short" box (the
                                                               bubble starts with <span class="sr-only">In short: </span>)
     dl.lg-clauses > .lg-clause > dt + dd                      clauses as soft slabs, two columns from 720px
     .lg-updated                                               "Last updated", under the full text */

/* ---------- the top: Mika in its tie, saying something, then the page's label and title ---------- */
.lg-who { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 22px; }
.lg-mika { display: block; flex: none; width: 88px; height: 88px; }
.lg-who .mika-says { border-bottom-left-radius: 5px; text-align: left; }
html:not(.pl-js) .lg-mika:empty { display: none; }   /* no script, no Mika: the line stands on its own */
.lg-hero .pl-jump { margin-top: 22px; }

/* the tie, drawn inside Mika's own SVG (0..100 units) so it squashes and breathes with the body */
.lg-tie .tie, .lg-tie .knot, .lg-tie .wing { transform-box: view-box; transition: transform .6s var(--ease-spring); }
.lg-tie .tie, .lg-tie .knot, .lg-tie .lg-drop { transform-box: view-box; transform-origin: 50px 62.6px; }
.lg-tie .lg-collar { transform-box: view-box; transform-origin: 50px 62.4px; }
.lg-tie .wing { fill: #f4f4f1; stroke: rgba(11, 11, 12, .3); stroke-width: .8; stroke-linejoin: round; }
.lg-tie .wing.l { transform-origin: 47.6px 62.4px; }
.lg-tie .wing.r { transform-origin: 52.4px 62.4px; }

/* ---------- the full text: every word of it, in soft cards ---------- */
.lg-full { margin-top: clamp(96px, 12vw, 150px); }
.lg-full-head { text-align: center; }
.lg-full-head .label { display: block; margin-bottom: 16px; }
.lg-toc { justify-content: center; margin-bottom: clamp(28px, 3.5vw, 40px); }
.lg-toc a { border: 0; background: var(--surface-2); color: var(--ink-2); transition: color .2s, background .2s; }
.lg-toc a:hover { color: var(--ink); background: var(--surface-3); }
.lg-toc a:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px rgba(255, 255, 255, .55); }

.lg-card { padding: clamp(26px, 3.6vw, 40px) clamp(22px, 4vw, 48px) clamp(28px, 4vw, 44px); border-radius: var(--r-card); background: var(--surface); scroll-margin-top: 90px; }
.lg-card + .lg-card { margin-top: 16px; }
.lg-no { display: block; margin-bottom: 12px; }
.lg-card > h2 { font-size: clamp(26px, 3vw, 34px); line-height: 1.1; letter-spacing: -0.015em; }
/* the words themselves: lighter than body grey, for reading; about 68 characters a line */
.lg-card p { font-size: 17px; line-height: 1.65; color: var(--ink-2); max-width: 68ch; text-wrap: pretty; }
.lg-card p + p { margin-top: 12px; }
.lg-card p a { color: var(--ink); text-underline-offset: 3px; }
.lg-card p a:hover { color: var(--mika); }

/* Mika's take: a little Mika and its chat bubble (the comparison's "them" bubble), where "In short" was */
.lg-take { display: flex; align-items: flex-end; gap: 8px; margin: 18px 0 22px; }
.lg-take-mk { display: block; flex: none; width: 26px; height: 26px; margin-bottom: 2px; }
html:not(.pl-js) .lg-take-mk:empty { display: none; }
.lg-card .lg-take-says { max-width: 36em; padding: 9px 14px 10px; border-radius: 20px 20px 20px 6px; background: var(--surface-3); color: var(--ink); font-size: 17px; line-height: 1.35; }

/* clauses: soft slabs, the name on top, the words under it */
.lg-clauses { display: grid; gap: 10px; margin: 0; }
.lg-clause { padding: 16px 18px 18px; border-radius: var(--r-inner); background: var(--surface-2); }
.lg-clause dt { margin-bottom: 6px; font-size: 15px; font-weight: 500; line-height: 1.35; color: var(--ink); }
.lg-clause dd { margin: 0; }
.lg-card .lg-clause p { font-size: 16px; line-height: 1.6; }
@media (min-width: 720px) {
  .lg-clauses { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg-clause:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
.lg-updated { margin-top: 28px; text-align: center; }

@media (max-width: 560px) {
  .lg-card { padding: 24px 18px 26px; border-radius: 24px; }
  .lg-card p { font-size: 16.5px; }
  .lg-card .lg-take-says { font-size: 16px; }
}
@media (max-width: 370px) {
  .lg-who { gap: 10px; }
  .lg-mika { width: 72px; height: 72px; }
  .lg-who .mika-says { max-width: 11em; }
}
