/* Shared reading layout for the shop's legal documents. */
main.lb-legal {
	box-sizing: border-box;
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 68px 40px 64px;
	background: var(--lb-gruen-hell, #fdfff5);
	color: var(--lb-rechtstext, #191d15);
}

.lb-legal .lb-legal__title,
.lb-legal .lb-legal__body :is(h2, h3, h4) {
	width: fit-content;
	max-width: 100%;
	padding-block-end: 0.16em;
	color: var(--lb-schwarz, #000);
	background-image: url("/wp-content/uploads/lucas-bikes-h1-swipe.svg");
	background-repeat: no-repeat;
	background-position: 0.35em bottom;
	background-size: min(80%, 5.5em) auto;
}

.lb-legal .lb-legal__title {
	margin: 0 auto 68px;
	background-position: center bottom;
	background-size: min(80%, 6em) auto;
	font-family: "Helvetica Neue Static Local", "Barlow Static Local", sans-serif;
	font-size: clamp(38px, 4.4vw, 56px);
	font-weight: 700;
	letter-spacing: -0.025em;
	line-height: 1.085;
	text-align: center;
	text-transform: uppercase;
	hyphens: manual;
	overflow-wrap: anywhere;
}

.lb-legal .lb-legal__body {
	max-width: 670px;
	margin-inline: auto;
	font-family: "Barlow Static Local", sans-serif;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.73;
	overflow-wrap: anywhere;
}

.lb-legal__body :where(p, ul, ol, h2, h3, h4) {
	margin: 0;
	color: inherit;
}

.lb-legal__body :is(p, li) {
	font: inherit;
}

.lb-legal__body > * + * {
	margin-block-start: 1.5em;
}

.lb-legal__body :is(h2, h3, h4) {
	font-family: inherit;
	font-weight: 700;
	line-height: 1.25;
	text-transform: none;
	text-wrap: pretty;
}

.lb-legal__body h2 {
	margin-block-start: 2em;
	font-size: 1.65em;
}

/* Leave the target heading visible below the sticky shop header. */
.lb-legal__body :is(#muster-widerrufsformular, #versand, #zahlung) {
	--lb-legal-anchor-offset: 11rem;
	scroll-margin-top: calc(var(--lb-legal-anchor-offset) + var(--wp-admin--admin-bar--height, 0px));
}

@media (min-width: 768px) and (max-width: 1024px) {
	.lb-legal__body :is(#muster-widerrufsformular, #versand, #zahlung) { --lb-legal-anchor-offset: 5rem; }
}

@media (max-width: 767px) {
	.lb-legal__body :is(#muster-widerrufsformular, #versand, #zahlung) { --lb-legal-anchor-offset: 8.5rem; }
}

.lb-legal__body h3 {
	margin-block-start: 1.6em;
	font-size: 1.25em;
}

.lb-legal__body h4 {
	margin-block-start: 1.35em;
	font-size: 1.05em;
}

.lb-legal__body > :first-child {
	margin-block-start: 0;
}

.lb-legal__body :is(h2, h3, h4) + * {
	margin-block-start: 0.65em;
}

.lb-legal__body :is(ul, ol) {
	padding-inline-start: 1.5em;
}

.lb-legal__body li + li {
	margin-block-start: 0.45em;
}

.lb-legal__body .wp-block-table { margin-inline: 0; }
.lb-legal__body .wp-block-table table { width: 100%; border-collapse: collapse; line-height: 1.45; }
.lb-legal__body .wp-block-table :is(th, td) {
	padding: 0.8em 0.9em;
	border: 0;
	border-bottom: 1px solid var(--lb-rechtstabelle-linie, #dce3ce);
	background: transparent;
	text-align: left;
	vertical-align: top;
}
.lb-legal__body .wp-block-table th { width: 64%; font-weight: 600; }
.lb-legal__body .wp-block-table tr:nth-child(odd) { background-color: var(--lb-rechtstabelle-flaeche, #f0f4e6); }

.lb-legal .lb-legal__body a {
	color: var(--lb-link-dunkel, #496300);
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

.lb-legal .lb-legal__body a:is(:hover, :focus-visible) {
	color: var(--lb-rechtstext, #191d15);
}

@media (max-width: 699px) {
	main.lb-legal {
		padding: 38px 24px 36px;
	}

	.lb-legal .lb-legal__title {
		margin-block-end: 38px;
		font-size: clamp(26px, 8.2vw, 32px);
		line-height: 1.135;
	}

	.lb-legal .lb-legal__body {
		font-size: 15px;
		line-height: 1.715;
	}
}
