/* ===================================
   Legal Pages - Intuitive & Modern Style
   =================================== */

/* Container principal */
.legal-page-wrapper {
    padding: 60px 0;
    background: #ffffff;
    min-height: 60vh;
}

.legal-page-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header de la page */
.legal-page-header {
    text-align: center;
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 3px solid #E0F1F4;
}

.legal-page-header h1 {
    color: #024430;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
}

.legal-page-header .legal-page-meta {
    color: #6A838C;
    font-size: 0.95rem;
    margin-top: 10px;
}

.legal-page-header .legal-page-meta span {
    margin: 0 10px;
}

/* Table des matières (si nécessaire) */
.legal-page-toc {
    background: #F8FAFC;
    border-left: 4px solid #0d9488;
    border-radius: 8px;
    padding: 25px 30px;
    margin: 40px 0;
}

.legal-page-toc h3 {
    color: #024430;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 15px;
    margin-top: 0;
}

.legal-page-toc ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.legal-page-toc li {
    margin-bottom: 10px;
}

.legal-page-toc a {
    color: #3D565F;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.legal-page-toc a:hover {
    color: #0d9488;
    padding-left: 5px;
}

.legal-page-toc a::before {
    content: "→";
    margin-right: 8px;
    color: #0d9488;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.legal-page-toc a:hover::before {
    opacity: 1;
}

/* Contenu principal */
.legal-page-content {
    line-height: 1.8;
    color: #3D565F;
    font-size: 1rem;
}

/* Titres */
.legal-page-content h1 {
    color: #024430;
    font-size: 2rem;
    font-weight: 700;
    margin-top: 50px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #E0F1F4;
    line-height: 1.3;
}

.legal-page-content h1:first-of-type {
    margin-top: 0;
}

.legal-page-content h2 {
    color: #024430;
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 40px;
    margin-bottom: 15px;
    line-height: 1.4;
    position: relative;
    padding-left: 15px;
}

.legal-page-content h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: #0d9488;
    border-radius: 2px;
}

.legal-page-content h3 {
    color: #024430;
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 30px;
    margin-bottom: 12px;
    line-height: 1.4;
}

.legal-page-content h4 {
    color: #3D565F;
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 25px;
    margin-bottom: 10px;
    line-height: 1.4;
}

/* Paragraphes */
.legal-page-content p {
    margin-bottom: 20px;
    line-height: 1.8;
    color: #3D565F;
}

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

/* Listes */
.legal-page-content ul,
.legal-page-content ol {
    margin: 20px 0;
    padding-left: 30px;
    line-height: 1.8;
}

.legal-page-content ul {
    list-style: none;
    padding-left: 0;
}

.legal-page-content ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
    color: #3D565F;
}

.legal-page-content ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: #0d9488;
    font-weight: 700;
    font-size: 1.1rem;
}

.legal-page-content ol {
    counter-reset: item;
    list-style: none;
    padding-left: 0;
}

.legal-page-content ol li {
    counter-increment: item;
    position: relative;
    padding-left: 35px;
    margin-bottom: 12px;
    color: #3D565F;
}

.legal-page-content ol li::before {
    content: counter(item) ".";
    position: absolute;
    left: 0;
    top: 0;
    color: #0d9488;
    font-weight: 700;
    font-size: 1rem;
}

/* Listes imbriquées */
.legal-page-content ul ul,
.legal-page-content ol ol,
.legal-page-content ul ol,
.legal-page-content ol ul {
    margin-top: 10px;
    margin-bottom: 10px;
    padding-left: 25px;
}

/* Citations et blocs importants */
.legal-page-content blockquote {
    background: #F0F9FA;
    border-left: 4px solid #0d9488;
    padding: 20px 25px;
    margin: 25px 0;
    border-radius: 4px;
    font-style: italic;
    color: #3D565F;
}

.legal-page-content blockquote p {
    margin-bottom: 0;
}

/* Alertes et encadrés */
.legal-page-content .legal-notice {
    background: #FFF4E6;
    border-left: 4px solid #f59e0b;
    padding: 20px 25px;
    margin: 25px 0;
    border-radius: 4px;
}

.legal-page-content .legal-notice strong {
    color: #78350f;
    display: block;
    margin-bottom: 8px;
}

.legal-page-content .legal-warning {
    background: #FEE2E2;
    border-left: 4px solid #EF476F;
    padding: 20px 25px;
    margin: 25px 0;
    border-radius: 4px;
}

.legal-page-content .legal-warning strong {
    color: #991b1b;
    display: block;
    margin-bottom: 8px;
}

.legal-page-content .legal-info {
    background: #D1ECF7;
    border-left: 4px solid #0d9488;
    padding: 20px 25px;
    margin: 25px 0;
    border-radius: 4px;
}

.legal-page-content .legal-info strong {
    color: #024430;
    display: block;
    margin-bottom: 8px;
}

/* Liens */
.legal-page-content a {
    color: #0d9488;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: all 0.3s ease;
}

.legal-page-content a:hover {
    color: #024430;
    text-decoration: none;
}

/* Tableaux */
.legal-page-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.legal-page-content table th {
    background: #024430;
    color: #ffffff;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    font-size: 0.95rem;
}

.legal-page-content table td {
    padding: 15px;
    border-bottom: 1px solid #E0F1F4;
    color: #3D565F;
}

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

.legal-page-content table tr:hover {
    background: #F8FAFC;
}

/* Mise en évidence */
.legal-page-content strong {
    color: #024430;
    font-weight: 600;
}

.legal-page-content em {
    color: #3D565F;
    font-style: italic;
}

.legal-page-content code {
    background: #F8FAFC;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: #024430;
}

/* Séparateurs */
.legal-page-content hr {
    border: none;
    border-top: 2px solid #E0F1F4;
    margin: 40px 0;
}

/* Sections */
.legal-page-section {
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 1px solid #E0F1F4;
}

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

/* Navigation de retour */
.legal-page-back {
    margin-bottom: 30px;
}

.legal-page-back a {
    display: inline-flex;
    align-items: center;
    color: #0d9488;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.legal-page-back a:hover {
    color: #024430;
    padding-left: 5px;
}

.legal-page-back a::before {
    content: "←";
    margin-right: 8px;
    font-size: 1.2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .legal-page-wrapper {
        padding: 40px 0;
    }

    .legal-page-header h1 {
        font-size: 2rem;
    }

    .legal-page-content h1 {
        font-size: 1.75rem;
    }

    .legal-page-content h2 {
        font-size: 1.35rem;
    }

    .legal-page-content h3 {
        font-size: 1.15rem;
    }

    .legal-page-toc {
        padding: 20px;
    }

    .legal-page-content ul,
    .legal-page-content ol {
        padding-left: 20px;
    }

    .legal-page-content table {
        font-size: 0.9rem;
    }

    .legal-page-content table th,
    .legal-page-content table td {
        padding: 10px;
    }
}

/* Animation au scroll */
@media (prefers-reduced-motion: no-preference) {
    .legal-page-section {
        animation: fadeInUp 0.6s ease-out;
    }

    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* Impression */
@media print {
    .legal-page-wrapper {
        padding: 0;
    }

    .legal-page-back,
    .legal-page-toc {
        display: none;
    }

    .legal-page-content a {
        color: #024430;
        text-decoration: underline;
    }

    .legal-page-content a::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #6A838C;
    }
}

