/* =====================================================
   Styles spécifiques CGU — surcharge styles.css
   ===================================================== */

/* Conteneur étroit centré, avec marge pour le header fixe */
.cgu-wrap {
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem 5% 3rem;
}

/* Titre principal */
.cgu-wrap h1 {
    color: var(--red);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

/* Date de mise à jour */
.cgu-wrap .update-date {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 3rem;
    font-style: italic;
}

/* Titres h2 avec bordure rouge */
.cgu-wrap h2 {
    color: var(--red);
    font-size: 1.8rem;
    margin-top: 3rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--red);
}

/* Titres h3 */
.cgu-wrap h3 {
    color: var(--text);
    font-size: 1.3rem;
    margin-top: 2rem;
    margin-bottom: 0.8rem;
}

/* Paragraphes */
.cgu-wrap p {
    margin-bottom: 1rem;
    text-align: justify;
    line-height: 1.8;
}

/* Listes */
.cgu-wrap ul,
.cgu-wrap ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.cgu-wrap li {
    margin-bottom: 0.5rem;
    line-height: 1.8;
}

/* Liens */
.cgu-wrap a {
    color: var(--red);
    text-decoration: none;
    transition: opacity 0.3s;
}

.cgu-wrap a:hover {
    opacity: 0.7;
    text-decoration: underline;
}

/* Encadrés bordure gauche rouge */
.cgu-wrap .section-box {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 10px;
    margin: 1.5rem 0;
    border-left: 4px solid var(--red);
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

[data-theme="dark"] .cgu-wrap .section-box {
    box-shadow: 0 3px 10px rgba(0,0,0,0.3);
}

/* Table des matières */
.cgu-wrap .toc {
    background: var(--bg-alt);
    padding: 2rem;
    border-radius: 10px;
    margin: 2rem 0;
}

.cgu-wrap .toc h2 {
    margin-top: 0;
    font-size: 1.5rem;
    border-bottom: 2px solid var(--red);
    padding-bottom: 0.5rem;
}

.cgu-wrap .toc ul {
    margin-left: 1.5rem;
    list-style: none;
}

.cgu-wrap .toc li {
    margin-bottom: 0.5rem;
}

.cgu-wrap .toc a {
    color: var(--text);
}

.cgu-wrap .toc a:hover {
    color: var(--red);
}

/* Sections — compensation header fixe pour les ancres */
.cgu-wrap section {
    scroll-margin-top: 70px;
}

/* Séparateur bas de page */
.cgu-wrap hr {
    margin: 3rem 0;
    border: none;
    border-top: 1px solid var(--border-color);
}

/* Note bas de page */
.cgu-wrap .cgu-note {
    text-align: center;
    font-style: italic;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 768px) {
    .cgu-wrap h1 { font-size: 2rem; }
    .cgu-wrap h2 { font-size: 1.5rem; }
    .cgu-wrap    { padding: 3rem 5% 2rem; }
}
.cgu-wrap .back-link {
	color: white;
}

.cgu-wrap .back-link:hover {
	color: white;
	opacity: 1;
}