/* ============================================================
   legal.css — Styles partagés pour les pages légales
   Utilisé par : conditions-utilisation, cookies, politique-confidentialite
   ============================================================ */

/* --- Hero banner --- */
.legal-hero {
    background:
        radial-gradient(circle at top left, rgba(200, 165, 96, 0.18), transparent 35%),
        linear-gradient(180deg, #262626 0%, #1f1f1f 46%, #171717 100%);
    color: white;
    padding: 50px 0;
    text-align: center;
}

.legal-hero h1 {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.legal-hero p {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
}

/* --- Layout --- */
.legal-section {
    padding: 50px 0;
}

.legal-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 15px;
}

/* --- Table of contents --- */
.legal-toc {
    background-color: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 40px;
}

.legal-toc h2 {
    color: #231d18;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.legal-toc ol {
    padding-left: 20px;
    margin-bottom: 0;
}

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

.legal-toc a {
    color: #8a6d2f;
    text-decoration: none;
}

.legal-toc a:hover {
    text-decoration: underline;
}

/* --- Article blocks --- */
.legal-article {
    margin-bottom: 40px;
}

.legal-article h2 {
    color: #231d18;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.legal-article h3 {
    color: #8a6d2f;
    margin-top: 25px;
    margin-bottom: 15px;
}

.legal-article p, .legal-article li {
    color: #444;
    line-height: 1.7;
    margin-bottom: 15px;
}

.legal-article ul, .legal-article ol {
    padding-left: 20px;
    margin-bottom: 20px;
}

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

/* --- Footer meta --- */
.legal-meta {
    font-style: italic;
    color: #666;
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.legal-back-top {
    display: inline-block;
    margin-top: 10px;
    color: #8a6d2f;
    text-decoration: none;
}

.legal-back-top:hover {
    text-decoration: underline;
}

/* ============================================================
   Cookie-specific extras (cookies.html)
   ============================================================ */
.cookie-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.cookie-table th, .cookie-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.cookie-table th {
    background-color: #f5f5f5;
    color: #231d18;
    font-weight: 600;
}

.cookie-table tr:hover {
    background-color: #f9f9f9;
}

.cookie-preferences {
    background-color: #f5f5f5;
    padding: 25px;
    border-radius: 8px;
    margin: 30px 0;
}

.cookie-preferences h3 {
    margin-top: 0;
}

.toggle-group {
    margin: 15px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: #b99552;
}

input:checked + .toggle-slider:before {
    transform: translateX(26px);
}

.cookie-label {
    font-weight: 600;
    flex-grow: 1;
}

.cookie-save-btn {
    background-color: #b99552;
    color: #1a1815;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    margin-top: 10px;
}

.cookie-save-btn:hover {
    background-color: #a88543;
}
