/* KL Prépa — pages légales (confidentialité, mentions légales), sur les jetons de landing.css. Une page de lecture calme :
   les deux pages en paire, un sommaire qui reste en vue sur grand écran, des sections numérotées dans des disques,
   une mesure d'environ 68 caractères. */
.lg { --lg-line: #dfe5f0; padding-top: clamp(24px, 4vw, 56px); }
.lg ol, .lg ul { margin: 0; padding: 0; list-style: none; }
.lg :target { scroll-margin-top: 24px; }

.lg-head { max-width: 980px; }
.lg-pair { display: inline-flex; gap: 4px; padding: 5px; border-radius: 999px; background: var(--paper); }
.lg-pair a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; border-radius: 999px; font-size: var(--step-small); font-weight: 600; text-decoration: none; color: var(--muted); transition: background-color .18s, color .18s; }
.lg-pair a[aria-current="page"] { background: var(--ink); color: var(--paper); }
@media (hover: hover) and (pointer: fine) { .lg-pair a:not([aria-current]):hover { background: var(--f-step); color: var(--ink); } }
.lg-head h1 { margin-top: clamp(20px, 2.6vw, 32px); font-size: clamp(2.125rem, 1.2rem + 3.4vw, 4rem); letter-spacing: -0.04em; line-height: 1.04; text-wrap: balance; }
.lg-head .lede { margin-top: clamp(14px, 1.8vw, 22px); max-width: 38em; font-size: var(--step-lead); line-height: 1.4; color: var(--muted); text-wrap: pretty; }

.lg-body { display: grid; grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); align-items: start; gap: clamp(20px, 3vw, 48px); margin-top: clamp(32px, 4.4vw, 64px); }

/* the contents */
.lg-toc { position: sticky; top: 24px; padding: 20px 12px 14px; border-radius: 28px; background: var(--paper); }
.lg-toc > p { padding: 0 10px 10px; font-size: var(--step-small); font-weight: 600; color: var(--muted); }
.lg-toc a { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 6px 10px; border-radius: 16px; font-size: .9375rem; font-weight: 500; line-height: 1.25; text-decoration: none; transition: background-color .18s; }
.lg-toc ul a { padding-left: 52px; min-height: 38px; font-size: .875rem; color: var(--muted); }
@media (hover: hover) and (pointer: fine) { .lg-toc a:hover { background: var(--ground); color: var(--ink); } }
.lg .n { flex: none; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--f-step); color: var(--ink); font-size: .8125rem; font-weight: 600; font-variant-numeric: tabular-nums; }

/* the text */
.lg-text { min-width: 0; padding: clamp(24px, 4.4vw, 64px); border-radius: clamp(28px, 3vw, 40px); background: var(--paper); font-size: var(--step-body); line-height: 1.65; }
.lg-text > section { max-width: 68ch; }
.lg-text > section + section { margin-top: clamp(32px, 3.6vw, 48px); padding-top: clamp(32px, 3.6vw, 48px); border-top: 1px solid var(--lg-line); }
.lg-text h2 { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; font-size: clamp(1.375rem, 1.1rem + .8vw, 1.75rem); letter-spacing: -0.025em; line-height: 1.2; }
.lg-text h2 .n { width: 38px; height: 38px; background: var(--accent); color: var(--on-accent); font-size: .9375rem; }
.lg-text p { text-wrap: pretty; }
.lg-text a { font-weight: 600; text-underline-offset: 4px; }
@media (hover: hover) and (pointer: fine) { .lg-text a:hover { color: var(--f-maths); } }

/* who: a tinted label above each description */
.lg-who { display: grid; gap: 18px; margin: 0; }
.lg-who dt { display: inline-flex; align-items: center; min-height: 30px; padding: 0 12px; border-radius: 999px; background: var(--f-sky); font-size: var(--step-small); font-weight: 600; }
.lg-who div:nth-child(2) dt { background: var(--f-mint); }
.lg-who div:nth-child(3) dt { background: var(--f-step); }
.lg-who dd { margin: 8px 0 0; }

/* durations: the item on the left, the duration on the right */
.lg-keep { margin: 0; border-radius: 20px; background: var(--ground); padding: 4px 20px; }
.lg-keep div { display: flex; justify-content: space-between; align-items: baseline; gap: 8px 24px; padding: 14px 0; }
.lg-keep div + div { border-top: 1px solid var(--lg-line); }
.lg-keep dt { min-width: 0; }
.lg-keep dd { margin: 0; font-weight: 600; text-align: right; }

/* the rules of use, numbered 2.1, 2.2… */
.lg-rules { display: grid; gap: 22px; }
.lg-rules li { scroll-margin-top: 24px; }
.lg-rules h3 { display: flex; align-items: baseline; gap: 10px; font-size: 1.125rem; font-weight: 600; letter-spacing: -0.015em; line-height: 1.3; }
.lg-rules h3 span { color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; }
.lg-rules p { margin-top: 4px; }

.lg-see { max-width: 68ch; margin-top: clamp(32px, 3.6vw, 48px); padding: 16px 20px; border-radius: 18px; background: var(--ground); font-size: var(--step-small); color: var(--muted); }

@media (max-width: 860px) {
  .lg-body { grid-template-columns: minmax(0, 1fr); }
  .lg-toc { position: static; }
}
@media (max-width: 520px) {
  .lg-keep div { flex-direction: column; gap: 2px; }
  .lg-keep dd { text-align: left; }
  .lg-text h2 { align-items: flex-start; }
}
