/**
 * Shop chrome for the three configured legal pages (Impressum, AGB,
 * Datenschutzerklärung) — ADR-033, owner decisions 2026-08-19: these pages
 * must feel like the shop, carry ONLY the shop's brand bar plus the page
 * text, and show no images. body.rso-legal-page-body is added by
 * ComplianceSettings::legal_page_body_class() on exactly these pages;
 * nothing else on the site is affected.
 */

body.rso-legal-page-body {
	background: #faf9f3;
	margin: 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Text only: the theme's own header/footer (old logo image, menus) and any
   image that might ever end up inside the content stay hidden here. */
body.rso-legal-page-body .site-header,
body.rso-legal-page-body .site-footer,
body.rso-legal-page-body .elementor-location-header,
body.rso-legal-page-body .elementor-location-footer,
body.rso-legal-page-body .wp-site-blocks > header,
body.rso-legal-page-body .wp-site-blocks > footer,
body.rso-legal-page-body header.wp-block-template-part,
body.rso-legal-page-body footer.wp-block-template-part {
	display: none;
}
body.rso-legal-page-body .rso-legal-page img,
body.rso-legal-page-body .rso-legal-page figure,
body.rso-legal-page-body .rso-legal-page picture,
body.rso-legal-page-body .rso-legal-page iframe {
	display: none !important;
}

.rso-legal-brandbar {
	background: rgba(255, 255, 255, 0.92);
	border-bottom: 1px solid #e7e4d8;
	padding: 12px clamp(14px, 3vw, 28px);
}
.rso-legal-brand { display: inline-flex; flex-direction: column; gap: 3px; text-decoration: none; border-radius: 8px; }
.rso-legal-brand:focus-visible { outline: 3px solid #46a500; outline-offset: 3px; }
.rso-legal-brand-row { display: flex; align-items: center; gap: 10px; }
.rso-legal-mark svg { display: block; height: clamp(30px, 3.4vw, 40px); width: auto; }
.rso-legal-word { font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 800; letter-spacing: -.015em; }
.rso-legal-word .w-rice { color: #46a500; }
.rso-legal-word .w-spice { color: #35800a; }
.rso-legal-word .w-tld { color: #8a8672; font-weight: 700; }
.rso-legal-brand-address { font-size: .72rem; color: #6b6853; }

.rso-legal-page {
	max-width: 760px;
	margin: 0 auto;
	padding: 8px clamp(14px, 3vw, 28px) 56px;
	color: #23221c;
	line-height: 1.65;
	font-size: 1rem;
}
body.rso-legal-page-body h1 {
	max-width: 760px;
	margin: 28px auto 6px;
	padding: 0 clamp(14px, 3vw, 28px);
	color: #23221c;
	font-size: clamp(1.6rem, 3.4vw, 2.2rem);
	font-weight: 800;
	letter-spacing: -.01em;
}
.rso-legal-page h2 { font-size: 1.15rem; font-weight: 700; margin: 30px 0 10px; color: #23221c; }
.rso-legal-page p { margin: 0 0 14px; }
.rso-legal-page ul { margin: 0 0 14px; padding-left: 22px; }
.rso-legal-page li { margin-bottom: 6px; }
.rso-legal-page a { color: #35800a; text-decoration: underline; text-underline-offset: 2px; }
.rso-legal-page a:hover { color: #23221c; }
.rso-legal-page strong { color: #23221c; }

@media (prefers-color-scheme: dark) {
	body.rso-legal-page-body { background: #171713; }
	.rso-legal-brandbar { background: rgba(23, 23, 19, 0.92); border-bottom-color: #33322a; }
	.rso-legal-brand-address { color: #b5b19a; }
	.rso-legal-word .w-rice { color: #6cc832; }
	.rso-legal-word .w-spice { color: #8ed95e; }
	.rso-legal-word .w-tld { color: #9b977f; }
	.rso-legal-page, body.rso-legal-page-body h1, .rso-legal-page h2, .rso-legal-page strong { color: #eceade; }
	.rso-legal-page a { color: #8ed95e; }
	.rso-legal-page a:hover { color: #eceade; }
}

/* WC-CHROME-1 (alpha.60): WooCommerce's My Account / cart under the same
   chrome — the theme's pink defaults give way to the shop's green. */
body.rso-legal-page-body .rso-legal-page img { display: revert !important; max-width: 100%; height: auto; }
body.rso-legal-page-body .woocommerce a { color: #35800a; }
body.rso-legal-page-body .woocommerce a:hover { color: #23221c; }
body.rso-legal-page-body .woocommerce .button,
body.rso-legal-page-body .woocommerce button.button,
body.rso-legal-page-body .woocommerce input.button,
body.rso-legal-page-body .woocommerce button[type="submit"] {
	background: #46a500; color: #fff; border: 0; border-radius: 999px; padding: 10px 18px; font-weight: 700; text-decoration: none; cursor: pointer;
}
body.rso-legal-page-body .woocommerce .button:hover,
body.rso-legal-page-body .woocommerce button.button:hover,
body.rso-legal-page-body .woocommerce input.button:hover,
body.rso-legal-page-body .woocommerce button[type="submit"]:hover { background: #35800a; color: #fff; }
body.rso-legal-page-body .woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0 0 18px; }
body.rso-legal-page-body .woocommerce-MyAccount-navigation a { font-weight: 700; text-decoration: none; }
body.rso-legal-page-body .woocommerce-MyAccount-navigation .is-active a { color: #23221c; }
body.rso-legal-page-body .woocommerce table.shop_table { width: 100%; border-collapse: collapse; font-size: .95rem; }
body.rso-legal-page-body .woocommerce table.shop_table th, body.rso-legal-page-body .woocommerce table.shop_table td { padding: 10px 8px; border-bottom: 1px solid #e7e4d8; text-align: left; }
body.rso-legal-page-body .woocommerce form .form-row input.input-text, body.rso-legal-page-body .woocommerce form .form-row select { width: 100%; padding: 10px 12px; border: 1px solid #d9d4c6; border-radius: 10px; font: inherit; }
