/* The legal pages (/terms/, /privacy/): long text, read on a phone as often as on a desk. Frost canvas, ink type,
   one column held to a comfortable measure. No motion. */
.legal { background: var(--frost); color: var(--ink); }
.legal .wrap { width: min(100% - 2 * var(--pad), 760px); }
.legal a { text-decoration: underline; text-decoration-color: var(--smoke); text-underline-offset: 3px; }
.legal a:hover { text-decoration-color: var(--ink); }
.legal :focus-visible { outline-color: var(--ink); }

.legal-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; }
.legal-head .logo { display: flex; align-items: center; gap: 9px; text-decoration: none; }
.legal-head .logo-s { height: 28px; width: auto; }
.legal-head .logo-w { height: 15px; width: auto; }
.langs { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--wash); font-size: 14px; }
.langs a { display: grid; place-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px; text-decoration: none; color: var(--ash); }
html[data-lang="fr"] .langs [data-to="fr"], html[data-lang="en"] .langs [data-to="en"] { background: var(--paper); color: var(--ink); box-shadow: var(--shadow-card); }

/* One language at a time once the script has chosen; both when it has not run. */
html[data-lang="fr"] [data-l="en"], html[data-lang="en"] [data-l="fr"] { display: none; }
html:not([data-lang]) article + article { margin-top: 96px; padding-top: 48px; border-top: 1px solid var(--hairline); }

.legal main { padding: clamp(24px, 6vw, 64px) 0 72px; }
.legal h1 { font-weight: 600; font-size: clamp(34px, 6vw, 56px); line-height: 1.04; letter-spacing: -.035em; text-wrap: balance; }
.legal h1 + p { margin-top: 14px; font-family: var(--mono); font-size: 12.5px; letter-spacing: .04em; color: var(--ash); }
.legal h2 { margin-top: 56px; font-weight: 600; font-size: clamp(21px, 2.6vw, 26px); line-height: 1.2; letter-spacing: -.02em; scroll-margin-top: 24px; }
.legal p, .legal li { font-size: 16.5px; line-height: 1.65; text-wrap: pretty; }
.legal article > p, .legal article > ul, .legal .table { margin-top: 16px; }
.legal article > ul { display: grid; gap: 8px; padding-left: 20px; list-style: disc; }
.legal article > ul li::marker { color: var(--smoke); }
.legal strong { font-weight: 600; }

.toc { margin-top: 32px; padding: 20px 22px; border-radius: var(--r-card); background: var(--paper); box-shadow: var(--shadow-card); }
.toc ol { columns: 2; column-gap: 28px; padding-left: 22px; list-style: decimal; }
.toc li { font-size: 14.5px; line-height: 1.4; padding: 5px 0; break-inside: avoid; color: var(--ash); }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { text-decoration: underline; }

/* Tables scroll inside their own box: the page itself never scrolls sideways. */
.table { overflow-x: auto; border-radius: var(--r-wash); background: var(--paper); box-shadow: var(--shadow-card); }
.legal table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14.5px; line-height: 1.5; }
.legal th, .legal td { padding: 12px 16px; text-align: left; vertical-align: top; border-top: 1px solid var(--hairline); }
.legal thead th { border-top: 0; font-family: var(--mono); font-weight: 400; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ash); }
.legal tbody th { font-weight: 500; white-space: nowrap; }

.legal-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 28px 0 40px; border-top: 1px solid var(--hairline); font-size: 14px; color: var(--ash); }
.legal-foot nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.legal-foot a { color: var(--ink); min-height: 32px; display: inline-flex; align-items: center; }

@media (max-width: 640px) {
  .toc ol { columns: 1; }
  .legal tbody th { white-space: normal; }
}
@media print {
  .legal { background: #fff; }
  .legal-head .langs, .skip, .toc { display: none; }
  .table { box-shadow: none; overflow: visible; }
  .legal table { min-width: 0; }
}
