/* ============================================================
   legal.css — Styles partagés pour les pages légales
   mathsetmoi.fr
   ============================================================ */

/* --- Base --- */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    color: #333;
    background: #f7f8fa;
    margin: 0;
    padding: 0;
}

/* --- Mise en page centrale --- */
.legal-wrapper {
    max-width: 860px;
    margin: 0 auto;
    padding: 40px 24px 80px;
}

/* --- En-tête de page --- */
.legal-header {
    border-bottom: 3px solid #2c3e50;
    margin-bottom: 36px;
    padding-bottom: 16px;
}

.legal-header h1 {
    font-size: 1.7rem;
    color: #2c3e50;
    margin: 0 0 6px;
}

.legal-header .site-link {
    font-size: 0.9rem;
    color: #7f8c8d;
    text-decoration: none;
}

.legal-header .site-link:hover {
    color: #2980b9;
}

.legal-header .update-date {
    font-size: 0.85rem;
    color: #95a5a6;
    font-style: italic;
    margin-top: 6px;
}

/* --- Navigation interne --- */
.legal-nav {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 16px 20px;
    margin-bottom: 40px;
}

.legal-nav p {
    font-size: 0.85rem;
    font-weight: 600;
    color: #7f8c8d;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 8px;
}

.legal-nav ol {
    margin: 0;
    padding-left: 20px;
}

.legal-nav li {
    margin-bottom: 4px;
}

.legal-nav a {
    color: #2980b9;
    text-decoration: none;
    font-size: 0.95rem;
}

.legal-nav a:hover {
    text-decoration: underline;
}

/* --- Lien vers l'autre document légal --- */
.legal-sister-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #eaf4fb;
    border: 1px solid #aed6f1;
    border-radius: 6px;
    padding: 10px 16px;
    font-size: 0.9rem;
    color: #2980b9;
    text-decoration: none;
    margin-bottom: 40px;
}

.legal-sister-link:hover {
    background: #d6eaf8;
}

/* --- Sections --- */
.legal-section {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 28px 32px;
    margin-bottom: 28px;
}

.legal-section h2 {
    font-size: 1.2rem;
    color: #2c3e50;
    margin: 0 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eaf4fb;
}

.legal-section h3 {
    font-size: 1rem;
    color: #2980b9;
    margin: 24px 0 8px;
}

.legal-section h3:first-of-type {
    margin-top: 0;
}

.legal-section p,
.legal-section ul,
.legal-section li {
    font-size: 0.95rem;
    color: #444;
}

.legal-section ul {
    padding-left: 20px;
}

.legal-section li {
    margin-bottom: 6px;
}

.legal-section a {
    color: #2980b9;
}

/* --- Tableau --- */
.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 0.9rem;
}

.legal-table th,
.legal-table td {
    border: 1px solid #dde;
    padding: 10px 14px;
    text-align: left;
    vertical-align: top;
}

.legal-table th {
    background: #f4f6f8;
    font-weight: 600;
    color: #2c3e50;
}

.legal-table td:first-child {
    font-weight: 500;
    white-space: nowrap;
}

/* --- Note d'info (encadré) --- */
.legal-note {
    background: #f0f7ff;
    border-left: 4px solid #2980b9;
    border-radius: 0 6px 6px 0;
    padding: 12px 16px;
    font-size: 0.9rem;
    color: #444;
    margin: 16px 0;
}

.legal-note strong {
    color: #2c3e50;
}

/* --- Pied de page --- */
.legal-footer {
    margin-top: 48px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
    font-size: 0.85rem;
    color: #95a5a6;
    text-align: center;
}

.legal-footer a {
    color: #7f8c8d;
    text-decoration: none;
    margin: 0 8px;
}

.legal-footer a:hover {
    color: #2980b9;
}
