/* ==========================================================================
   Pages légales LBP (CGV, RGPD, Cookies, Mentions légales...)
   ========================================================================== */

.lbp-legal-page {
    background: #fcfcfc;
    padding: 60px 20px 80px;
    min-height: 60vh;
}

.lbp-legal-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Header
   ========================================================================== */
.lbp-legal-header {
    text-align: center;
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 2px solid #1FA8DC;
}

.lbp-legal-header h1 {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 700;
    font-size: 38px;
    color: #1a1a1a;
    margin: 0 0 10px;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.lbp-legal-updated {
    font-size: 14px;
    color: #888;
    margin: 0;
    font-style: italic;
}

@media (max-width: 600px) {
    .lbp-legal-header h1 {
        font-size: 28px;
    }
}

/* Layout 2 colonnes : sommaire sticky + contenu
   ========================================================================== */
.lbp-legal-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 50px;
    align-items: start;
}

@media (max-width: 900px) {
    .lbp-legal-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Sommaire (table des matières)
   ========================================================================== */
.lbp-legal-toc {
    position: sticky;
    top: 100px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 24px 24px 20px;
}

@media (max-width: 900px) {
    .lbp-legal-toc {
        position: static;
    }
}

.lbp-legal-toc h2 {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: #1FA8DC;
    margin: 0 0 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.lbp-legal-toc ol {
    list-style: none;
    counter-reset: toc-counter;
    padding: 0;
    margin: 0;
}

.lbp-legal-toc ol li {
    counter-increment: toc-counter;
    margin-bottom: 4px;
}

.lbp-legal-toc ol li a {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 4px;
    color: #555;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.4;
    transition: all 0.15s ease;
}

.lbp-legal-toc ol li a::before {
    content: counter(toc-counter);
    flex-shrink: 0;
    min-width: 20px;
    color: #999;
    font-weight: 600;
    font-size: 12px;
}

.lbp-legal-toc ol li a:hover {
    background: #f5f9fc;
    color: #1FA8DC;
}

.lbp-legal-toc ol li a:hover::before {
    color: #1FA8DC;
}

/* Contenu CGV
   ========================================================================== */
.lbp-legal-content {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 50px 60px;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

@media (max-width: 768px) {
    .lbp-legal-content {
        padding: 30px 24px;
    }
}

.lbp-legal-content section {
    margin-bottom: 40px;
    scroll-margin-top: 90px;
}

.lbp-legal-content section:last-of-type {
    margin-bottom: 0;
}

.lbp-legal-content h2 {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 700;
    font-size: 22px;
    color: #1a1a1a;
    margin: 0 0 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
    letter-spacing: -0.2px;
}

.lbp-legal-content section:first-child h2 {
    color: #1FA8DC;
    border-bottom-color: #d6ecf7;
}

.lbp-legal-content p {
    font-size: 15px;
    line-height: 1.75;
    color: #444;
    margin: 0 0 14px;
}

.lbp-legal-content p:last-child {
    margin-bottom: 0;
}

.lbp-legal-content strong {
    color: #1a1a1a;
    font-weight: 600;
}

.lbp-legal-content a {
    color: #1FA8DC;
    text-decoration: underline;
    font-weight: 500;
}

.lbp-legal-content a:hover {
    color: #1893c4;
}

.lbp-legal-content ul,
.lbp-legal-content ol {
    margin: 0 0 14px;
    padding-left: 28px;
}

.lbp-legal-content li {
    font-size: 15px;
    line-height: 1.7;
    color: #444;
    margin-bottom: 6px;
}

/* Encadré "Important" */
.lbp-legal-notice {
    background: #fff8e1;
    border-left: 4px solid #f5a623;
    padding: 16px 20px;
    border-radius: 4px;
    margin: 18px 0;
    font-size: 14px;
    line-height: 1.65;
    color: #5d4a1a;
}

.lbp-legal-notice strong {
    color: #b87800;
}

/* Bloc coordonnées société (en bas) */
.lbp-legal-company {
    margin-top: 50px;
    padding: 28px 30px;
    background: #f5f9fc;
    border-radius: 8px;
    border: 1px solid #d6ecf7;
}

.lbp-legal-company h2 {
    font-size: 16px;
    color: #1FA8DC;
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #c4e1f1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lbp-legal-company p {
    margin: 0;
    font-size: 14px;
    line-height: 1.9;
    color: #444;
}

.lbp-legal-company strong {
    color: #1a1a1a;
    font-size: 16px;
}

/* Smooth scroll pour les ancres */
html {
    scroll-behavior: smooth;
}

.lbp-legal-content h3 {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 700;
    font-size: 17px;
    color: #1a1a1a;
    margin: 28px 0 12px;
    letter-spacing: -0.1px;
}
 
.lbp-legal-content section h3:first-of-type {
    margin-top: 20px;
}