/* ═══════════════════════════════════════════════════════════
   CŒUR ASTRAL - NUIT ÉDITORIALE LEGAL AND HELP PAGES (ALS-1061)
   ═══════════════════════════════════════════════════════════

   Conditions d'utilisation, Politique de confidentialité, Sécurité des
   enfants, Suppression des données, Aide (contact) and À propos
   (appWebsite/v2/_terms.html … _about_us.html), after spec A « lecture
   longue »: calm sky, a page header (eyebrow, Cormorant H1, italic lede,
   gold rule), then a 680px reading column in 17/28 (17/30 from 1024px)
   ivory-300 with violet-400 links. Sections are separated by a soft rule;
   the deletion and contact forms sit on one surface-1 card with .ca-field
   controls and a single primary button.

   Loaded from each page's extra_css block, after shell.css. Selectors start with `.ui-v2 .ca-legal`. No
   halo, no constellation and no animation: the sky stays calm for
   reading.

   style.css:73-120 sets font, colour and margins on p, span, h1-h3 and
   label, and Materialize strips list markers: rules below set what they
   style explicitly.

   Mobile-first breakpoint: 600px (tokens.css switches the type and
   rhythm at 1024px). */

/* ─────────────────────────────────────────────────────────────
   PAGE - reading column, header then body
   ───────────────────────────────────────────────────────────── */
.ui-v2 .ca-legal {
  display: block;
  box-sizing: border-box;
  max-width: calc(var(--container-text) + 2 * var(--gutter));
  margin: 0 auto;
  padding: var(--page-top) var(--gutter) var(--sp-96);
  color: var(--ivory-300);
  font-family: var(--font-ui);
}

.ui-v2 .ca-legal .ca-legal__header {
  margin-bottom: var(--block-gap);
}

/* ─────────────────────────────────────────────────────────────
   SECTIONS - Cormorant H2, long-reading body, soft rule between
   ───────────────────────────────────────────────────────────── */
/* margin and padding 0 beat style.css:216 section { padding }. */
.ui-v2 .ca-legal .ca-legal__section {
  margin: 0;
  padding: 0;
}

.ui-v2 .ca-legal .ca-legal__section + .ca-legal__section {
  margin-top: var(--block-gap);
  padding-top: var(--block-gap);
  border-top: 1px solid var(--rule-soft);
}

.ui-v2 .ca-legal .ca-legal__title {
  margin: 0 0 var(--sp-16);
  text-wrap: balance;
}

/* Direct children only, so the field errors inside a form keep their own
   type and colour. */
.ui-v2 .ca-legal .ca-legal__section > p,
.ui-v2 .ca-legal .ca-legal__links li {
  margin: 0;
  color: var(--ivory-300);
  font: 400 var(--fs-body-long) / var(--lh-body-long) var(--font-ui);
}

.ui-v2 .ca-legal .ca-legal__section > p + p,
.ui-v2 .ca-legal .ca-legal__section > p + .ca-legal__form,
.ui-v2 .ca-legal .ca-legal__section > .ca-legal__form + p {
  margin-top: var(--sp-16);
}

/* « Liens utiles » and « Ressources complémentaires »: one link per row,
   each a 44px touch target. */
.ui-v2 .ca-legal .ca-legal__links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ui-v2 .ca-legal .ca-legal__links li {
  list-style: none;
}

.ui-v2 .ca-legal .ca-legal__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* ─────────────────────────────────────────────────────────────
   FORMS - one surface-1 card, .ca-field controls, one primary button
   ───────────────────────────────────────────────────────────── */
.ui-v2 .ca-legal .ca-legal__form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-20);
  margin: 0;
  padding: var(--card-pad);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  background-color: var(--surface-1);
}

/* Prénom and Nom: stacked on phones, side by side from 600px. */
.ui-v2 .ca-legal .ca-legal__row {
  display: grid;
  gap: var(--sp-20);
}

.ui-v2 .ca-legal .ca-legal__form .ca-btn {
  width: 100%;
}

@media (min-width: 600px) {
  .ui-v2 .ca-legal .ca-legal__form {
    padding: var(--sp-32);
  }

  .ui-v2 .ca-legal .ca-legal__row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
