/* =========================================================
   Moving parts, the legal pages: terms, licence, refunds,
   privacy, legal notice. Long text to read, set like the
   account page: one title, then sections, a heading on the
   left and its text on the right. The site's header, footer,
   type and colours; nothing of the landing's staging.
   ========================================================= */

.legal { padding: clamp(112px, 17vh, 168px) var(--gut) clamp(64px, 10vh, 120px); }
.legal > * { max-width: 1120px; }

.legal-head h1 { font-weight: 430; font-size: clamp(36px, 3.6vw, 52px); line-height: 1; letter-spacing: -.045em; }
.legal-ver { margin-top: 12px; color: var(--muted); font-size: 16px; line-height: 1.45; }

/* the five pages, the one you are on in the text colour */
.legal-nav { display: flex; flex-wrap: wrap; gap: 6px clamp(16px, 2vw, 28px); margin-top: clamp(20px, 3vh, 30px); font-size: 15px; }
.legal-nav a { padding-block: 6px; color: var(--muted); transition: color var(--mi-fast); }
.legal-nav a[aria-current="page"] { color: var(--text); box-shadow: 0 1px 0 var(--text); }
@media (hover: hover) { .legal-nav a:hover { color: var(--text); } }

/* ---------- a section: its heading on the left, its text on the right ---------- */
.legal-sec { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); gap: 14px clamp(24px, 4vw, 72px); margin-top: clamp(28px, 4.4vh, 48px); padding-top: clamp(22px, 3.2vh, 34px); border-top: 1px solid var(--line); scroll-margin-top: 84px; }
.legal-head + .legal-sec { margin-top: clamp(36px, 6vh, 64px); border-top-color: var(--line-strong); }
.legal-sec h2 { font-weight: 440; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.25; letter-spacing: -.025em; text-wrap: balance; }
.legal-sec > div { max-width: 68ch; color: var(--muted); font-size: clamp(16px, 1.1vw, 17px); line-height: 1.6; }
.legal-sec > div > * + * { margin-top: 14px; }
.legal-sec h3 { margin-top: 26px; color: var(--text); font-weight: 440; font-size: 16.5px; line-height: 1.3; letter-spacing: -.02em; }
.legal-sec h3:first-child { margin-top: 0; }
.legal-sec h3 + * { margin-top: 8px; }
.legal-sec ul { list-style: none; display: grid; gap: 8px; }
.legal-sec li { position: relative; padding-left: 20px; }
.legal-sec li::before { content: ""; position: absolute; left: 2px; top: .72em; width: 8px; height: 1px; background: var(--label); }
.legal-sec .u { color: var(--text); overflow-wrap: anywhere; }

/* the few lines that open a page, before its first numbered section */
.legal-lead > div { grid-column: 2; color: var(--text); }
.legal-quiet { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* the model form of a withdrawal: set apart, to copy */
.legal-form { padding: 16px 18px; border-radius: var(--radius); border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); }

/* a detail not filled in yet: it must be seen */
.hole { padding: 1px 6px; border-radius: 6px; border: 1px dashed var(--accent, #ffab1a); background: color-mix(in srgb, var(--accent, #ffab1a) 12%, transparent); color: var(--accent, #ffab1a); font-size: .94em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

@media (max-width: 820px) {
  .legal-sec { grid-template-columns: 1fr; }
  .legal-lead > div { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .legal-nav a { transition: none; }
}
