/* ==========================================================
   LUXSYSTECH — Legal Pages Stylesheet
   Shared by mentions-legales.html & politique-confidentialite.html
   ========================================================== */

/* ---------- Legal Hero ---------- */
.legal-hero {
    padding: 140px 0 60px;
    background: linear-gradient(160deg, var(--navy-900) 0%, var(--navy) 60%, var(--navy-light) 100%);
    color: var(--white);
}

.legal-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 20px;
    transition: var(--transition);
    opacity: 0.8;
}
.legal-back:hover {
    opacity: 1;
    gap: 8px;
}

.legal-hero h1 {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 10px;
}

.legal-hero p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.6);
}

/* ---------- Legal Content Layout ---------- */
.legal-content {
    padding: 64px 0 100px;
    background: var(--slate-50);
}

.legal-content > .container {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 48px;
    align-items: start;
}

/* ---------- Legal Body ---------- */
.legal-body {
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius);
    padding: 48px 44px;
}

.legal-section {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--slate-200);
}
.legal-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.legal-section h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 16px;
    letter-spacing: -0.3px;
}

.legal-section p {
    color: var(--slate-600);
    font-size: 0.93rem;
    line-height: 1.75;
    margin-bottom: 12px;
}
.legal-section p:last-child {
    margin-bottom: 0;
}

.legal-section a {
    color: var(--accent-dark);
    font-weight: 500;
    transition: var(--transition);
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 3px;
}
.legal-section a:hover {
    text-decoration-color: var(--accent);
}

/* Info block */
.legal-info-block {
    background: var(--slate-50);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-sm);
    padding: 20px 24px;
    margin: 16px 0;
}
.legal-info-block p {
    margin-bottom: 4px;
    font-size: 0.9rem;
}
.legal-info-block p:last-child {
    margin-bottom: 0;
}

/* Lists */
.legal-list {
    list-style: none;
    padding: 0;
    margin: 12px 0;
}
.legal-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    font-size: 0.93rem;
    color: var(--slate-600);
    line-height: 1.7;
}
.legal-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}
.legal-list li strong {
    color: var(--slate-800);
}

/* ---------- Legal Sidebar ---------- */
.legal-sidebar {
    position: sticky;
    top: 90px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.legal-nav-card {
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius);
    padding: 24px;
}

.legal-nav-card h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.legal-nav-card ul {
    list-style: none;
    padding: 0;
}

.legal-nav-card ul li {
    margin-bottom: 4px;
}

.legal-nav-card ul a {
    display: block;
    padding: 8px 12px;
    border-radius: var(--radius-xs);
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--slate-600);
    transition: var(--transition);
}
.legal-nav-card ul a:hover {
    background: var(--slate-100);
    color: var(--navy);
}
.legal-nav-card ul a.active {
    background: var(--accent-light);
    color: var(--accent-dark);
    font-weight: 600;
}

.legal-nav-card p {
    font-size: 0.88rem;
    color: var(--slate-600);
    line-height: 1.5;
    margin-bottom: 14px;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.85rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .legal-content > .container {
        grid-template-columns: 1fr;
    }

    .legal-sidebar {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .legal-nav-card {
        flex: 1;
        min-width: 220px;
    }
}

@media (max-width: 640px) {
    .legal-hero {
        padding: 120px 0 44px;
    }

    .legal-body {
        padding: 28px 22px;
    }

    .legal-section h2 {
        font-size: 1.1rem;
    }

    .legal-content {
        padding: 40px 0 64px;
    }

    .legal-sidebar {
        flex-direction: column;
    }

    .legal-nav-card {
        min-width: 100%;
    }
}
