/* ==========================================================================
   BookDriver.ch - Legal Pages (CGV, Prix, Retours)
   ========================================================================== */

.legal-hero {
    padding: 140px 0 60px;
    background: var(--gradient);
    color: var(--white);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.legal-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 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.05'%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 h1 {
    color: var(--white);
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 16px;
    position: relative;
}

.legal-hero p {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.8);
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.legal-content {
    padding: 80px 0;
}

.legal-content .container {
    max-width: 860px;
}

.legal-section {
    margin-bottom: 48px;
}

.legal-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-light);
}

.legal-section h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 12px;
    margin-top: 24px;
}

.legal-section p {
    color: var(--text);
    line-height: 1.8;
    margin-bottom: 16px;
}

.legal-section ul {
    margin: 12px 0 20px 24px;
    color: var(--text);
    line-height: 1.8;
}

.legal-section ul li {
    margin-bottom: 8px;
}

.legal-section strong {
    color: var(--dark);
}

.legal-last-update {
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
    padding-top: 32px;
    border-top: 1px solid var(--border);
    margin-top: 60px;
}

/* Price table */
.price-table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0 32px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.price-table thead {
    background: var(--gradient);
    color: var(--white);
}

.price-table th {
    padding: 16px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 0.95rem;
}

.price-table td {
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
    color: var(--text);
}

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

.price-table tbody tr:nth-child(even) {
    background: var(--light);
}

.price-table tbody tr:hover {
    background: var(--primary-light);
}

.price-note {
    background: var(--light);
    border-left: 4px solid var(--primary);
    padding: 20px 24px;
    border-radius: 0 var(--radius) var(--radius) 0;
    margin: 24px 0;
    font-size: 0.95rem;
    color: var(--text);
    line-height: 1.7;
}

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

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

    .legal-hero p {
        font-size: 1rem;
    }

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

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

    .price-table {
        font-size: 0.85rem;
    }

    .price-table th,
    .price-table td {
        padding: 10px 12px;
    }
}
