:root {
    --bg: #fffafb;
    --primary: #fbe7eb;
    --secondary: #d8aab5;
    --text: #916b8f;
    --title: #6b5a6b;
    --radius: 22px;
    --shadow: 0 10px 30px rgba(216, 170, 181, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    margin: 0;
    font-family: "Host Grotesk", sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 1.1rem;
    line-height: 1.7;
}

/* Container principal style 'Glassmorphism' doux */
main.legal-container {
    max-width: 950px;
    margin: 2rem auto 4rem;
    padding: 3rem;
    background: #ffffff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid rgba(216, 170, 181, 0.2);
    overflow: hidden;
}

/* En-tête de page */
.legal-header {
    text-align: center;
    margin-bottom: 3rem;
}

.legal-header h1 {
    color: var(--title);
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    letter-spacing: -0.5px;
}

.legal-header p {
    color: var(--text);
    opacity: 0.8;
    margin: 0;
    font-size: 1rem;
}

/* Onglets de navigation interactifs */
.legal-tabs {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 3rem;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 1rem;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text);
    font-family: inherit;
    font-size: 1.05rem;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    border-radius: 30px;
    transition: var(--transition);
}

.tab-btn:hover {
    background: var(--primary);
    color: var(--title);
}

.tab-btn.active {
    background: var(--secondary);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(216, 170, 181, 0.4);
}

/* Zones de contenu */
.tab-content {
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition);
}

.tab-content.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
    animation: fadeInSlideUp 0.4s ease forwards;
}

/* Contenu des articles */
.tab-content h2 {
    color: var(--title);
    font-size: 1.4rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tab-content h2::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 1.4rem;
    background: var(--secondary);
    border-radius: 3px;
}

.tab-content p, .tab-content ul {
    margin-bottom: 1.2rem;
    color: var(--text);
}

.tab-content ul {
    padding-left: 1.5rem;
}

.tab-content li {
    margin-bottom: 0.6rem;
}

.tab-content strong {
    color: var(--title);
}

.highlight-box {
    background: var(--bg);
    border-left: 4px solid var(--secondary);
    padding: 1.25rem 1.5rem;
    border-radius: 0 12px 12px 0;
    margin: 1.5rem 0;
}

.highlight-box p {
    margin: 0;
    font-style: italic;
}

/* Navigation retour */
.back-home-container {
    max-width: 950px;
    margin: 3rem auto 0;
    padding: 0 1rem;
}

.back-home {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--secondary);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.back-home:hover {
    color: var(--title);
    transform: translateX(-4px);
}

/* Animation */
@keyframes fadeInSlideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    main.legal-container {
        margin: 1.5rem;
        padding: 2rem 1.5rem;
    }

    .legal-tabs {
        flex-direction: column;
        gap: 0.5rem;
        border-bottom: none;
        padding-bottom: 0;
    }

    .tab-btn {
        width: 100%;
        text-align: center;
    }
}
