/* =====================================================
   CONTENT PAGES CSS
   Pages concernées : Legal, Privacy, Question
   (About et Investor/BusinessPlan utilisent _LayoutHabits,
   qui ne propose pas de section Styles - voir devlife.css)
   ===================================================== */

/* ---------- Titres de section ---------- */
.container section > h2 {
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

/* ---------- Sommaire / table des matières ---------- */
.page-toc {
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.page-toc .card-title {
    color: var(--text-color);
}

.page-toc ul li {
    margin-bottom: 0.15rem;
}

.page-toc a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.6rem;
    border-radius: var(--radius);
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.page-toc a::before {
    content: "\F231"; /* bi-chevron-right */
    font-family: "bootstrap-icons", sans-serif;
    font-size: 0.75rem;
    color: var(--color-primary);
    transition: color 0.15s ease;
}

.page-toc a:hover,
.page-toc a:focus-visible {
    background-color: var(--color-primary);
    color: #fff;
}

.page-toc a:hover::before,
.page-toc a:focus-visible::before {
    color: #fff;
}

/* Ancre : compense la navbar fixe lors du scroll */
section[id] {
    scroll-margin-top: 6rem;
}

/* ---------- Listes de définitions (mentions légales) ---------- */
.legal-dl dt {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding-top: 0.65rem;
    border-top: 1px solid var(--border-color);
}

.legal-dl dd {
    color: var(--text-color);
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
    border-top: 1px solid var(--border-color);
}

.legal-dl dt:first-of-type,
.legal-dl dd:first-of-type {
    border-top: 0;
    padding-top: 0;
}

/* ---------- Tableaux (RGPD, durées de conservation...) ---------- */
.table-responsive {
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
}

.table-responsive .table {
    margin-bottom: 0;
}

.table-responsive .table thead th {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--text-secondary);
}

/* ---------- Question : liens rapides sous le hero ---------- */
.question-quicklinks {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.question-quicklinks .btn {
    border-radius: 999px;
}
