/* ============================================================
   Mise en page des pages legales (CGU / RGPD)
   Injectee APRES les styles Word pour les surcharger.
   Ne modifie pas le texte : uniquement la presentation.
   ============================================================ */

html, body{ margin: 0; padding: 0; }

body{
	background: #eef1f6;
	color: #3F4652;
	font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	line-height: 1.65;
	font-size: 16px;
}

/* Force la typo moderne partout (remplace le Times New Roman inline de Word) */
.WordSection1,
.WordSection1 *{
	font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
}

/* --- En-tete de marque --- */
.legal-header{
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	max-width: 880px;
	margin: 0 auto;
	padding: 1.25rem 1.5rem;
}
.legal-header img{ height: 46px; width: auto; }
.legal-back{
	color: #6767bf;
	font-weight: 600;
	text-decoration: none;
	padding: .45rem .9rem;
	border: 1px solid #d6dae6;
	border-radius: 8px;
	background: #fff;
	transition: background .2s ease, color .2s ease, border-color .2s ease;
	white-space: nowrap;
}
.legal-back:hover{
	background: #6767bf;
	color: #fff;
	border-color: #6767bf;
}

/* --- Bloc "papier" contenant le texte --- */
.WordSection1{
	max-width: 880px;
	margin: 0 auto 3rem;
	background: #fff;
	padding: 3rem clamp(1.25rem, 4vw, 3.5rem);
	border-radius: 14px;
	box-shadow: 0 10px 30px rgba(63,70,82,.08);
	border: 1px solid #e7ebf3;
}

/* --- Titres --- */
/* Titre principal : h2 (CGU) ou 1er paragraphe outline-level 1 (RGPD) */
.WordSection1 h2,
.WordSection1 p[style*="outline-level:1"]{
	color: #465d80;
	font-size: 1.9rem;
	font-weight: 800;
	line-height: 1.2;
	margin: 0 0 1.5rem;
	padding-bottom: .75rem;
	border-bottom: 3px solid #6767bf;
}

/* Sous-titres : h3 (CGU) ou outline-level 2/3 (RGPD) */
.WordSection1 h3,
.WordSection1 p[style*="outline-level:2"],
.WordSection1 p[style*="outline-level:3"]{
	color: #6767bf;
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.3;
	margin: 2.25rem 0 .75rem;
	padding-left: .75rem;
	border-left: 4px solid #6767bf;
}

/* RGPD : les titres Word portent une taille en pt sur le <span> interne.
   On la normalise pour garder une hierarchie coherente. */
.WordSection1 p[style*="outline-level:1"] span{ font-size: 1.9rem !important; }
.WordSection1 p[style*="outline-level:2"] span{ font-size: 1.45rem !important; }
.WordSection1 p[style*="outline-level:3"] span{ font-size: 1.2rem !important; }
.WordSection1 p[style*="outline-level:2"]{ font-size: 1.45rem; }
.WordSection1 p[style*="outline-level:3"]{ font-size: 1.2rem; }

/* Date de derniere mise a jour, sous le titre principal */
.WordSection1 p.legal-date{
	margin: -.75rem 0 2rem;
	color: #8a929e;
	font-size: .9rem;
	font-style: italic;
	text-align: left;
}

/* --- Corps de texte --- */
.WordSection1 p{
	margin: 0 0 1.05rem;
	text-align: justify;
}
.WordSection1 a{ color: #6767bf; }
.WordSection1 a:hover{ color: #465d80; }

/* --- Listes --- */
.WordSection1 ul,
.WordSection1 ol{
	margin: 0 0 1.2rem;
	padding-left: 1.6rem;
}
.WordSection1 li{
	margin: .35rem 0;
	text-indent: 0 !important;
}

@media screen and (max-width: 600px){
	.WordSection1 p{ text-align: left; }
	.WordSection1 h2,
	.WordSection1 p[style*="outline-level:1"]{ font-size: 1.55rem; }
}
