/**
 * CW Landing Compliance — standalone section: centered title + badge strip
 * + footer note. Visuals ported 1:1 from the old cw-landing-quality__compliance
 * sub-block so existing landing pages look identical after the split.
 */

/* Section frame: same white band the old quality block used, so when both
   blocks sit next to each other they read as one continuous band. */
.cw-landing-compliance {
	background-color: var(--wp--preset--color--white, #fff);
	color: var(--wp--preset--color--warm-dark, #2d2a26);
	padding-block: clamp(3.5rem, 6vw, 6rem);
	padding-inline: var(--cw-landing-section-pad-x, 1rem);
	box-sizing: border-box;
}

/* Centered stack: title -> badges -> footer note. */
.cw-landing-compliance__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: clamp(2rem, 4vw, 3.375rem);
	text-align: center;
	width: 100%;
	box-sizing: border-box;
	padding-inline: 0;
}

.cw-landing-compliance__heading {
	margin: 0;
	max-width: 48rem;
	font-size: clamp(1.125rem, 2vw, 1.375rem);
	font-weight: 700;
	line-height: 1.25;
	color: var(--wp--preset--color--warm-dark, #2d2a26);
}

/* Badge row: pill-shaped cool-surface capsule that wraps on small viewports.
   gap:0 because each badge carries its own 1px divider borders. */
.cw-landing-compliance__badges {
	width: 100%;
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	justify-content: center;
	gap: 0;
	background-color: var(--wp--preset--color--surface-cool, #f8faff);
	border-radius: 1.5rem;
	overflow: hidden;
	box-sizing: border-box;
}

.cw-landing-compliance__badge {
	flex: 1 1 9.5rem;
	min-width: min(100%, 9.5rem);
	max-width: 16rem;
	padding: 1.5rem;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	align-items: center;
	border-right: 1px solid #eee;
	border-bottom: 1px solid #eee;
}

.cw-landing-compliance__badge:last-child {
	border-right: none;
}

/* On wide viewports badges sit in one row, so the bottom divider becomes noise. */
@media (min-width: 900px) {
	.cw-landing-compliance__badge {
		border-bottom: none;
	}
}

.cw-landing-compliance__badge-media {
	width: 100%;
	max-width: 6.875rem;
	height: 4rem;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 16px;
}

.cw-landing-compliance__badge-img {
	display: block;
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
}

.cw-landing-compliance__badge-title {
	margin: 0 !important;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.25;
	color: var(--wp--preset--color--warm-dark, #2d2a26);
}

.cw-landing-compliance__badge-sub {
	margin: 0 !important;
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.5;
	color: var(--wp--preset--color--warm-dark, #2d2a26);
}

.cw-landing-compliance__foot {
	margin: 0;
	max-width: 56rem;
	font-size: 1rem;
	line-height: 1.5;
	color: var(--wp--preset--color--warm-dark, #2d2a26);
}
