/* ============================================
   LEGAL PAGES - Mentions légales, RGPD, Cookies
   ============================================ */

/* Hero Section */
.legal-hero {
    background: linear-gradient(135deg, var(--vert-persil) 0%, #2a3a2a 100%);
    padding: 6rem 2rem 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.legal-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.legal-hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.legal-hero h1 {
    font-family: 'Libre Baskerville', serif;
    font-size: 2.5rem;
    color: var(--creme-fouettee);
    margin-bottom: 1rem;
}

.legal-hero .legal-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 241, 220, 0.8);
    max-width: 600px;
    margin: 0 auto;
}

.legal-hero .legal-update {
    font-size: 0.9rem;
    color: rgba(255, 241, 220, 0.6);
    margin-top: 1.5rem;
}

/* Content Section */
.legal-content {
    padding: 4rem 2rem;
    max-width: 900px;
    margin: 0 auto;
}

/* Table of Contents */
.legal-toc {
    background: var(--creme-fouettee);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.legal-toc h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--vert-persil);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.legal-toc ol {
    list-style: none;
    counter-reset: toc-counter;
    padding: 0;
    margin: 0;
}

.legal-toc li {
    counter-increment: toc-counter;
    margin-bottom: 0.5rem;
}

.legal-toc li a {
    color: var(--noir-olive);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.legal-toc li a::before {
    content: counter(toc-counter) ".";
    font-weight: 700;
    color: var(--vert-persil);
    min-width: 1.5rem;
}

.legal-toc li a:hover {
    color: var(--vert-persil);
}

/* Sections */
.legal-section {
    margin-bottom: 3rem;
    scroll-margin-top: 100px;
}

.legal-section h2 {
    font-family: 'Libre Baskerville', serif;
    font-size: 1.5rem;
    color: var(--vert-persil);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--vert-persil);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.legal-section h2 .section-number {
    background: var(--vert-persil);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
}

.legal-section h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--noir-olive);
    margin: 1.5rem 0 0.75rem;
}

.legal-section p {
    color: var(--noir-olive);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.legal-section ul,
.legal-section ol {
    margin: 1rem 0 1.5rem 1.5rem;
    color: var(--noir-olive);
    line-height: 1.8;
}

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

.legal-section a {
    color: var(--vert-persil);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.legal-section a:hover {
    color: var(--rouge-tomate);
}

/* Info Card */
.legal-info-card {
    background: linear-gradient(135deg, var(--creme-fouettee) 0%, #f5ebe0 100%);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-left: 4px solid var(--vert-persil);
}

.legal-info-card.warning {
    border-left-color: var(--jaune-oeuf);
    background: linear-gradient(135deg, #fffbeb 0%, #fef3cd 100%);
}

.legal-info-card.important {
    border-left-color: var(--rouge-tomate);
    background: linear-gradient(135deg, #fff5f5 0%, #fee 100%);
}

.legal-info-card p {
    margin: 0;
}

.legal-info-card strong {
    color: var(--vert-persil);
}

.legal-info-card.warning strong {
    color: #856404;
}

.legal-info-card.important strong {
    color: var(--rouge-tomate);
}

/* Table */
.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.legal-table th,
.legal-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.legal-table th {
    background: var(--vert-persil);
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
}

.legal-table tr:last-child td {
    border-bottom: none;
}

.legal-table tr:hover td {
    background: var(--creme-fouettee);
}

/* Contact Box */
.legal-contact-box {
    background: var(--vert-persil);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    margin-top: 3rem;
}

.legal-contact-box h3 {
    font-family: 'Libre Baskerville', serif;
    font-size: 1.3rem;
    color: var(--creme-fouettee);
    margin-bottom: 1rem;
}

.legal-contact-box p {
    color: rgba(255, 241, 220, 0.9);
    margin-bottom: 1.5rem;
}

.legal-contact-box a.btn {
    display: inline-block;
}

/* Responsive */
@media (max-width: 768px) {
    .legal-hero {
        padding: 5rem 1.5rem 3rem;
    }

    .legal-hero h1 {
        font-size: 1.8rem;
    }

    .legal-content {
        padding: 2.5rem 1.5rem;
    }

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

    .legal-table {
        font-size: 0.9rem;
    }

    .legal-table th,
    .legal-table td {
        padding: 0.75rem;
    }
}

@media (max-width: 480px) {
    .legal-hero h1 {
        font-size: 1.5rem;
    }

    .legal-toc {
        padding: 1.5rem;
    }

    .legal-section h2 .section-number {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }
}
