/* ============================================
   OBJET.PRO — Pages légales (CGV + Mentions)
   À ajouter dans objetprov6/assets/css/custom.css
   ============================================ */

/* --- CGV --- */
.cgv-wrapper {
    font-family: inherit;
    color: #1a1a1a;
    max-width: 860px;
    margin: 0 auto;
    line-height: 1.7;
}
.cgv-header {
    background: #f5f5f5;
    border-left: 4px solid #3B5BDB;
    padding: 16px 20px;
    margin-bottom: 32px;
    border-radius: 2px;
}
.cgv-version { font-size: 0.85em; color: #666; margin: 0 0 6px 0; }
.cgv-societe { font-size: 0.9em; margin: 0; }
.cgv-toc {
    background: #fafafa;
    border: 1px solid #e5e5e5;
    padding: 20px 24px;
    margin-bottom: 40px;
    border-radius: 4px;
}
.cgv-toc-title { font-weight: 700; font-size: 1em; text-transform: uppercase; letter-spacing: 0.05em; color: #444; margin: 0 0 12px 0; }
.cgv-toc ol { margin: 0; padding-left: 20px; column-count: 2; column-gap: 32px; }
.cgv-toc li { margin-bottom: 4px; font-size: 0.88em; break-inside: avoid; }
.cgv-toc a { color: #333; text-decoration: none; }
.cgv-toc a:hover { color: #3B5BDB; text-decoration: underline; }
.cgv-article { margin-bottom: 40px; padding-bottom: 32px; border-bottom: 1px solid #ebebeb; }
.cgv-article:last-of-type { border-bottom: none; }
.cgv-article h2 {
    font-size: 1.05em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #3B5BDB;
    border-bottom: 2px solid #3B5BDB;
    padding-bottom: 8px;
    margin: 0 0 18px 0;
}
.cgv-article h3 { font-size: 0.95em; font-weight: 700; color: #222; margin: 22px 0 10px 0; }
.cgv-article p { margin: 0 0 12px 0; font-size: 0.92em; }
.cgv-article ul { margin: 8px 0 14px 0; padding-left: 22px; }
.cgv-article ul li { margin-bottom: 8px; font-size: 0.92em; }
.cgv-article a { color: #3B5BDB; text-decoration: none; }
.cgv-article a:hover { text-decoration: underline; }
.cgv-footer {
    background: #1B2A4A;
    color: #ccc;
    text-align: center;
    padding: 16px 20px;
    border-radius: 4px;
    margin-top: 40px;
    font-size: 0.83em;
}
.cgv-footer a { color: #3B5BDB; text-decoration: none; }

/* --- Mentions légales --- */
.legal-wrapper {
    font-family: inherit;
    color: #1a1a1a;
    max-width: 860px;
    margin: 0 auto;
    line-height: 1.7;
}
.legal-header {
    background: #f5f5f5;
    border-left: 4px solid #3B5BDB;
    padding: 16px 20px;
    margin-bottom: 32px;
    border-radius: 2px;
}
.legal-version { font-size: 0.85em; color: #666; margin: 0 0 6px 0; }
.legal-societe { font-size: 0.9em; margin: 0; }
.legal-article { margin-bottom: 40px; padding-bottom: 32px; border-bottom: 1px solid #ebebeb; }
.legal-article:last-of-type { border-bottom: none; }
.legal-article h2 {
    font-size: 1.05em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #3B5BDB;
    border-bottom: 2px solid #3B5BDB;
    padding-bottom: 8px;
    margin: 0 0 18px 0;
}
.legal-article p { margin: 0 0 12px 0; font-size: 0.92em; }
.legal-article ul { margin: 8px 0 14px 0; padding-left: 22px; }
.legal-article ul li { margin-bottom: 8px; font-size: 0.92em; }
.legal-article a { color: #3B5BDB; text-decoration: none; }
.legal-article a:hover { text-decoration: underline; }
.legal-footer {
    background: #1B2A4A;
    color: #ccc;
    text-align: center;
    padding: 16px 20px;
    border-radius: 4px;
    margin-top: 40px;
    font-size: 0.83em;
}
.legal-footer a { color: #3B5BDB; text-decoration: none; }

@media (max-width: 600px) {
    .cgv-toc ol { column-count: 1; }
}

/* ============================================================
   ADDITIONS legal-pages.css — OBJET.PRO
   À intégrer dans /themes/objetprov6/assets/css/legal-pages.css
   Complète les classes .cgv-* et .legal-* existantes
   ============================================================ */

/* ----- Tables légales ----- */
.legal-table {
    width: auto;
    border-collapse: collapse;
    font-size: 0.875rem;
    line-height: 1.5;
}

.legal-table--full {
    width: 100%;
}

.legal-table th,
.legal-table td {
    padding: 0.625rem 0.875rem;
    border: 1px solid #dde3f0;
    vertical-align: top;
    text-align: left;
}

.legal-table thead th {
    background-color: #1B2A4A;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.8125rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.legal-table tbody tr:nth-child(even) {
    background-color: #f5f7fc;
}

.legal-table tbody tr:hover {
    background-color: #edf0fa;
}

.legal-table th {
    color: #1B2A4A;
    font-weight: 600;
    white-space: nowrap;
    background-color: #f0f3fb;
}

/* ----- Cards ----- */
.legal-card {
    background: #f8f9fe;
    border: 1px solid #dde3f0;
    border-left: 4px solid #3B5BDB;
    border-radius: 4px;
    padding: 1.25rem 1.5rem;
    margin: 1rem 0 1.5rem;
    overflow-x: auto;
}

.legal-card p {
    margin: 0;
    line-height: 1.7;
}

/* ----- Note de bas de bloc ----- */
.legal-note {
    font-size: 0.8125rem;
    color: #5a6a8a;
    font-style: italic;
    margin-top: 0.5rem;
}

/* ----- Code inline ----- */
.legal-table code,
.legal-page code {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.8125rem;
    background: #edf0fa;
    color: #1B2A4A;
    padding: 0.1em 0.35em;
    border-radius: 3px;
    white-space: nowrap;
}

/* ----- Responsive tables ----- */
@media (max-width: 640px) {
    .legal-card {
        padding: 1rem;
    }

    .legal-table th,
    .legal-table td {
        padding: 0.5rem 0.625rem;
        font-size: 0.8125rem;
    }
}