/* =============================================
   PAGES LÉGALES — chrome partagé (hero + card)
   Utilisé par : page-mentions-legales.php, page-politique-de-
   confidentialite.php, page-declaration-accessibilite.php.

   Extrait de member-area.css le 18/07/2026 (vraie extraction, pas une
   copie de plus — le bloc "PAGES LÉGALES" n'a plus jamais existé dans
   member-area.css après ce chantier) : ces 3 pages sont publiques, sans
   rapport avec l'espace membre — les y faire dépendre créait une
   dépendance cachée déjà corrigée une fois pour declaration-accessibilite
   (commit 9fc2897), généralisée ici aux 3 pages d'un coup.

   Réécrit avec les tokens du design system (var(--clr-*), var(--font-*))
   au lieu des valeurs figées historiques du bloc d'origine — toutes
   vérifiées identiques en valeur (cf. commit 9fc2897).
   ============================================= */

.asaph-legal {
	font-family: var(--font-body);
	color: var(--clr-text);
	min-height: 100vh;
}

.asaph-legal__hero {
	/* Premier stop = --clr-primary-light ; les 2 autres sont des teintes
	   intermédiaires du dégradé, sans token dédié. */
	background: linear-gradient(135deg, var(--clr-primary-light) 0%, #d4edcf 50%, #c3e4bd 100%);
	padding: 4rem 1.5rem 3rem;
	text-align: center;
	position: relative;
	overflow: hidden;
}

.asaph-legal__hero::before {
	content: '';
	position: absolute;
	inset: 0;
	/* rgba dérivés des canaux RGB de --clr-primary (125,191,120) et
	   --clr-primary-dark (61,107,56) — pas de support projet pour la
	   syntaxe couleur relative CSS (rgb(from var(...) ...)) à ce jour. */
	background:
		radial-gradient(ellipse 60% 40% at 20% 80%, rgba(125, 191, 120, 0.18) 0%, transparent 70%),
		radial-gradient(ellipse 50% 60% at 80% 20%, rgba(61, 107, 56, 0.10) 0%, transparent 70%);
	pointer-events: none;
}

.asaph-legal__hero-inner {
	position: relative;
	max-width: 640px;
	margin: 0 auto;
}

.asaph-legal__hero-title {
	font-family: var(--font-heading);
	font-size: clamp(1.75rem, 4vw, 2.5rem);
	font-weight: 800;
	color: var(--clr-primary-dark);
	margin: 0 0 0.75rem;
	line-height: 1.2;
}

.asaph-legal__hero-sub {
	font-size: 1rem;
	color: var(--clr-text-muted);
	margin: 0;
}

.asaph-legal__content {
	padding: 3rem 1.5rem 4rem;
	background: var(--clr-bg-alt);
}

.asaph-legal__container {
	max-width: 800px;
	margin: 0 auto;
}

.asaph-legal__body {
	/* Blanc pur volontaire (pas var(--clr-bg), légèrement écru) — effet
	   « carte papier » net contre le fond pastel de .asaph-legal__content. */
	background: #fff;
	border-radius: 16px;
	box-shadow: var(--shadow-md);
	padding: 2.5rem 3rem;
	border: 1px solid rgba(125, 191, 120, 0.18);
	line-height: 1.8;
	font-family: var(--font-body);
}

.asaph-legal__body h2 {
	font-family: var(--font-heading);
	font-size: 1.2rem;
	font-weight: 700;
	color: var(--clr-primary-dark);
	margin: 2rem 0 0.75rem;
	padding-bottom: 0.4rem;
	border-bottom: 2px solid var(--clr-primary-light);
}

.asaph-legal__body h2:first-child {
	margin-top: 0;
}

.asaph-legal__body h3 {
	font-family: var(--font-heading);
	font-size: 1rem;
	font-weight: 600;
	color: var(--clr-primary-dark);
	margin: 1.25rem 0 0.5rem;
}

.asaph-legal__body p {
	margin: 0 0 1rem;
	color: var(--clr-text);
	overflow-wrap: break-word; /* adresses email/URL en texte brut, sans point
		de rupture naturel — débordent sous zoom élevé sinon (trouvé sur
		mentions-legales/politique-de-confidentialite, jusqu'à 252px, cf.
		docs/lot-deployable-sans-panneau-2026-08-06.md) */
}

.asaph-legal__body a {
	color: var(--clr-primary-dark);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.asaph-legal__body a:hover {
	color: var(--clr-primary-dark);
	filter: brightness(0.85);
}

.asaph-legal__body ul,
.asaph-legal__body ol {
	margin: 0 0 1rem 1.25rem;
	padding: 0;
}

.asaph-legal__body li {
	margin-bottom: 0.35rem;
	overflow-wrap: break-word;
}

.asaph-legal__back {
	margin-top: 2rem;
	text-align: center;
}

.asaph-legal__back-link {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.9rem;
	font-weight: 500;
	color: var(--clr-text-muted);
	text-decoration: none;
	transition: color var(--transition);
}

.asaph-legal__back-link:hover {
	color: var(--clr-primary-dark);
}

@media (max-width: 600px) {
	.asaph-legal__hero {
		padding: 2.5rem 1rem 2rem;
	}
	.asaph-legal__body {
		padding: 1.5rem 1.25rem;
	}
}
