/* ================================
   FASTPANEL - PAGES LÉGALES
   Design professionnel 2024
   Style cohérent avec index.php
   ================================ */

/* Variables CSS */
:root {
    --primary-900: #0f172a;
    --primary-800: #1e293b;
    --primary-700: #334155;
    --primary-600: #475569;
    --primary-500: #64748b;
    --primary-400: #94a3b8;
    --primary-300: #cbd5e1;
    --primary-200: #e2e8f0;
    --primary-100: #f1f5f9;

    --blue-600: #2563eb;
    --blue-500: #3b82f6;
    --blue-400: #60a5fa;
    --blue-300: #93c5fd;

    --green-500: #22c55e;
    --green-400: #4ade80;

    --white: #ffffff;
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);

    --radius-sm: 6px;
    --radius: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
}

/* ================================
   HERO SECTION
   ================================ */

.legal-hero-section {
    background: linear-gradient(135deg, var(--primary-900) 0%, #0c1929 50%, var(--primary-800) 100%);
    position: relative;
    overflow: hidden;
    padding: 140px 0 80px;
    min-height: 40vh;
}

/* Fondu en bas du hero */
.legal-hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(15, 23, 42, 0.3) 30%,
        rgba(15, 23, 42, 0.7) 60%,
        var(--primary-900) 100%
    );
    z-index: 3;
    pointer-events: none;
}

.legal-animated-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(37, 99, 235, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(59, 130, 246, 0.1) 0%, transparent 40%),
        radial-gradient(ellipse at 60% 80%, rgba(37, 99, 235, 0.08) 0%, transparent 40%);
}

.legal-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.legal-particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--blue-400);
    border-radius: 50%;
    opacity: 0.3;
    animation: floatParticle 20s ease-in-out infinite;
}

.legal-particle:nth-child(1) { top: 20%; left: 10%; animation-delay: 0s; }
.legal-particle:nth-child(2) { top: 60%; left: 20%; animation-delay: 3s; }
.legal-particle:nth-child(3) { top: 30%; left: 80%; animation-delay: 6s; }
.legal-particle:nth-child(4) { top: 70%; left: 70%; animation-delay: 9s; }

@keyframes floatParticle {
    0%, 100% { transform: translateY(0) translateX(0); opacity: 0.3; }
    50% { transform: translateY(-30px) translateX(10px); opacity: 0.5; }
}

.legal-gradient-orb {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    filter: blur(60px);
    animation: pulseOrb 6s ease-in-out infinite;
}

.legal-orb-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    left: 5%;
}

.legal-orb-2 {
    width: 250px;
    height: 250px;
    bottom: 20%;
    right: 10%;
    animation-delay: 3s;
}

@keyframes pulseOrb {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.05); }
}

.legal-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

/* Badge */
.legal-badge {
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: var(--radius-full);
    padding: 10px 20px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.legal-badge i {
    color: var(--blue-400);
    font-size: 14px;
}

.legal-badge span {
    color: var(--blue-300);
    font-size: 14px;
    font-weight: 600;
}

/* Title */
.legal-title {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.legal-title-gradient {
    background: linear-gradient(135deg, var(--blue-400) 0%, var(--blue-500) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Breadcrumb */
.legal-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 14px;
    margin-top: 20px;
}

.legal-breadcrumb a {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--primary-300);
    text-decoration: none;
    transition: all 0.2s ease;
}

.legal-breadcrumb a:hover {
    color: var(--blue-400);
}

.legal-breadcrumb .fa-chevron-right {
    color: var(--primary-500);
    font-size: 10px;
}

.legal-breadcrumb > span {
    color: var(--blue-400);
    font-weight: 600;
}

/* ================================
   MAIN SECTION
   ================================ */

.legal-main-section {
    background: var(--primary-900);
    padding: 80px 0 100px;
    position: relative;
}

.legal-glass-container {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-xl);
    padding: 48px;
    backdrop-filter: blur(10px);
}

/* Intro */
.legal-intro {
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-left: 4px solid var(--blue-500);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 40px;
}

.legal-intro p {
    color: var(--primary-200);
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
}

/* Content */
.legal-content h4 {
    color: var(--white);
    font-weight: 700;
    font-size: 1.25rem;
    margin-top: 40px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 12px;
}

.legal-content h4::before {
    content: '';
    width: 4px;
    height: 24px;
    background: linear-gradient(135deg, var(--blue-400), var(--blue-500));
    border-radius: 2px;
}

.legal-content h4:first-child {
    margin-top: 0;
}

.legal-content p {
    color: var(--primary-300);
    font-size: 0.9375rem;
    line-height: 1.8;
    margin-bottom: 16px;
}

.legal-content p:last-child {
    margin-bottom: 0;
}

.legal-content a {
    color: var(--blue-400);
    text-decoration: none;
    transition: color 0.2s ease;
}

.legal-content a:hover {
    color: var(--blue-300);
    text-decoration: underline;
}

/* Section divider */
.legal-section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.3), transparent);
    margin: 48px 0;
}

/* ================================
   RESPONSIVE - Tablet (768px)
   ================================ */

@media (max-width: 992px) {
    .legal-hero-section {
        padding: 120px 0 60px;
    }

    .legal-title {
        font-size: 2.25rem;
    }

    .legal-glass-container {
        padding: 36px;
    }
}

@media (max-width: 768px) {
    .legal-hero-section {
        padding: 100px 0 50px;
        min-height: auto;
    }

    .legal-title {
        font-size: 1.875rem;
    }

    .legal-badge {
        padding: 8px 16px;
        gap: 8px;
    }

    .legal-badge span {
        font-size: 12px;
    }

    .legal-breadcrumb {
        font-size: 12px;
        gap: 8px;
    }

    .legal-main-section {
        padding: 60px 0 80px;
    }

    .legal-glass-container {
        padding: 24px;
        border-radius: var(--radius-lg);
    }

    .legal-intro {
        padding: 20px;
    }

    .legal-content h4 {
        font-size: 1.125rem;
        margin-top: 32px;
    }

    .legal-content p {
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    .legal-hero-section {
        padding: 90px 0 40px;
    }

    .legal-title {
        font-size: 1.5rem;
    }

    .legal-glass-container {
        padding: 20px;
    }

    .legal-content h4 {
        font-size: 1rem;
        gap: 8px;
    }

    .legal-content h4::before {
        width: 3px;
        height: 20px;
    }

    .legal-section-divider {
        margin: 32px 0;
    }
}
