/* 
 * Fichier : legal.css
 * Description : Styles pour les pages légales (CGU, CGV, mentions légales, etc.)
 * Projet : BookConnect
 */

.legal-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
    line-height: 1.6;
    color: #374151;
}

.legal-hero {
    background: linear-gradient(135deg, #DC2626 0%, #991B1B 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
    margin-bottom: 3rem;
}

.legal-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.legal-hero p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.legal-nav {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 0.75rem;
    margin-bottom: 2rem;
    position: sticky;
    top: 20px;
    z-index: 100;
}

.legal-nav h3 {
    margin-bottom: 1rem;
    color: #DC2626;
}

.legal-nav ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.5rem;
}

.legal-nav a {
    color: #6b7280;
    text-decoration: none;
    padding: 0.5rem;
    border-radius: 0.25rem;
    transition: all 0.3s ease;
    display: block;
}

.legal-nav a:hover {
    background: #DC2626;
    color: white;
}

.legal-section {
    margin-bottom: 3rem;
    padding: 2rem;
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.legal-section h2 {
    color: #DC2626;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #fecaca;
}

.legal-section h3 {
    color: #374151;
    font-size: 1.25rem;
    margin: 1.5rem 0 1rem 0;
}

.legal-section p {
    margin-bottom: 1rem;
    text-align: justify;
}

.legal-section ul, .legal-section ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.legal-section li {
    margin-bottom: 0.5rem;
}

.highlight-box {
    background: #fef2f2;
    border-left: 4px solid #DC2626;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0.5rem;
}

.highlight-box h4 {
    color: #DC2626;
    margin-bottom: 0.5rem;
}

.contact-info {
    background: #f0fdf4;
    border: 1px solid #10b981;
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin: 1rem 0;
}

.last-updated {
    text-align: center;
    color: #6b7280;
    font-style: italic;
    margin: 2rem 0;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 0.5rem;
}

/* Styles spécifiques CGV */
.cgv-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
    line-height: 1.6;
    color: #374151;
}

.cgv-hero {
    background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
    margin-bottom: 3rem;
}

.cgv-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.cgv-hero p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.cgv-nav {
    background: #faf5ff;
    padding: 1.5rem;
    border-radius: 0.75rem;
    margin-bottom: 2rem;
    position: sticky;
    top: 20px;
    z-index: 100;
    border: 1px solid #7c3aed;
}

.cgv-nav h3 {
    margin-bottom: 1rem;
    color: #7c3aed;
}

.cgv-nav ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.5rem;
}

.cgv-nav a {
    color: #6b7280;
    text-decoration: none;
    padding: 0.5rem;
    border-radius: 0.25rem;
    transition: all 0.3s ease;
    display: block;
}

.cgv-nav a:hover {
    background: #7c3aed;
    color: white;
}

.cgv-section {
    margin-bottom: 3rem;
    padding: 2rem;
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cgv-section h2 {
    color: #7c3aed;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #c4b5fd;
}

.cgv-section h3 {
    color: #374151;
    font-size: 1.25rem;
    margin: 1.5rem 0 1rem 0;
}

.cgv-section p {
    margin-bottom: 1rem;
    text-align: justify;
}

.cgv-section ul, .cgv-section ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.cgv-section li {
    margin-bottom: 0.5rem;
}

.price-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: white;
}

.price-table th, .price-table td {
    border: 1px solid #d1d5db;
    padding: 0.75rem;
    text-align: left;
}

.price-table th {
    background: #f3f4f6;
    font-weight: 600;
    color: #374151;
}

.price-table tr:nth-child(even) {
    background: #f9fafb;
}

.warning-box {
    background: #fef2f2;
    border-left: 4px solid #DC2626;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0.5rem;
}

.warning-box h4 {
    color: #DC2626;
    margin-bottom: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .legal-page, .cgv-page {
        padding: 1rem;
    }
    
    .legal-nav ul, .cgv-nav ul {
        grid-template-columns: 1fr;
    }
    
    .legal-hero h1, .cgv-hero h1 {
        font-size: 2rem;
    }
    
    .price-table {
        font-size: 0.875rem;
    }
}

/* Styles spécifiques RGPD */
.rgpd-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
    line-height: 1.6;
    color: #374151;
}

.rgpd-hero {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
    margin-bottom: 3rem;
}

.rgpd-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.rgpd-hero p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.rgpd-nav {
    background: #f0fdf4;
    padding: 1.5rem;
    border-radius: 0.75rem;
    margin-bottom: 2rem;
    position: sticky;
    top: 20px;
    z-index: 100;
    border: 1px solid #10b981;
}

.rgpd-nav h3 {
    margin-bottom: 1rem;
    color: #059669;
}

.rgpd-nav ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.5rem;
}

.rgpd-nav a {
    color: #6b7280;
    text-decoration: none;
    padding: 0.5rem;
    border-radius: 0.25rem;
    transition: all 0.3s ease;
    display: block;
}

.rgpd-nav a:hover {
    background: #059669;
    color: white;
}

.rgpd-section {
    margin-bottom: 3rem;
    padding: 2rem;
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.rgpd-section h2 {
    color: #059669;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #a7f3d0;
}

.rgpd-key-points {
    display: grid;
    gap: 1.5rem;
    margin: 2rem 0;
}

.key-point {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: #f0fdf4;
    border-radius: 0.75rem;
    border-left: 4px solid #059669;
}

.point-icon {
    font-size: 2rem;
    color: #059669;
    min-width: 60px;
    text-align: center;
}

.point-content h4 {
    color: #059669;
    margin-bottom: 0.5rem;
}

.rights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.right-card {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
    text-align: center;
}

.right-card:hover {
    border-color: #059669;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.right-icon {
    font-size: 2.5rem;
    color: #059669;
    margin-bottom: 1rem;
}

.right-card h4 {
    color: #374151;
    margin-bottom: 1rem;
}

.btn-action {
    background: #059669;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-top: 1rem;
}

.btn-action:hover {
    background: #047857;
}

.exercise-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.method-card {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 0.75rem;
    text-align: center;
    border: 2px solid #e5e7eb;
}

.method-icon {
    font-size: 3rem;
    color: #059669;
    margin-bottom: 1rem;
}

.btn-primary {
    background: #059669;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    display: inline-block;
    margin-top: 1rem;
}

.btn-secondary {
    background: #6b7280;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    display: inline-block;
    margin-top: 1rem;
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 2rem 0;
}

.timeline-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.timeline-marker {
    background: #059669;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.data-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.data-category {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 0.75rem;
    border-left: 4px solid #059669;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.category-header i {
    color: #059669;
    font-size: 1.5rem;
}

.legal-basis {
    background: #dcfce7;
    color: #166534;
    padding: 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    margin-top: 1rem;
}

.usage-purposes {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 2rem 0;
}

.purpose-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 0.75rem;
    border-left: 4px solid #059669;
}

.purpose-icon {
    font-size: 2rem;
    color: #059669;
    min-width: 60px;
    text-align: center;
}

.purpose-legal {
    background: #dbeafe;
    color: #1e40af;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 0.5rem;
    display: inline-block;
}

.retention-table table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.retention-table th, .retention-table td {
    border: 1px solid #d1d5db;
    padding: 0.75rem;
    text-align: left;
}

.retention-table th {
    background: #f9fafb;
    font-weight: 600;
}

.security-measures {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.security-category {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 0.75rem;
    border-left: 4px solid #059669;
}

.security-category h4 {
    color: #059669;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.breach-process {
    display: flex;
    justify-content: space-between;
    margin: 2rem 0;
    flex-wrap: wrap;
    gap: 1rem;
}

.process-step {
    flex: 1;
    min-width: 200px;
    text-align: center;
}

.step-number {
    background: #059669;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1rem auto;
}

.dpo-contact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
    padding: 2rem;
    background: #f0fdf4;
    border-radius: 0.75rem;
}

.dpo-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.dpo-avatar {
    background: #059669;
    color: white;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.dpo-credentials {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.dpo-credentials span {
    background: #dcfce7;
    color: #166534;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 0.5rem;
}

.contact-method i {
    color: #059669;
    font-size: 1.5rem;
    min-width: 30px;
}

.cnil-info {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    padding: 1.5rem;
    border-radius: 0.75rem;
    margin-top: 2rem;
}

.cnil-contact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
    font-size: 0.875rem;
}

@media (max-width: 768px) {
    .rgpd-page {
        padding: 1rem;
    }
    
    .rgpd-nav ul {
        grid-template-columns: 1fr;
    }
    
    .rgpd-hero h1 {
        font-size: 2rem;
    }
    
    .rights-grid {
        grid-template-columns: 1fr;
    }
    
    .exercise-methods {
        grid-template-columns: 1fr;
    }
    
    .data-categories {
        grid-template-columns: 1fr;
    }
    
    .security-measures {
        grid-template-columns: 1fr;
    }
    
    .breach-process {
        flex-direction: column;
    }
    
    .dpo-contact {
        grid-template-columns: 1fr;
    }
}
