/*
 * StreamNovo — pages légales (Terms, Refund, Privacy, Cookies). Page claire : papier, cartes blanches à ombre légère,
 * capitales condensées pour les titres seulement. Corail : la barre du h1 uniquement.
 */
.lg { padding-block: 72px 96px; }
.lg-head { max-width: 46rem; margin-bottom: 56px; }
.lg-head .lede { margin-top: 16px; }

.lg-layout { display: grid; grid-template-columns: 240px minmax(0, 46rem); gap: 72px; align-items: start; }

/* Colonne : sommaire et autres documents */
.lg-side { position: sticky; top: 96px; display: grid; gap: 32px; max-height: calc(100vh - 120px); overflow: auto; padding-right: 4px; }
.lg-side-title { margin: 0 0 12px; font: 600 13px/16px var(--font-etiquette); letter-spacing: .06em; text-transform: uppercase; color: var(--encre-douce); }
.lg-side ol, .lg-side ul { list-style: none; margin: 0; padding: 0; }
.lg-toc ol { counter-reset: lg-toc; }
.lg-toc li { counter-increment: lg-toc; }
.lg-side a { display: flex; gap: 10px; padding: 6px 0; font: 500 14px/20px var(--font-texte); color: var(--encre-douce); text-decoration: none; }
.lg-toc a::before { content: counter(lg-toc) "."; min-width: 1.4em; color: var(--encre-douce); font-variant-numeric: tabular-nums; }
.lg-side a:hover, .lg-side a[aria-current] { color: var(--encre); }
.lg-docs a[aria-current] { font-weight: 700; }

/* Texte */
.lg-body { counter-reset: lg-sec; font: 400 17px/28px var(--font-texte); color: var(--encre); }
.lg-body section { counter-increment: lg-sec; padding-top: 48px; scroll-margin-top: 88px; }
.lg-body h2 { font-size: 26px; line-height: 30px; margin: 0 0 16px; }
.lg-body section h2::before { content: counter(lg-sec, decimal-leading-zero); display: block; width: auto; height: auto; margin: 0 0 8px; background: none; font: 600 13px/16px var(--font-etiquette); letter-spacing: .06em; color: var(--encre-douce); }
.lg-body p { margin: 0 0 16px; }
.lg-body ul, .lg-body ol { margin: 0 0 16px; padding-left: 1.3em; }
.lg-body li { margin-bottom: 8px; padding-left: 4px; }
.lg-body li::marker { color: var(--encre-douce); }
.lg-body strong { font-weight: 700; }
.lg-body a { color: var(--encre); text-decoration: underline; text-decoration-color: rgba(16,19,28,.35); text-underline-offset: 3px; }
.lg-body a:hover { text-decoration-color: var(--encre); }
.lg-body code { font: 500 14px/20px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-wrap: anywhere; }

/* Résumé : carte blanche */
.lg-summary { padding: 28px 32px; background: var(--carte); border-radius: var(--r-md); box-shadow: var(--relief); }
.lg-summary h2 { font-size: 22px; line-height: 26px; margin: 0 0 14px; }
.lg-summary h2::before { display: none; }
.lg-summary ul { margin-bottom: 14px; }
.lg-summary p { margin: 0; font-size: 15px; line-height: 22px; color: var(--encre-douce); }

/* Tableaux : carte blanche, défilement horizontal sur mobile */
.lg-body table { display: block; width: 100%; max-width: 100%; overflow-x: auto; margin: 8px 0 20px; border-collapse: collapse; background: var(--carte); border-radius: var(--r-md); box-shadow: var(--relief); font-size: 15px; line-height: 22px; }
.lg-body thead, .lg-body tbody { display: table; width: 100%; table-layout: fixed; }
.lg-body th, .lg-body td { padding: 14px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid rgba(16,19,28,.1); }
.lg-body th { font: 600 13px/16px var(--font-etiquette); letter-spacing: .06em; text-transform: uppercase; color: var(--encre-douce); }
.lg-body tbody tr:last-child td { border-bottom: 0; }

/* Pied du texte */
.lg-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(16,19,28,.14); }
.lg-foot p { margin: 0; }
.lg-print { padding: 10px 16px; border: 1px solid rgba(16,19,28,.22); border-radius: var(--r-md); background: transparent; color: var(--encre); font: 600 15px/1 var(--font-texte); cursor: pointer; }
.lg-print:hover { border-color: var(--encre); }
.lg-print:focus-visible, .lg-side a:focus-visible { outline: 2px solid var(--encre); outline-offset: 2px; }

@media (max-width: 960px) {
  .lg { padding-block: 48px 72px; }
  .lg-head { margin-bottom: 32px; }
  .lg-layout { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .lg-side { position: static; max-height: none; overflow: visible; order: 2; padding-top: 32px; border-top: 1px solid rgba(16,19,28,.14); }
  .lg-toc { display: none; }
}
@media (max-width: 600px) {
  .lg-body { font-size: 16px; line-height: 26px; }
  .lg-body h2 { font-size: 23px; line-height: 27px; }
  .lg-summary { padding: 22px 20px; }
  /* Tableaux : une fiche par ligne, l'intitulé de colonne au-dessus de chaque valeur */
  .lg-body table, .lg-body tbody, .lg-body tr, .lg-body td { display: block; width: auto; }
  .lg-body thead { display: none; }
  .lg-body tr { padding: 14px 18px; border-bottom: 1px solid rgba(16,19,28,.1); }
  .lg-body tbody tr:last-child { border-bottom: 0; }
  .lg-body td { padding: 0 0 8px; border: 0; }
  .lg-body td:last-child { padding-bottom: 0; }
  .lg-body td::before { content: attr(data-label); display: block; margin-bottom: 2px; font: 600 12px/16px var(--font-etiquette); letter-spacing: .06em; text-transform: uppercase; color: var(--encre-douce); }
}

@media print {
  .top, .foot, .fab, .lg-side, .lg-print { display: none !important; }
  .lg { padding: 0; }
  .lg-layout { display: block; }
  .lg-summary, .lg-body table { box-shadow: none; border: 1px solid #ccc; }
  .lg-body a { text-decoration: none; }
}
.lg-lang { margin: 12px 0 0; font-size: 15px; line-height: 22px; }
.lg-lang a { color: var(--encre); font-weight: 600; }
