/* ==========================================================================
   Static Content & Legal Pages Typography (Renault / Groupe Maurin)
   Mise en page épurée, typographique et structurée pour pages juridiques
   ========================================================================== */

:root {
    --renault-yellow: #efdf00;
    --renault-yellow-hover: #d8c900;
    --renault-black: #000000;
    --renault-dark: #121212;
}

.typography-section {
    background-color: #ffffff;
    padding: 30px 0 70px;
}

.typography-content {
    max-width: 960px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    font-family: var(--theme-font-primary, 'Read', 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
    color: #334155;
}

.typography-title {
    color: #0f172a;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 24px;
}

.typography-text {
    color: #334155;
    font-size: 15px;
    line-height: 1.75;
}

.typography-text p {
    line-height: 1.75;
    margin-bottom: 16px;
    color: #334155;
}

.typography-text a {
    color: #0f172a;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: var(--renault-yellow);
    text-underline-offset: 3px;
    transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.typography-text a:hover {
    color: #000000;
    text-decoration-color: #000000;
}

/* ─── Document juridique / légal ─────────────────────────────────────── */
.legal-doc {
    font-size: 15px;
    line-height: 1.75;
    color: #334155;
}

/* En-tête / Chapeau introductif */
.legal-intro-card {
    background: #fbfbfb;
    border: 1px solid #e5e7eb;
    border-left: 4px solid var(--renault-yellow);
    border-radius: 8px;
    padding: 20px 24px;
    margin-bottom: 32px;
}

.legal-intro-card p:last-child {
    margin-bottom: 0;
}

.legal-date-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: #4b5563;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

/* Sommaire / Navigation rapide */
.legal-toc {
    background: #fbfbfb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 22px 26px;
    margin-bottom: 36px;
}

.legal-toc-title {
    font-size: 13.5px;
    font-weight: 800;
    color: #0f172a;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.legal-toc-title::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 16px;
    background: var(--renault-yellow);
    border-radius: 2px;
}

.legal-toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 8px 20px;
}

.legal-toc-list li a {
    color: #475569;
    text-decoration: none;
    font-size: 13.5px;
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    transition: color 0.15s ease, transform 0.15s ease;
}

.legal-toc-list li a:hover {
    color: #000000;
    text-decoration: none;
    transform: translateX(2px);
}

.legal-toc-num {
    font-size: 12px;
    font-weight: 800;
    color: #0f172a;
    min-width: 24px;
}

/* Sections */
.legal-section {
    margin-bottom: 36px;
    padding-bottom: 28px;
    border-bottom: 1px solid #f1f5f9;
}

.legal-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.legal-section-header {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 18px;
}

.legal-section-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    color: #000000;
    background: var(--renault-yellow);
    padding: 3px 10px;
    border-radius: 4px;
    letter-spacing: 0.04em;
    flex-shrink: 0;
}

.legal-section-title {
    font-size: 19px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    line-height: 1.35;
}

.legal-subsection-title {
    font-size: 15.5px;
    font-weight: 600;
    color: #1e293b;
    margin: 22px 0 10px;
}

/* Cartes & Blocs d'informations (Éditeur, Hébergeur, DPO, etc.) */
.legal-card {
    background: #fbfbfb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px 24px;
    margin: 18px 0;
}

.legal-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.legal-card-field {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.legal-card-label {
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
}

.legal-card-value {
    font-size: 14px;
    font-weight: 500;
    color: #0f172a;
    word-break: break-word;
}

/* Listes */
.legal-list {
    list-style: none;
    padding-left: 0;
    margin: 14px 0 18px;
}

.legal-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    line-height: 1.65;
}

.legal-list li::before {
    content: "■";
    position: absolute;
    left: 0;
    font-size: 8px;
    top: 5px;
    color: #000000;
}

.legal-list li:last-child {
    margin-bottom: 0;
}

/* Tableaux modernes */
.legal-table-wrapper {
    width: 100%;
    overflow-x: auto;
    margin: 20px 0 24px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.legal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
    text-align: left;
    margin: 0;
}

.legal-table th {
    background: #f8fafc;
    color: #0f172a;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 12px 18px;
    border-bottom: 2px solid var(--renault-yellow);
    white-space: nowrap;
}

.legal-table td {
    padding: 12px 18px;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
    vertical-align: top;
    line-height: 1.6;
}

.legal-table tr:last-child td {
    border-bottom: none;
}

.legal-table tr:hover td {
    background: #fafafa;
}

/* Encadré d'attention / note */
.legal-note {
    background: #fafafa;
    border-left: 4px solid var(--renault-yellow);
    border-radius: 0 8px 8px 0;
    padding: 14px 18px;
    margin: 18px 0;
    font-size: 13.5px;
    line-height: 1.6;
    color: #1e293b;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

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

/* Bouton cookie */
.maurin-footer__legal-btn {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    color: inherit;
    text-decoration: underline;
    text-decoration-color: var(--renault-yellow);
    cursor: pointer;
}

.maurin-footer__legal-btn:hover {
    color: #000000;
}

/* Responsive */
@media (max-width: 767.98px) {
    .typography-section {
        padding: 16px 0 40px;
    }
    .legal-intro-card,
    .legal-toc,
    .legal-card {
        padding: 16px;
    }
    .legal-section-title {
        font-size: 17px;
    }
    .legal-toc-list {
        grid-template-columns: 1fr;
    }
    .legal-card-grid {
        grid-template-columns: 1fr;
    }
    .legal-table th,
    .legal-table td {
        padding: 10px 12px;
        font-size: 13px;
    }
}