/* Pages légales CFTC-ONF — mentions, confidentialité, accessibilité */

.page-template-page-mentions-legales .site,
.page-template-page-politique-confidentialite .site,
.page-template-page-accessibilite .site,
.page-template-page-mentions-legales .site-content,
.page-template-page-politique-confidentialite .site-content,
.page-template-page-accessibilite .site-content,
.page-template-page-mentions-legales .content-area,
.page-template-page-politique-confidentialite .content-area,
.page-template-page-accessibilite .content-area,
.page-template-page-mentions-legales .site-main,
.page-template-page-politique-confidentialite .site-main,
.page-template-page-accessibilite .site-main,
.page-template-page-mentions-legales article,
.page-template-page-politique-confidentialite article,
.page-template-page-accessibilite article,
.cftc-legal-main {
	max-width: none !important;
	width: 100% !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
}

.lg-hero {
	background: var(--b1, #212e81);
	padding: 48px 48px 40px;
	position: relative;
	overflow: hidden;
}
.lg-hero--deco::after {
	content: "";
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	background-image: var(--lg-hero-deco-url);
	background-size: cover;
	background-repeat: no-repeat;
	background-position: center center;
	opacity: var(--lg-hero-deco-opacity, 0.18);
	pointer-events: none;
}
.lg-hero--deco > * {
	position: relative;
	z-index: 1;
}
.lg-mosaic {
	height: 5px;
	width: 100%;
	background: linear-gradient(to right, #212e81, #24318a, #0f3f93, #114f9f, #2669b2, #20b29e, #fbbb1d);
	position: relative;
	z-index: 1;
	display: block;
}
.lg-hero-kicker {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 3px;
	text-transform: uppercase;
	color: var(--teal, #20b29e);
	margin-bottom: 12px;
	display: flex;
	align-items: center;
	gap: 8px;
}
.lg-hero-kicker::before {
	content: "";
	width: 22px;
	height: 2px;
	background: var(--teal, #20b29e);
	border-radius: 2px;
}
.lg-hero-title {
	font-family: var(--global-heading-font-family, Georgia, serif);
	font-size: clamp(26px, 3.4vw, 40px);
	font-weight: 700;
	color: #fff;
	line-height: 1.15;
	margin: 0 0 12px;
}
.lg-hero-sub {
	font-size: 15px;
	color: rgba(255, 255, 255, 0.72);
	line-height: 1.65;
	max-width: 720px;
	margin: 0;
}
.lg-hero-meta {
	margin-top: 18px;
	font-size: 12px;
	color: rgba(255, 255, 255, 0.55);
}

.lg-wrap {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 260px;
	gap: 40px;
	padding: 40px 48px 64px;
	box-sizing: border-box;
	align-items: start;
	max-width: 1180px;
	margin: 0 auto;
}

.lg-side {
	position: sticky;
	top: 88px;
	z-index: 1;
	align-self: start;
	max-height: calc(100vh - 112px);
	overflow: auto;
}
.lg-nav {
	position: relative;
	border: 1.5px solid var(--border, #c8daf0);
	border-radius: 14px;
	background: var(--surface, #fff);
	overflow: hidden;
}
.lg-nav-head {
	padding: 7px 14px;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	color: var(--mid, #4a5568);
	border-bottom: 1px solid var(--border, #c8daf0);
	display: flex;
	align-items: center;
	min-height: 30px;
	line-height: 1.2;
	box-sizing: border-box;
}
.lg-nav a {
	display: block;
	padding: 8px 16px;
	font-size: 13px;
	color: var(--mid, #4a5568);
	text-decoration: none;
	border-left: 3px solid transparent;
	line-height: 1.35;
}
.lg-nav a:hover,
.lg-nav a:focus-visible {
	color: var(--b3, #0f3f93);
	background: rgba(15, 63, 147, 0.05);
	outline: none;
}
.lg-siblings {
	margin-top: 32px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.lg-siblings .lg-nav-head {
	padding: 0 2px 4px;
	border: none;
}
.lg-siblings a {
	display: block;
	padding: 10px 14px;
	border-radius: 10px;
	border: 1.5px solid var(--border, #c8daf0);
	color: var(--b3, #0f3f93);
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
	background: var(--surface, #fff);
}
.lg-siblings a:hover {
	border-color: var(--b3, #0f3f93);
}

.lg-section {
	scroll-margin-top: 96px;
	margin-bottom: 40px;
}
.lg-prose h2,
.lg-section h2 {
	font-family: var(--global-heading-font-family, Georgia, serif);
	font-size: clamp(20px, 2.2vw, 26px);
	font-weight: 700;
	color: var(--b1, #212e81);
	margin: 0 0 14px;
	line-height: 1.25;
	scroll-margin-top: 96px;
}
.lg-prose h2:not(:first-child),
.lg-section h2:not(:first-child) {
	margin-top: 2.75rem;
}
.lg-prose h3,
.lg-section h3 {
	font-size: 16px;
	font-weight: 700;
	color: var(--b3, #0f3f93);
	margin: 28px 0 10px;
}
.lg-prose p,
.lg-prose li,
.lg-section p,
.lg-section li {
	font-size: 15px;
	line-height: 1.7;
	color: var(--text, #1a2340);
}
.lg-prose p,
.lg-section p {
	margin: 0 0 12px;
}
.lg-prose ul,
.lg-prose ol,
.lg-section ul,
.lg-section ol {
	margin: 0 0 14px;
	padding-left: 1.25em;
}
.lg-section li {
	margin-bottom: 6px;
}
.lg-prose a,
.lg-section a {
	color: var(--b3, #0f3f93);
	font-weight: 650;
}
.lg-dl {
	display: grid;
	grid-template-columns: 180px 1fr;
	gap: 8px 16px;
	margin: 0 0 16px;
	font-size: 15px;
}
.lg-dl dt {
	font-weight: 700;
	color: var(--b1, #212e81);
}
.lg-dl dd {
	margin: 0;
	color: var(--text, #1a2340);
}
.lg-note {
	padding: 14px 16px;
	border-radius: 10px;
	border: 1.5px solid var(--border, #c8daf0);
	background: var(--off, #f2f6fb);
	font-size: 14px;
	line-height: 1.6;
	margin: 0 0 16px;
}
.lg-table-wrap {
	overflow-x: auto;
	margin: 0 0 16px;
}
.lg-prose table,
.lg-section table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}
.lg-prose th,
.lg-prose td,
.lg-section th,
.lg-section td {
	border: 1px solid var(--border, #c8daf0);
	padding: 10px 12px;
	text-align: left;
	vertical-align: top;
}
.lg-prose th,
.lg-section th {
	background: var(--off, #f2f6fb);
	color: var(--b1, #212e81);
	font-weight: 700;
}
.lg-empty {
	color: var(--mid, #4a5568);
	font-style: italic;
}

@media (max-width: 900px) {
	.lg-hero {
		padding: 36px 20px 32px;
	}
	.lg-wrap {
		grid-template-columns: 1fr;
		padding: 28px 16px 48px;
		max-width: 100%;
		box-sizing: border-box;
		overflow-x: hidden;
	}
	.lg-main,
	.lg-prose,
	.lg-section {
		min-width: 0;
		max-width: 100%;
		overflow-wrap: break-word;
		word-break: normal;
	}
	.lg-prose a,
	.lg-prose code,
	.lg-prose pre {
		overflow-wrap: anywhere;
		word-break: break-word;
	}
	.lg-side,
	.lg-nav {
		position: static;
		max-height: none;
		overflow: visible;
	}
	.lg-dl {
		grid-template-columns: 1fr;
		gap: 2px 0;
	}
	.lg-dl dt {
		margin-top: 8px;
	}
	.cftc-legal-main,
	.page-template-page-politique-confidentialite .site-content,
	.page-template-page-mentions-legales .site-content,
	.page-template-page-accessibilite .site-content {
		overflow-x: hidden;
		max-width: 100vw;
	}
}

body.dark .lg-hero-title {
	color: #fff;
}
body.dark .lg-hero {
	background: linear-gradient(135deg, #1a2748 0%, #0f3f93 55%, #1a3a6e 100%);
}
body.dark .lg-hero-sub {
	color: rgba(232, 237, 245, 0.78);
}
body.dark .lg-hero-meta {
	color: rgba(232, 237, 245, 0.55);
}
body.dark .lg-wrap {
	color: var(--text, #e8edf5);
}
body.dark .lg-prose h2,
body.dark .lg-section h2 {
	color: var(--b1-readable, #c5d4f5);
}
body.dark .lg-prose h3,
body.dark .lg-section h3 {
	color: var(--b5, #9ec5ff);
}
body.dark .lg-prose p,
body.dark .lg-prose li,
body.dark .lg-section p,
body.dark .lg-section li,
body.dark .lg-dl dd {
	color: var(--text, #e8edf5);
}
body.dark .lg-prose a,
body.dark .lg-section a {
	color: var(--b5, #9ec5ff);
}
body.dark .lg-prose a:hover,
body.dark .lg-section a:hover {
	color: #fff;
}
body.dark .lg-nav,
body.dark .lg-siblings a,
body.dark .lg-note {
	background: var(--surface, #161d2e);
	border-color: var(--border, #2d3d5c);
}
body.dark .lg-nav-head,
body.dark .lg-siblings .lg-nav-head {
	color: var(--mid, #a8b4cc);
	border-color: var(--border, #2d3d5c);
}
body.dark .lg-nav a {
	color: var(--mid, #a8b4cc);
}
body.dark .lg-nav a:hover,
body.dark .lg-nav a:focus-visible {
	color: var(--b5, #9ec5ff);
	background: color-mix(in srgb, var(--b3, #0f3f93) 18%, var(--surface, #161d2e));
}
body.dark .lg-siblings a {
	color: var(--b5, #9ec5ff);
}
body.dark .lg-siblings a:hover {
	border-color: var(--b5, #9ec5ff);
	background: color-mix(in srgb, var(--b3, #0f3f93) 16%, var(--surface, #161d2e));
	color: #fff;
}
body.dark .lg-note {
	color: var(--mid, #a8b4cc);
}
body.dark .lg-prose th,
body.dark .lg-section th {
	background: var(--surface-alt, #1a2438);
	color: var(--b1-readable, #c5d4f5);
}
body.dark .lg-prose th,
body.dark .lg-prose td,
body.dark .lg-section th,
body.dark .lg-section td {
	border-color: var(--border, #2d3d5c);
	color: var(--text, #e8edf5);
}
body.dark .lg-dl dt {
	color: var(--b1-readable, #c5d4f5);
}
body.dark .lg-empty {
	color: var(--mid, #a8b4cc);
}
body.dark.page-template-page-mentions-legales .site,
body.dark.page-template-page-politique-confidentialite .site,
body.dark.page-template-page-accessibilite .site,
body.dark.page-template-page-mentions-legales .site-content,
body.dark.page-template-page-politique-confidentialite .site-content,
body.dark.page-template-page-accessibilite .site-content,
body.dark.page-template-page-mentions-legales .content-area,
body.dark.page-template-page-politique-confidentialite .content-area,
body.dark.page-template-page-accessibilite .content-area,
body.dark.page-template-page-mentions-legales .site-main,
body.dark.page-template-page-politique-confidentialite .site-main,
body.dark.page-template-page-accessibilite .site-main,
body.dark .cftc-legal-main {
	background: var(--off, #0f1419) !important;
	color: var(--text, #e8edf5);
}
