/* Legal pages (mentions légales, politique de confidentialité)
   Standalone styling. Inherits CSS variables from atsimmo.css. */

body.legal-page {
	background: var(--color-bg) !important;
	color: var(--color-text) !important;
	font-family: var(--font-sans) !important;
}

body.legal-page .site-header {
	background: #8B6F47;
	padding: 0 3rem;
	height: 5rem;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}
body.legal-page .site-header__inner {
	height: 100%;
}
body.legal-page .site-header__brand img {
	height: 5.5rem;
	filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.3));
}
body.legal-page .site-header__nav a {
	color: #FAF6EC;
}
body.legal-page .site-header__nav a:hover {
	color: #3B2D1F;
	opacity: 1;
}

@media (max-width: 980px) {
	body.legal-page .site-header {
		padding: 0 0.85rem;
		height: 3.25rem;
	}
	body.legal-page .site-header__brand img {
		height: 4.5rem;
	}
}

.legal {
	padding: 7rem max(6vw, calc((100vw - 64rem) / 2)) 4rem;
	color: var(--color-text);
}

.legal__inner {
	max-width: 52rem;
	margin: 0 auto;
}

.legal h1 {
	font-family: var(--font-serif) !important;
	font-style: italic;
	font-weight: 300;
	font-size: clamp(2.2rem, 4vw, 3.4rem) !important;
	letter-spacing: -0.01em;
	line-height: 1.05;
	color: var(--color-navy);
	margin: 0 0 1.5rem !important;
}

.legal__lede {
	font-family: var(--font-serif);
	font-size: clamp(1.05rem, 1.4vw, 1.25rem);
	line-height: 1.65;
	color: var(--color-text);
	margin: 0 0 3rem;
	padding-bottom: 2rem;
	border-bottom: 1px solid var(--color-line);
	font-style: italic;
}

.legal h2 {
	font-family: var(--font-sans) !important;
	font-size: 0.78rem !important;
	font-weight: 600 !important;
	letter-spacing: 0.22em !important;
	text-transform: uppercase !important;
	color: var(--color-cognac) !important;
	margin: 2.5rem 0 0.9rem !important;
}

.legal p,
.legal li {
	font-family: var(--font-sans);
	font-size: 0.95rem;
	line-height: 1.7;
	color: var(--color-text);
	margin: 0 0 1rem;
}

.legal p strong {
	color: var(--color-navy);
	font-weight: 600;
}

.legal ul {
	list-style: none;
	margin: 0 0 1.25rem;
	padding: 0;
}

.legal ul li {
	position: relative;
	padding-left: 1.25rem;
	margin: 0 0 0.5rem;
}

.legal ul li::before {
	content: '◆';
	position: absolute;
	left: 0;
	top: 0.05em;
	color: var(--color-cognac);
	font-size: 0.55rem;
	line-height: 1.85;
}

.legal a {
	color: var(--color-cognac);
	text-decoration: underline;
	text-underline-offset: 3px;
	border: 0 !important;
}

.legal a:hover {
	color: var(--color-navy);
}

.legal__updated {
	margin-top: 3rem !important;
	padding-top: 1.5rem;
	border-top: 1px solid var(--color-line);
	color: var(--color-text-muted);
	font-size: 0.82rem;
	font-style: italic;
}

.legal-footer {
	padding: 1.75rem max(6vw, calc((100vw - 64rem) / 2));
	border-top: 1px solid var(--color-line);
	background: var(--color-paper);
}

.legal-footer__inner {
	max-width: 64rem;
	margin: 0 auto;
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	align-items: center;
	justify-content: center;
	font-family: var(--font-sans);
	font-size: 0.78rem;
	color: var(--color-text-muted);
}

.legal-footer a {
	color: var(--color-cognac);
	text-decoration: none;
	border: 0 !important;
}

.legal-footer a:hover {
	color: var(--color-navy);
}

@media (max-width: 736px) {
	.legal {
		padding: 5rem 5vw 3rem;
	}
	.legal__inner {
		max-width: 100%;
	}
	.legal h1 {
		font-size: 2rem !important;
	}
}

/* ==========================================================================
   404 — Page introuvable
   ========================================================================== */

body.error-page {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.error {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 6rem max(6vw, calc((100vw - 60rem) / 2)) 4rem;
	text-align: center;
}

.error__inner {
	max-width: 36rem;
}

.error__code {
	font-family: var(--font-serif) !important;
	font-style: italic;
	font-weight: 300;
	font-size: clamp(5rem, 14vw, 9rem) !important;
	line-height: 1;
	color: var(--color-cognac);
	margin: 0 0 1rem !important;
	letter-spacing: -0.03em;
	opacity: 0.85;
}

.error__title {
	font-family: var(--font-serif) !important;
	font-style: italic;
	font-weight: 300;
	font-size: clamp(2rem, 4vw, 3rem) !important;
	line-height: 1.05;
	letter-spacing: -0.01em;
	color: var(--color-navy);
	margin: 0 0 1.25rem !important;
}

.error__lede {
	font-family: var(--font-sans);
	font-size: 1rem;
	line-height: 1.7;
	color: var(--color-text-muted);
	margin: 0 0 2.5rem;
}

.error__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.85rem;
	justify-content: center;
}

.error__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.85rem 1.85rem;
	border-radius: 999px;
	font-family: var(--font-sans);
	font-size: 0.78rem;
	font-weight: 500;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	text-decoration: none !important;
	border: 1px solid var(--color-cognac) !important;
	color: var(--color-cognac) !important;
	transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
	text-indent: 0.09em;
}

.error__btn:hover {
	background: var(--color-cognac);
	color: #ffffff !important;
}

.error__btn--primary {
	background: var(--color-cognac);
	color: #ffffff !important;
}

.error__btn--primary:hover {
	background: var(--color-navy);
	border-color: var(--color-navy) !important;
}

@media (max-width: 736px) {
	.error {
		padding: 4rem 5vw 3rem;
	}
	.error__actions {
		flex-direction: column;
		align-items: stretch;
	}
	.error__btn {
		min-width: 0;
	}
}
