/**
 * Homepage Section 8 — Legal / Copyright Bottom Strip (post-dark-footer)
 * Primary wrapper selector: .sm-section--home-8
 *
 * Matches studiom.ai last section: white background, 1px top separator at
 * the dark-to-light boundary, horizontal flex layout with company info text
 * on the left and Privacy Policy + T&C links on the right.
 * Positioned directly below the dark sm-section--home-7 footer.
 *
 * Reference: studiom.ai Section 8
 *   "Capital M © BTW NL003722531B27 · KVK 82708177 · De Kuil 10, 1251DZ, Laren"
 *   + Privacy Policy  |  Terms & Conditions
 * Background : #ffffff
 * Separator  : border-top 1px solid #e0e0e0 (section-level, at dark→light edge)
 * Text color : #666666 (company info, de-emphasised)
 * Links      : #333333 (slightly darker than info text)
 * Layout     : flex row desktop (info left / links right), stacked mobile
 *
 * SCOPE: All selectors are scoped to .sm-section--home-8.
 *        No selectors without the wrapper prefix.
 *
 * @package StudioM_Child
 */

/* ========================================================================
   Section Outer Container — full-width white strip with top separator
   The border-top sits exactly at the dark Section 7 → white Section 8
   boundary, giving a crisp 1px dividing line without dead whitespace above.
   ======================================================================== */

.sm-section--home-8 {
	background-color: #ffffff;
	border-top: 1px solid #e0e0e0;
	padding-top: 24px;
	padding-bottom: 24px;
	padding-left: 0 !important;
	padding-right: 0 !important;
}

/* Neutralise TT5 global-padding injection on the wrapper itself */
.sm-section--home-8.has-global-padding,
.sm-section--home-8.is-layout-constrained {
	padding-left: 0 !important;
	padding-right: 0 !important;
}

/* Neutralise TT5 global-padding injection on nested constrained blocks */
.sm-section--home-8 .has-global-padding,
.sm-section--home-8 .is-layout-constrained {
	padding-left: 0 !important;
	padding-right: 0 !important;
}

/* ========================================================================
   Inner Container — max-width 1200px, centred, consistent with Sections 2–7
   ======================================================================== */

.sm-section--home-8 .sm-container {
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 20px !important;
	padding-right: 20px !important;
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}

@media (min-width: 768px) {
	.sm-section--home-8 .sm-container {
		padding-left: 40px !important;
		padding-right: 40px !important;
	}
}

/* ========================================================================
   Inner Flex Layout
   Desktop (≥ 768 px): side-by-side, space-between, centred vertically
   Mobile            : stacked, left-aligned, 8 px gap
   ======================================================================== */

.sm-section--home-8 .sm-legal8__inner {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
}

@media (min-width: 768px) {
	.sm-section--home-8 .sm-legal8__inner {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		gap: 24px;
	}
}

/* ========================================================================
   Company Info Text
   "Capital M © · BTW · KVK · Address"
   Light gray (#666666), small, regular-weight — secondary / de-emphasised
   ======================================================================== */

.sm-section--home-8 .sm-legal8__info {
	font-family: 'Chivo', sans-serif;
	font-size: 12px;
	font-weight: 300;
	line-height: 1.8;
	color: #666666;
	margin: 0;
	padding: 0;
	letter-spacing: 0.01em;
}

/* ========================================================================
   Legal Links List
   Inline row: Privacy Policy · Terms & Conditions
   Slightly darker (#333333) than info text; no underline at rest
   ======================================================================== */

.sm-section--home-8 .sm-legal8__links {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 20px;
	flex-shrink: 0;
}

.sm-section--home-8 .sm-legal8__links li {
	margin: 0;
	padding: 0;
}

.sm-section--home-8 .sm-legal8__links a {
	font-family: 'Chivo', sans-serif;
	font-size: 12px;
	font-weight: 300;
	line-height: 1.8;
	color: #333333;
	text-decoration: none;
	transition: color 0.2s ease;
}

.sm-section--home-8 .sm-legal8__links a:hover {
	color: #111111;
	text-decoration: underline;
}

.sm-section--home-8 .sm-legal8__links a:focus-visible {
	color: #111111;
	outline: 2px solid #111111;
	outline-offset: 2px;
}

/* ========================================================================
   WordPress Block Spacing Normalisation — scoped to Section 8 only
   ======================================================================== */

.sm-section--home-8 .wp-block-group {
	gap: 0;
}
