body.l3-legal-page {
	--l3-legal-accent: #e4f202;
	--l3-legal-bg: #0b0f13;
	--l3-legal-surface: #111820;
	--l3-legal-surface-soft: #171f27;
	--l3-legal-border: rgba(255, 255, 255, .11);
	--l3-legal-text: #f6f8fa;
	--l3-legal-muted: #bac3cb;
}

body.l3-legal-page .l3-main.l3-page {
	box-sizing: border-box;
	position: relative;
	display: block !important;
	width: min(calc(100% - 48px), 1180px) !important;
	max-width: 1180px !important;
	margin: clamp(24px, 4vw, 48px) auto !important;
	padding: clamp(38px, 5vw, 68px) !important;
	border: 1px solid var(--l3-legal-border) !important;
	border-top: 4px solid var(--l3-legal-accent) !important;
	border-radius: 22px !important;
	background:
		radial-gradient(circle at 88% 4%, rgba(228, 242, 2, .14), transparent 28%),
		linear-gradient(145deg, var(--l3-legal-surface), var(--l3-legal-bg) 72%) !important;
	box-shadow: 0 24px 64px rgba(0, 0, 0, .24);
	overflow: hidden;
}

/*
 * The privacy page is much taller than the imprint. A percentage-sized
 * radial gradient therefore expands with the document height and washes the
 * whole header in the accent colour. Keep its light source dimensioned in
 * pixels so both legal pages retain the same restrained dark appearance.
 */
body.l3-legal-page--privacy .l3-main.l3-page {
	background:
		radial-gradient(ellipse 720px 460px at 94% 0%, rgba(228, 242, 2, .12), transparent 68%),
		linear-gradient(90deg, var(--l3-legal-surface), var(--l3-legal-bg) 72%) !important;
}

body.l3-legal-page .l3-main.l3-page::after {
	content: "§";
	position: absolute;
	top: -36px;
	right: clamp(18px, 5vw, 64px);
	color: rgba(228, 242, 2, .055);
	font-size: clamp(150px, 20vw, 260px);
	font-weight: 900;
	line-height: 1;
	pointer-events: none;
}

body.l3-legal-page .l3-main.l3-page > * {
	position: relative;
	z-index: 1;
}

body.l3-legal-page .l3-main.l3-page > .wp-block-post-title {
	max-width: 880px;
	margin: 0 !important;
	color: var(--l3-legal-text);
	font-size: clamp(42px, 6.5vw, 72px) !important;
	font-weight: 900;
	letter-spacing: -.045em;
	line-height: .98 !important;
	text-transform: uppercase;
}

body.l3-legal-page .l3-main.l3-page > .wp-block-post-title::before {
	content: "RECHTLICHES & TRANSPARENZ";
	display: block;
	margin: 0 0 14px;
	color: var(--l3-legal-accent);
	font-size: 11px;
	font-weight: 900;
	letter-spacing: .16em;
	line-height: 1.3;
}

body.l3-legal-page .l3-main.l3-page > .entry-content {
	box-sizing: border-box;
	width: 100% !important;
	max-width: 880px !important;
	margin: clamp(30px, 4vw, 46px) 0 0 !important;
	padding: 0 !important;
	color: var(--l3-legal-muted);
	font-size: 16px;
	line-height: 1.76;
	overflow-wrap: anywhere;
}

body.l3-legal-page .entry-content > h2:first-child {
	margin: 0 0 14px !important;
	padding: 0 !important;
	border: 0 !important;
	color: var(--l3-legal-text);
	font-size: clamp(22px, 3vw, 30px) !important;
	font-weight: 820;
	line-height: 1.15 !important;
}

body.l3-legal-page--privacy .entry-content > p:nth-child(2) {
	display: inline-flex;
	align-items: center;
	min-height: 32px;
	margin: 0 0 18px !important;
	padding: 5px 11px;
	border: 1px solid rgba(228, 242, 2, .28);
	border-radius: 999px;
	background: rgba(228, 242, 2, .07);
	color: #dce69b;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .02em;
}

body.l3-legal-page .entry-content > h2:not(:first-child) {
	margin: 42px 0 16px !important;
	padding: 25px 0 0 !important;
	border-top: 1px solid var(--l3-legal-border);
	color: var(--l3-legal-text);
	font-size: clamp(21px, 2.5vw, 27px) !important;
	font-weight: 820;
	line-height: 1.22 !important;
	scroll-margin-top: 110px;
}

body.l3-legal-page .entry-content > h3 {
	margin: 30px 0 12px !important;
	color: var(--l3-legal-text);
	font-size: 18px !important;
	font-weight: 800;
	line-height: 1.3 !important;
}

body.l3-legal-page .entry-content p {
	margin-top: 0;
	margin-bottom: 18px;
	color: var(--l3-legal-muted);
}

body.l3-legal-page .entry-content strong {
	color: var(--l3-legal-text);
}

body.l3-legal-page .entry-content ul,
body.l3-legal-page .entry-content ol {
	box-sizing: border-box;
	margin: 18px 0 24px !important;
	padding: 19px 22px 19px 44px !important;
	border: 1px solid var(--l3-legal-border);
	border-left: 3px solid var(--l3-legal-accent);
	border-radius: 13px;
	background: rgba(255, 255, 255, .035);
}

body.l3-legal-page .entry-content li + li {
	margin-top: 7px;
}

body.l3-legal-page .entry-content a {
	color: var(--l3-legal-accent);
	font-weight: 720;
	text-decoration-color: rgba(228, 242, 2, .5);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

body.l3-legal-page .entry-content a:hover {
	color: #f4ff42;
	text-decoration-color: currentColor;
}

body.l3-legal-page .entry-content a:focus-visible,
body.l3-legal-page .entry-content button:focus-visible {
	outline: 3px solid var(--l3-legal-accent);
	outline-offset: 3px;
}

body.l3-legal-page .entry-content code {
	padding: 2px 6px;
	border: 1px solid rgba(255, 255, 255, .1);
	border-radius: 6px;
	background: var(--l3-legal-surface-soft);
	color: #eef4bd;
	font-size: .92em;
}

body.l3-legal-page .entry-content .l3-consent-transition__button {
	box-shadow: 0 10px 24px rgba(228, 242, 2, .12);
}

@media (max-width: 782px) {
	body.l3-legal-page .l3-main.l3-page {
		width: calc(100% - 24px) !important;
		margin: 18px auto 30px !important;
		padding: 30px 22px 36px !important;
		border-radius: 17px !important;
	}

	body.l3-legal-page--privacy .l3-main.l3-page {
		background:
			radial-gradient(ellipse 420px 300px at 100% 0%, rgba(228, 242, 2, .1), transparent 70%),
			linear-gradient(90deg, var(--l3-legal-surface), var(--l3-legal-bg) 72%) !important;
	}

	body.l3-legal-page .l3-main.l3-page::after {
		top: -12px;
		right: 8px;
		font-size: 132px;
	}

	body.l3-legal-page .l3-main.l3-page > .wp-block-post-title {
		font-size: clamp(36px, 12vw, 50px) !important;
		line-height: 1 !important;
	}

	body.l3-legal-page .l3-main.l3-page > .wp-block-post-title::before {
		margin-bottom: 11px;
		font-size: 9px;
	}

	body.l3-legal-page .l3-main.l3-page > .entry-content {
		margin-top: 26px !important;
		font-size: 15.5px;
		line-height: 1.7;
	}

	body.l3-legal-page .entry-content > h2:not(:first-child) {
		margin-top: 34px !important;
		padding-top: 21px !important;
		font-size: 21px !important;
	}

	body.l3-legal-page .entry-content ul,
	body.l3-legal-page .entry-content ol {
		padding: 17px 16px 17px 34px !important;
		border-radius: 11px;
	}
}

@media (prefers-reduced-motion: no-preference) {
	body.l3-legal-page .entry-content a,
	body.l3-legal-page .entry-content button {
		transition: color .18s ease, border-color .18s ease, background-color .18s ease;
	}
}
