/* ==========================================================================
   Pages légales (terms.html, privacy.html)
   S'appuie sur booking-page.css (en-tête de page, titres)
   ========================================================================== */

.lg-langs { display: inline-flex; border: 1px solid var(--bk-line); }
.lg-langs button {
    padding: 9px 16px;
    font: inherit;
    font-size: 13px;
    letter-spacing: .08em;
    color: #d6d6d6;
    background: none;
    border: 0;
    cursor: pointer;
}
.lg-langs button + button { border-left: 1px solid var(--bk-line); }
.lg-langs button[aria-pressed="true"] { color: #0d0e0d; background: #fff; font-weight: 700; }
.lg-langs button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.lg-layout {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 48px;
    align-items: start;
    margin-top: 32px;
}
.lg-toc { position: sticky; top: calc(var(--hdr, 57px) + 24px); max-height: calc(100vh - var(--hdr, 57px) - 48px); overflow-y: auto; }
.lg-toc p { margin-bottom: 12px !important; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--bk-muted); }
.lg-toc ol { margin: 0; padding: 0; list-style: none; border-left: 1px solid var(--bk-line); }
.lg-toc a {
    display: block;
    padding: 6px 0 6px 14px;
    margin-left: -1px;
    font-size: 13px;
    line-height: 1.4;
    color: #a7a8a7;
    text-decoration: none;
    border-left: 1px solid transparent;
    transition: color .2s, border-color .2s;
}
.lg-toc a:hover { color: #fff; }
.lg-toc a.is-active { color: #fff; border-left-color: #fff; }

.lg-doc { max-width: 760px; color: #d6d6d6; font-size: 15px; line-height: 1.75; }
.lg-doc[hidden] { display: none; }
.lg-updated { margin-bottom: 28px !important; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--bk-muted); }
.lg-intro { padding: 18px 20px; margin-bottom: 32px !important; border: 1px solid var(--bk-line); background: var(--bk-surface); }
.lg-doc section { padding: 26px 0; border-top: 1px solid #333433; scroll-margin-top: calc(var(--hdr, 57px) + 20px); }
.lg-doc h3 { margin-bottom: 14px; font-size: 20px; line-height: 1.3; font-weight: 700; color: #fff; }
.lg-doc h3 span { display: block; margin-bottom: 6px; font-size: 11px; font-weight: 400; letter-spacing: .25em; color: var(--bk-muted); }
.lg-doc h4 { margin: 18px 0 6px; font-size: 15px; font-weight: 700; color: #fff; }
.lg-doc p { margin: 0 0 12px !important; }
.lg-doc ul { margin: 0 0 12px; padding-left: 20px; }
.lg-doc li { margin-bottom: 6px; }
.lg-doc a { color: #fff; }
.lg-doc strong { color: #fff; }
.lg-doc dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 20px; margin: 0 0 12px; }
.lg-doc dt { color: var(--bk-muted); }
.lg-doc dd { margin: 0; color: #fff; }

.lg-table { width: 100%; margin: 6px 0 14px; border-collapse: collapse; font-size: 13px; line-height: 1.55; }
.lg-table th, .lg-table td { padding: 10px 12px; text-align: left; vertical-align: top; border: 1px solid #333433; }
.lg-table th { font-weight: 700; color: #fff; background: #1b1b1b; }
.lg-table-wrap { overflow-x: auto; }

@media (max-width: 900px) {
    .lg-layout { grid-template-columns: 1fr; gap: 0; }
    .lg-toc { position: static; max-height: none; margin-bottom: 24px; padding: 16px 18px; border: 1px solid var(--bk-line); background: var(--bk-surface); }
    .lg-toc ol { columns: 2; column-gap: 20px; border-left: 0; }
    .lg-toc a { padding-left: 0; border-left: 0; }
}
@media (max-width: 600px) {
    /* Tableau en fiches empilées (intitulé de colonne au-dessus de chaque valeur) */
    .lg-table, .lg-table tbody, .lg-table tr, .lg-table td { display: block; width: 100%; }
    .lg-table thead { display: none; }
    .lg-table tr { margin-bottom: 12px; border: 1px solid #333433; background: #1b1b1b; }
    .lg-table td { border: 0; border-top: 1px solid #2a2b2a; padding: 8px 12px; }
    .lg-table td:first-child { border-top: 0; font-weight: 700; color: #fff; }
    .lg-table td::before { content: attr(data-label); display: block; margin-bottom: 2px; font-size: 10px; font-weight: 400; letter-spacing: .14em; text-transform: uppercase; color: var(--bk-muted); }
    .lg-toc ol { columns: 1; }
    .lg-doc { font-size: 14px; }
    .lg-doc dl { grid-template-columns: 1fr; gap: 0; }
    .lg-doc dd { margin-bottom: 8px; }
}
