/* =========================================
   Nexsas - Style des pages légales
   Sobre, lisible, cohérent avec le dashboard
   Background corrigé - Dégradé unifié
   ========================================= */

:root {
    --primary-color: #667eea;
    --primary-dark: #5568d3;
    --secondary-color: #764ba2;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --text-dark: #1f2937;
    --text-medium: #4b5563;
    --text-light: #6b7280;
    --card-bg: rgba(255, 255, 255, 0.95);
    --border-radius: 16px;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    --transition: 0.3s ease;
}

/* 🔥 FIX BACKGROUND UNIFIÉ */
html {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    margin: 0;
    padding: 0;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-attachment: fixed;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* Wrapper pour espacer le contenu */
.page-wrapper {
    padding: 2rem 1rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Container central */
.legal-container {
    max-width: 900px;
    margin: 15px auto;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    padding: 3rem 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: 1px solid rgba(102, 126, 234, 0.15);
    animation: fadeIn 0.6s ease-out;
}

/* Anim fade-in */
@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(15px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

h1 {
    font-size: 2.4rem;
    text-align: center;
    margin-bottom: 2.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    margin-top: 2rem;
    font-size: 1.5rem;
    color: var(--primary-color);
    border-left: 5px solid var(--primary-color);
    padding-left: 0.75rem;
}

p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-medium);
    margin-top: 0.75rem;
}

strong {
    color: var(--primary-color);
}

a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Sections */
section {
    margin-bottom: 2rem;
}

        
.sous-texte {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

/* ===== Bouton Retour dans pages légales ===== */

.legal-header {
    max-width: 900px;
    margin: 0 auto 1rem;
    padding: 0 1rem;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.5rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all var(--transition);
    border: 2px solid rgba(102, 126, 234, 0.15);
    box-shadow: var(--shadow);
    font-size: 1rem;
    margin-top: 10px;
}

.back-button:hover {
    background: rgba(102, 126, 234, 0.1);
    border-color: var(--primary-color);
    transform: translateX(-5px);
    color: var(--primary-color);
    text-decoration: none;
}

.back-button i {
    font-size: 1.1rem;
    transition: transform var(--transition);
}

.back-button:hover i {
    transform: translateX(-3px);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
    .page-wrapper {
        padding: 1rem;
    }

    .legal-container {
        padding: 2rem 1.5rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.3rem;
    }
    
    p {
        font-size: 1rem;
    }

    .back-button {
        padding: 0.75rem 1.25rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .legal-container {
        padding: 1.5rem 1rem;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.2rem;
        border-left-width: 3px;
        padding-left: 0.5rem;
    }
    
    p {
        font-size: 0.95rem;
        line-height: 1.6;
    }
}