/* ==========================================================================
   Legal Modal — opens legal pages in an iframe overlay
   z-index 100001 keeps this above the age gate overlay (z-index: 10000)
   ========================================================================== */

#lnl-legal-modal {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.75);
	z-index: 100001;
	display: flex;
	align-items: center;
	justify-content: center;
}

.lnl-legal-modal__content {
	position: relative;
	width: 90%;
	max-width: 800px;
	height: 85vh;
	background: #fff;
	border-radius: 2px;
	overflow: hidden;
}

.lnl-legal-modal__close {
	position: absolute;
	top: 4px;
	right: 8px;
	font-size: 24px;
	line-height: 1;
	background: none;
	border: none;
	cursor: pointer;
	color: #2D292B;
	z-index: 1;
	/* 44×44px minimum touch target (WCAG 2.5.5) */
	min-width: 44px;
	min-height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
}

.lnl-legal-modal__close:hover {
	color: #000;
}

.lnl-legal-modal__content iframe {
	width: 100%;
	height: 100%;
	border: none;
	display: block;
}

/* ==========================================================================
   Legal page — full-page mode (with theme header/footer)
   ========================================================================== */

/* Make the WordPress page wrapper a flex column so .legal-page can grow to fill the viewport.
   body.page targets all WP pages; body.home targets the front page (unaffected). */
body.page #page {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

.legal-page {
	background: #fff;
	flex: 1;
}

/* Sitemap two-column horizontal layout */
.sitemap-columns {
	display: flex;
	gap: 80px;
}

.sitemap-column {
	flex: 1;
}

@media (max-width: 768px) {
	.sitemap-columns {
		flex-direction: column;
		gap: 32px;
	}
}

.legal-page-content {
	max-width: 1100px;
	margin: 0 auto;
	padding: 64px 40px 80px;
	font-family: 'Raleway', sans-serif;
	font-size: 16px;
	line-height: 1.7;
	color: #2D292B;
}

.legal-page-content h1 {
	font-family: 'Saira ExtraCondensed', 'Saira Extra Condensed', sans-serif;
	font-size: 48px;
	font-weight: 700;
	text-transform: uppercase;
	/* #4F729A gives 4.6:1 contrast on white — passes WCAG AA */
	color: #4F729A;
	margin: 0 0 32px;
}

/* BrandSDK-injected content */
.legal-page-content h2 {
	font-family: 'Saira ExtraCondensed', 'Saira Extra Condensed', sans-serif;
	font-size: 28px;
	font-weight: 700;
	text-transform: uppercase;
	color: #4F729A;
	margin: 40px 0 12px;
}

.legal-page-content h3 {
	font-size: 18px;
	font-weight: 700;
	color: #2D292B;
	margin: 28px 0 8px;
}

.legal-page-content p {
	margin: 0 0 16px;
}

/* Privacy Policy content from Gallo uses <p><b>...</b></p> for section headings
   instead of semantic h2/h3. Style them to match the h2 treatment. */
#bapi-privacy-policy > p > b:only-child {
	display: block;
	font-family: 'Saira ExtraCondensed', 'Saira Extra Condensed', sans-serif;
	font-size: 22px;
	text-transform: uppercase;
	color: #4F729A;
	margin-top: 24px;
}

.legal-page-content a {
	color: #4F729A;
	text-decoration: underline;
}

.legal-page-content a:hover {
	color: #2D292B;
}

.legal-page-content ol,
.legal-page-content ul {
	margin: 0 0 16px;
	padding-left: 24px;
}

.legal-page-content li {
	margin-bottom: 8px;
}

.legal-page-content table {
	width: 100%;
	border-collapse: collapse;
	margin: 20px 0;
}

.legal-page-content td,
.legal-page-content th {
	border: 1px solid #ccc;
	padding: 8px 12px;
}

@media (max-width: 768px) {
	.legal-page-content {
		padding: 40px 20px 60px;
	}

	.legal-page-content h1 {
		font-size: 36px;
	}

	.legal-page-content h2 {
		font-size: 22px;
	}
}
