/* Pages légales bentops · réutilise les variables de styles.css */

.legalnav {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--wrap); margin-inline: auto;
  padding: 1.25rem var(--gutter);
}
.legalnav__brand { display: flex; align-items: center; gap: 0.6rem; font-family: var(--sans); font-weight: 600; font-size: 1.1rem; color: var(--ink-strong); text-decoration: none; }
.legalnav__brand svg { width: 26px; height: 26px; color: var(--ink-strong); }
.legalnav__links { display: flex; align-items: center; gap: 1.5rem; }
.legalnav a { color: var(--ink-muted); text-decoration: none; font-size: 0.92rem; }
.legalnav a:hover { color: var(--ink-strong); }

.legal { max-width: 760px; margin: 1rem auto 5rem; padding-inline: var(--gutter); }
.legal__kicker { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-subtle); }
.legal h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.9rem, 4vw, 2.8rem); color: var(--ink-strong); line-height: 1.12; margin: 0.5rem 0 1rem; }
.legal__meta { font-size: 0.85rem; color: var(--ink-subtle); border-bottom: 1px solid var(--hairline); padding-bottom: 1.5rem; margin-bottom: 2.25rem; line-height: 1.6; }
.legal h2 { font-family: var(--serif); font-weight: 500; font-size: 1.45rem; color: var(--ink-strong); margin: 2.75rem 0 0.75rem; }
.legal h3 { font-family: var(--sans); font-weight: 600; font-size: 1rem; color: var(--ink); margin: 1.6rem 0 0.5rem; }
.legal p, .legal li { font-size: 1rem; line-height: 1.72; color: var(--ink); }
.legal p { margin: 0.75rem 0; }
.legal ul, .legal ol { padding-left: 1.3rem; margin: 0.5rem 0 1.1rem; }
.legal li { margin: 0.4rem 0; }
.legal a { color: var(--sauge-text); text-decoration: underline; text-underline-offset: 2px; }
.legal strong { color: var(--ink-strong); font-weight: 600; }
.legal__lead { font-size: 1.08rem; color: var(--ink-muted); line-height: 1.7; }
.legal__note {
  background: var(--surface-2); border: 1px solid var(--hairline);
  border-left: 3px solid var(--sauge); border-radius: 10px;
  padding: 1rem 1.25rem; margin: 1.5rem 0; font-size: 0.94rem; color: var(--ink-muted); line-height: 1.65;
}
.legal__placeholder { color: var(--flow); font-family: var(--mono); font-size: 0.9em; }
.legal__contact { background: var(--surface); border: 1px solid var(--hairline); border-radius: 10px; padding: 1.25rem 1.5rem; margin: 1.5rem 0; }
.legal__contact p { margin: 0.25rem 0; }
.legal__toc { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: 0.35rem; }
.legal__toc a { color: var(--ink-muted); text-decoration: none; font-size: 0.95rem; }
.legal__toc a:hover { color: var(--sauge-text); text-decoration: underline; }

.legal-pages-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--hairline); }
.legal-pages-links a { font-size: 0.9rem; }

/* ===================== Journal des versions (changelog) ===================== */
.cl-actuelle {
  display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem 0.9rem;
  margin: 0 0 2.5rem; padding: 0.75rem 1rem;
  border: 1px solid var(--hairline); border-radius: 12px;
  background: var(--surface); font-size: 0.9rem; color: var(--ink);
}
.cl-actuelle__pastille { width: 9px; height: 9px; border-radius: 50%; background: var(--sauge); box-shadow: 0 0 0 4px color-mix(in srgb, var(--sauge) 22%, transparent); flex-shrink: 0; }
.cl-actuelle strong { font-family: var(--mono); color: var(--ink-strong); }
.cl-actuelle__note { color: var(--ink-subtle); font-size: 0.82rem; }

.cl-timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.cl-timeline::before {
  content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px;
  width: 2px; background: linear-gradient(to bottom, var(--hairline-strong), var(--hairline));
}
.cl-loading { color: var(--ink-subtle); font-size: 0.9rem; padding-left: 2rem; }

.cl-node { position: relative; padding: 0 0 2.25rem 2.25rem; }
.cl-node:last-child { padding-bottom: 0; }
.cl-dot {
  position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--sauge-dark);
  box-shadow: 0 0 0 4px var(--paper);
}
.cl-node:first-child .cl-dot { background: var(--sauge); border-color: var(--sauge-dark); }

.cl-card {
  border: 1px solid var(--hairline); border-radius: 14px; background: var(--surface);
  padding: 1.15rem 1.35rem 1.35rem;
}
.cl-head { display: flex; align-items: baseline; gap: 0.75rem; flex-wrap: wrap; }
.cl-ver { font-family: var(--mono); font-weight: 500; font-size: 0.95rem; color: var(--sauge-text); background: color-mix(in srgb, var(--sauge) 16%, var(--surface)); padding: 0.1rem 0.5rem; border-radius: 6px; }
.cl-date { font-family: var(--mono); font-size: 0.75rem; color: var(--ink-subtle); text-transform: lowercase; }
.cl-titre { font-family: var(--serif); font-weight: 500; font-size: 1.2rem; color: var(--ink-strong); margin: 0.6rem 0 0.9rem; line-height: 1.2; }

.cl-groupe { margin-top: 0.9rem; }
.cl-lab {
  display: inline-block; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 0.12rem 0.5rem; border-radius: 5px; margin-bottom: 0.5rem;
  border: 1px solid transparent;
}
.cl-g-ajouts .cl-lab { color: var(--sauge-text); background: color-mix(in srgb, var(--sauge) 15%, var(--surface)); }
.cl-g-correctifs .cl-lab { color: var(--ink-muted); background: var(--surface-2); }
.cl-g-securite .cl-lab { color: var(--flow); background: color-mix(in srgb, var(--flow) 12%, var(--surface)); }
.cl-liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.4rem; }
.cl-liste li { position: relative; padding-left: 1.1rem; font-size: 0.9rem; color: var(--ink); line-height: 1.5; }
.cl-liste li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 5px; height: 5px; border-radius: 50%; background: var(--hairline-strong); }
.cl-g-ajouts .cl-liste li::before { background: var(--sauge-dark); }
.cl-g-securite .cl-liste li::before { background: var(--flow); }

@media (max-width: 560px) {
  .cl-node { padding-left: 1.9rem; }
  .cl-card { padding: 1rem 1.05rem 1.1rem; }
}
