/* ==========================================================================
   Pages légales (mentions légales, conditions, confidentialité).
   Pas de maquette Figma : gabarit maison dans l'esprit de la landing.
   Complète landing.css (tokens, header, footer).
   ========================================================================== */

/* En-tête ------------------------------------------------------------------ */
.c1-legal__hero {
	position: relative;
	overflow: hidden;
	padding: calc(var(--c1-header-h) + 80px) var(--c1-gutter) 150px;
	background: var(--c1-sky);
	text-align: center;
}
.c1-legal__blob {
	position: absolute;
	left: 46%;
	top: 40px;
	width: 1177px !important; height: 833px !important;
	max-width: none !important;
	pointer-events: none;
}
.c1-legal__hero-inner {
	position: relative;
	z-index: 1;
	display: flex; flex-direction: column; align-items: center; gap: 24px;
	max-width: 820px;
	margin: 0 auto;
}
.c1-legal__title {
	font-family: var(--c1-font-title);
	font-weight: 600;
	font-size: clamp(34px, 2.8vw + 12px, 52px);
	line-height: 1.2;
	color: var(--c1-black);
}
.c1-legal__intro { max-width: 640px; font-size: 18px; line-height: 1.6; color: var(--c1-gray); }
.c1-legal__date {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 8px 16px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.7);
	font-size: 14px;
	color: var(--c1-gray);
}
.c1-legal__date::before {
	content: "";
	width: 18px; height: 18px;
	background: url("../icons/form-calendar.svg") no-repeat center / contain;
}

/* Corps -------------------------------------------------------------------- */
.c1-legal__body { position: relative; z-index: 2; padding: 0 var(--c1-gutter) 120px; }
.c1-legal__card {
	display: grid;
	grid-template-columns: 260px minmax(0, 1fr);
	gap: 64px;
	max-width: 1140px;
	margin: -80px auto 0;
	padding: 56px;
	border-radius: 24px;
	background: var(--c1-white);
	box-shadow: 0 20px 60px rgba(4, 104, 198, 0.12);
}
.c1-legal__card:not(:has(.c1-legal__toc)) { grid-template-columns: minmax(0, 1fr); max-width: 900px; }

/* Sommaire */
.c1-legal__toc { position: sticky; top: calc(var(--c1-header-h) + 32px); align-self: start; }
.c1-legal__toc-title {
	margin-bottom: 16px;
	font-family: var(--c1-font-title);
	font-weight: 600;
	font-size: 14px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--c1-primary);
}
.c1-legal__toc-list { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 0; list-style: none; border-left: 2px solid var(--c1-ice); }
.c1-legal__toc-link {
	display: flex; gap: 10px;
	margin-left: -2px;
	padding: 8px 12px;
	border-left: 2px solid transparent;
	font-size: 14px;
	line-height: 1.4;
	color: var(--c1-gray);
	transition: color 0.3s var(--c1-ease), border-color 0.3s var(--c1-ease), background-color 0.3s var(--c1-ease);
}
.c1-legal__toc-num { flex: none; font-variant-numeric: tabular-nums; color: var(--c1-neutral); transition: color 0.3s var(--c1-ease); }
.c1-legal__toc-link:hover { color: var(--c1-primary); }
.c1-legal__toc-link.is-active { border-left-color: var(--c1-primary); background: var(--c1-primary-tint); color: var(--c1-dark); font-weight: 600; }
.c1-legal__toc-link.is-active .c1-legal__toc-num { color: var(--c1-primary); }

/* Texte (blocs de l'éditeur WordPress) */
.c1-legal__content { max-width: 760px; font-size: 16px; line-height: 1.75; color: #454545; }
.c1-legal__content > * + * { margin-top: 16px; }
.c1-legal__content h2 {
	margin-top: 48px;
	padding-top: 8px;
	font-family: var(--c1-font-title);
	font-weight: 600;
	font-size: 24px;
	line-height: 1.3;
	color: var(--c1-dark);
	scroll-margin-top: calc(var(--c1-header-h) + 32px);
}
.c1-legal__content > h2:first-child,
.c1-legal__content > .c1-legal-note + h2 { margin-top: 0; }
.c1-legal__content h3 { margin-top: 28px; font-family: var(--c1-font-title); font-weight: 600; font-size: 18px; line-height: 1.4; color: var(--c1-dark); }
.c1-legal__content strong { color: var(--c1-dark); font-weight: 600; }
.c1-legal__content a { color: var(--c1-primary-deep); text-decoration: underline; text-underline-offset: 2px; }
.c1-legal__content a:hover { color: var(--c1-primary); }
.c1-legal__content ul,
.c1-legal__content ol { padding-left: 0; list-style: none; }
.c1-legal__content li { position: relative; padding-left: 24px; }
.c1-legal__content li + li { margin-top: 8px; }
.c1-legal__content ul > li::before {
	content: "";
	position: absolute; left: 4px; top: 0.72em;
	width: 7px; height: 7px;
	border-radius: 50%;
	background: var(--c1-primary);
}
.c1-legal__content ol { counter-reset: c1-ol; }
.c1-legal__content ol > li { counter-increment: c1-ol; }
.c1-legal__content ol > li::before { content: counter(c1-ol) "."; position: absolute; left: 0; font-weight: 600; color: var(--c1-primary); }
.c1-legal__content table { width: 100%; border-collapse: collapse; font-size: 15px; }
.c1-legal__content th,
.c1-legal__content td { padding: 10px 12px; border-bottom: 1px solid var(--c1-ice); text-align: left; vertical-align: top; }
.c1-legal__content th { color: var(--c1-dark); background: var(--c1-primary-tint); }

/* Encadré « texte provisoire » (bloc Paragraphe avec la classe c1-legal-note) */
.c1-legal__content .c1-legal-note {
	padding: 16px 20px;
	border-left: 4px solid var(--c1-primary);
	border-radius: 8px;
	background: var(--c1-ice);
	font-size: 15px;
	color: var(--c1-primary-deep);
}
.c1-legal__content .c1-legal-note + * { margin-top: 32px; }

/* Voir aussi --------------------------------------------------------------- */
.c1-legal__others { max-width: 1140px; margin: 56px auto 0; }
.c1-legal__others-title { margin-bottom: 16px; font-family: var(--c1-font-title); font-weight: 600; font-size: 20px; color: var(--c1-dark); }
.c1-legal__others-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.c1-legal__other {
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
	padding: 22px 24px;
	border: 1px solid var(--c1-ice);
	border-radius: 16px;
	background: var(--c1-white);
	font-family: var(--c1-font-title);
	font-weight: 500;
	font-size: 17px;
	color: var(--c1-dark);
	box-shadow: 0 6px 20px rgba(4, 104, 198, 0.06);
	transition: border-color 0.4s var(--c1-ease), box-shadow 0.4s var(--c1-ease), translate 0.4s var(--c1-ease);
}
.c1-legal__other img { flex: none; width: 40px; height: 40px; transition: translate 0.4s var(--c1-ease); }
.c1-legal__other:hover { border-color: var(--c1-primary); box-shadow: 0 14px 30px rgba(4, 104, 198, 0.14); translate: 0 -3px; }
.c1-legal__other:hover img { translate: 4px 0; }

/* Responsive --------------------------------------------------------------- */
@media (max-width: 1023px) {
	.c1-legal__hero { padding: calc(var(--c1-header-h) + 48px) var(--c1-gutter) 120px; }
	.c1-legal__blob { left: 20%; top: 80px; }
	.c1-legal__card { grid-template-columns: minmax(0, 1fr); gap: 32px; padding: 40px; }
	.c1-legal__toc { position: static; padding: 20px 24px; border-radius: 16px; background: var(--c1-primary-tint); }
	.c1-legal__toc-list { border-left: 0; }
	.c1-legal__toc-link { margin-left: 0; padding: 6px 0; border-left: 0; }
	.c1-legal__toc-link.is-active { background: none; font-weight: 400; color: var(--c1-gray); }
	.c1-legal__toc-link.is-active .c1-legal__toc-num { color: var(--c1-neutral); }
}
@media (max-width: 640px) {
	.c1-legal__hero { padding-bottom: 100px; }
	.c1-legal__intro { font-size: 16px; }
	.c1-legal__blob { left: -30%; }
	.c1-legal__card { margin-top: -60px; padding: 24px 20px; border-radius: 20px; }
	.c1-legal__content { font-size: 15px; }
	.c1-legal__content h2 { font-size: 21px; margin-top: 36px; }
	.c1-legal__body { padding-bottom: 80px; }
}
