/**
 * Rechtstexte (z. B. page-id-337 AGB) — Gutenberg
 */

body.shop-page--legal .site-main{
	padding-top: clamp(32px, 5vw, 48px);
	padding-bottom: clamp(56px, 7vw, 96px);
}

body.shop-page--legal .entry-header{
	margin-bottom: clamp(20px, 3vw, 28px);
}

body.shop-page--legal .entry-title{
	margin: 0;
	font-family: "Outfit", sans-serif;
	font-size: clamp(2rem, 4vw, 2.75rem);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.02em;
	color: var(--shop-color-text);
}

body.shop-page--legal .entry-content{
	box-sizing: border-box;
	max-width: 1280px;
	margin: 0 auto;
	padding: clamp(28px, 5vw, 52px);
	border: 1px solid var(--shop-color-border);
	border-radius: 16px;
	background: var(--shop-color-card-bg);
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.06);
}

html[data-shop-theme="dark"] body.shop-page--legal .entry-content{
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

body.shop-page--legal .entry-content > .wp-block-heading:first-child{
	margin: 0 0 1.75rem;
	padding-bottom: 1.25rem;
	border-bottom: 1px solid var(--shop-color-border);
	font-family: "Outfit", sans-serif;
	font-size: clamp(1.35rem, 2.5vw, 1.75rem);
	font-weight: 700;
	line-height: 1.25;
	color: var(--shop-color-text);
}

/* §-Titel am Absatzanfang (strong) als Zwischenüberschrift */
body.shop-page--legal .entry-content .wp-block-paragraph strong:first-child,
body.shop-page--legal .entry-content p strong:first-child{
	display: block;
	margin: 0 0 0.75rem;
	padding-top: 1.75rem;
	border-top: 1px solid var(--shop-color-border);
	font-family: "Outfit", sans-serif;
	font-size: 1.0625rem;
	font-weight: 700;
	line-height: 1.35;
	color: var(--shop-color-text);
}

body.shop-page--legal .entry-content > .wp-block-paragraph:first-of-type strong:first-child,
body.shop-page--legal .entry-content > .wp-block-heading:first-child + .wp-block-paragraph strong:first-child{
	padding-top: 0;
	border-top: none;
}

body.shop-page--legal .entry-content .wp-block-paragraph,
body.shop-page--legal .entry-content .wp-block-list,
body.shop-page--legal .entry-content > p{
	max-width: 78ch;
	font-size: 1.05rem;
	line-height: 1.72;
	color: var(--shop-color-text-muted);
}

body.shop-page--legal .entry-content .wp-block-paragraph,
body.shop-page--legal .entry-content > p{
	margin: 0 0 1.35rem;
}

body.shop-page--legal .entry-content .wp-block-paragraph b,
body.shop-page--legal .entry-content .wp-block-paragraph strong:not(:first-child),
body.shop-page--legal .entry-content p strong:not(:first-child){
	font-weight: 600;
	color: var(--shop-color-text);
}

body.shop-page--legal .entry-content a{
	color: var(--shop-urban-accent, #3d9e94);
	text-decoration: underline;
	text-underline-offset: 3px;
}

body.shop-page--legal .entry-content a:hover,
body.shop-page--legal .entry-content a:focus-visible{
	color: var(--shop-color-text);
}

body.shop-page--legal .entry-content em{
	font-style: italic;
	color: var(--shop-color-text-muted);
}

body.shop-page--legal .entry-content .wp-block-list{
	margin: 0 0 1.35rem;
	padding-left: 1.35rem;
	list-style: disc;
}

body.shop-page--legal .entry-content .wp-block-list li{
	margin-bottom: 0.5rem;
	line-height: 1.65;
	color: var(--shop-color-text-muted);
}

body.shop-page--legal .entry-content .wp-block-list p{
	margin: 0 0 0.75rem;
	max-width: none;
}

body.shop-page--legal .entry-content h2,
body.shop-page--legal .entry-content h3,
body.shop-page--legal .entry-content h4{
	max-width: 78ch;
	font-family: "Outfit", sans-serif;
	font-weight: 700;
	color: var(--shop-color-text);
}

body.shop-page--legal .entry-content h2{
	margin: 2.25rem 0 1rem;
	font-size: 1.35rem;
}

body.shop-page--legal .entry-content h3:not(:first-child){
	margin: 1.75rem 0 0.75rem;
	font-size: 1.125rem;
}

/* Nummerierte Hauptabschnitte (z. B. Datenschutz H4) */
body.shop-page--legal .entry-content > h4.wp-block-heading,
body.shop-page--legal .entry-content > h3.wp-block-heading{
	margin: 2.25rem 0 1rem;
	padding-top: 1.75rem;
	border-top: 1px solid var(--shop-color-border);
	font-size: clamp(1.15rem, 2vw, 1.35rem);
	line-height: 1.3;
}

body.shop-page--legal .entry-content > h4.wp-block-heading:first-child,
body.shop-page--legal .entry-content > h3.wp-block-heading:first-child{
	margin-top: 0;
	padding-top: 0;
	border-top: none;
}

/* Nur-Strong-Absätze = Unterüberschrift (z. B. „Allgemeine Hinweise“) */
body.shop-page--legal .entry-content .wp-block-paragraph:has(> strong:only-child){
	margin-bottom: 0.65rem;
}

body.shop-page--legal .entry-content .wp-block-paragraph:has(> strong:only-child) strong{
	padding-top: 0;
	margin-top: 1.25rem;
	border-top: none;
	font-size: 1rem;
}

body.shop-page--legal .entry-content sup:empty{
	display: none;
}

@media (max-width: 639px){
	body.shop-page--legal .entry-content{
		padding: 22px 18px 28px;
		border-radius: 12px;
	}
}