/* ============================================
   STYLES PAGES LÉGALES - IONARX SRL
   Conditions Générales & Politique de Confidentialité
   ============================================ */

/* Container principal */
.legal-page {
    padding: 120px 0 80px;
    min-height: 100vh;
    background: var(--color-cream);
}

.legal-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Lien retour */
.legal-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-black);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    margin-bottom: 2rem;
    transition: color 0.3s ease;
}

.legal-back:hover {
    color: var(--color-gold);
}

/* Header */
.legal-header {
    text-align: center;
    margin-bottom: 3rem;
}

.legal-header h1 {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--color-black);
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.legal-header .last-update {
    color: var(--color-gray-medium);
    font-size: 0.9rem;
    font-weight: 400;
}

/* Contenu principal */
.legal-content {
    background: white;
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

/* Titres H2 - Articles principaux */
.legal-content h2 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-black);
    margin: 2.5rem 0 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--color-gold);
    line-height: 1.3;
}

.legal-content h2:first-child {
    margin-top: 0;
}

/* Titres H3 - Sous-sections */
.legal-content h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-black);
    margin: 1.75rem 0 0.75rem;
    line-height: 1.4;
}

/* Paragraphes */
.legal-content p {
    font-size: 1rem;
    line-height: 1.8;
    color: #444444;
    margin-bottom: 1rem;
    font-weight: 400;
}

/* Texte en gras */
.legal-content strong {
    font-weight: 600;
    color: var(--color-black);
}

/* Listes */
.legal-content ul,
.legal-content ol {
    margin: 1rem 0 1.5rem 1.5rem;
    line-height: 1.8;
    color: #444444;
}

.legal-content li {
    font-size: 1rem;
    margin-bottom: 0.6rem;
    padding-left: 0.25rem;
}

.legal-content li strong {
    font-weight: 600;
    color: var(--color-black);
}

/* Liens */
.legal-content a {
    color: var(--color-gold);
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.3s ease;
}

.legal-content a:hover {
    color: #b8962e;
}

/* Encadré d'information (coordonnées société, etc.) */
.company-info {
    background: var(--color-cream);
    padding: 1.5rem;
    border-radius: 12px;
    margin: 1.5rem 0;
    border-left: 4px solid var(--color-gold);
}

.company-info p {
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
    color: #333333;
}

.company-info p:last-child {
    margin-bottom: 0;
}

.company-info strong {
    font-weight: 600;
    color: var(--color-black);
}

.company-info a {
    color: var(--color-gold);
    text-decoration: underline;
}

/* Tableaux */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.95rem;
}

.data-table th,
.data-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e5e5e5;
}

.data-table th {
    background: var(--color-cream);
    font-weight: 600;
    color: var(--color-black);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.data-table td {
    color: #444444;
}

.data-table tr:hover td {
    background: #fafafa;
}

/* Points importants - mise en évidence */
.legal-content .important {
    background: #fff8e1;
    border-left: 4px solid var(--color-gold);
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
}

.legal-content .important p {
    margin-bottom: 0;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
    .legal-page {
        padding: 100px 0 60px;
    }
    
    .legal-container {
        padding: 0 1rem;
    }
    
    .legal-header h1 {
        font-size: 1.75rem;
    }
    
    .legal-content {
        padding: 1.5rem;
        border-radius: 12px;
    }
    
    .legal-content h2 {
        font-size: 1.2rem;
        margin: 2rem 0 1rem;
    }
    
    .legal-content h3 {
        font-size: 1rem;
    }
    
    .legal-content p,
    .legal-content li {
        font-size: 0.95rem;
    }
    
    .company-info {
        padding: 1.25rem;
    }
    
    .data-table {
        font-size: 0.85rem;
    }
    
    .data-table th,
    .data-table td {
        padding: 0.75rem 0.5rem;
    }
}
