/* Legal pages (Terms of Use, brand Privacy Policies) - built in Elementor (containers + Text Editor widgets with the classes below), "Load More" in js/legal-load-more.js */

/* Full width with 100px side padding. Astra's ".entry-content[data-ast-blocks-layout] > *" sets max-width, so match its specificity */
.mcp-legal,
.entry-content[data-ast-blocks-layout] > .mcp-legal {
	max-width: none;
	margin: 0;
	padding: 60px 100px 80px;
	font-family: "Inter", sans-serif;
	font-size: 16px;
	line-height: 1.7;
	color: #26384b;
}

/* No extra top gap: Astra's #primary top margin (60px) and an outer .mcp-legal
   wrapper's 60px padding stacked on top of the inner section's own padding */
body:has(.mcp-legal) #primary {
	margin-top: 0 !important;
}

.mcp-legal:has(.mcp-legal),
.entry-content[data-ast-blocks-layout] > .mcp-legal:has(.mcp-legal) {
	padding-top: 0 !important;
}

/* Page heading block (the first section) sits right under the site header too */
.mcp-legal .mcp-legal--index,
.mcp-legal--index:not(.mcp-legal .mcp-legal),
.entry-content[data-ast-blocks-layout] > .mcp-legal--index {
	padding-top: 0 !important;
}

.mcp-legal__header {
	margin-bottom: 32px;
	padding-bottom: 24px;
	border-bottom: 1px solid #dfe3e8;
}

/* Doubled class so it also beats ".mcp-legal h2" where a combined page demotes the title */
.mcp-legal .mcp-legal__title {
	margin: 0;
	font-family: inherit;
	font-size: 40px;
	font-weight: 600;
	line-height: 1.2;
	color: #26384b;
	scroll-margin-top: 120px;
}

/* Combined page (Privacy Policy): page heading + links to each brand's document */
.mcp-legal--index,
.entry-content[data-ast-blocks-layout] > .mcp-legal--index {
	padding-bottom: 0;
}

.mcp-legal__nav {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 16px;
}

.mcp-legal .mcp-legal__nav a {
	padding: 10px 20px;
	border: 1px solid #26384b;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
}

.mcp-legal .mcp-legal__nav a:hover,
.mcp-legal .mcp-legal__nav a:focus-visible {
	background: #26384b;
	color: #fff;
}

.mcp-legal__notice {
	margin: 0 0 32px;
	padding: 20px 24px;
	border-left: 4px solid #26384b;
	background: #f3f5f8;
	font-size: 14px;
	font-weight: 600;
}

.mcp-legal h2 {
	margin: 40px 0 16px;
	font-family: inherit;
	font-size: 24px;
	font-weight: 600;
	line-height: 1.3;
	color: #26384b;
	scroll-margin-top: 120px;
}

.mcp-legal h2:focus {
	outline: none;
}

.mcp-legal h3 {
	margin: 28px 0 12px;
	font-family: inherit;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.4;
	color: #26384b;
}

.mcp-legal p,
.mcp-legal address {
	margin: 0 0 16px;
}

.mcp-legal address {
	font-style: normal;
	padding-left: 16px;
	border-left: 2px solid #dfe3e8;
}

.mcp-legal ul {
	margin: 0 0 16px 24px;
	padding: 0;
}

.mcp-legal li {
	margin-bottom: 6px;
}

.mcp-legal a {
	color: inherit;
	text-decoration: underline;
	word-break: break-word;
}

.mcp-legal__more {
	margin-top: 40px;
	text-align: center;
}

/* Brand privacy policies: "Last Updated" line and the disclosures table */
.mcp-legal .mcp-legal__updated {
	margin: 12px 0 0;
	font-size: 14px;
	color: #5b6b7c;
}

.mcp-legal__table-wrap {
	/* Scrolls sideways on small screens; inline-size containment keeps the table's
	   min-width from widening the page around it. */
	contain: inline-size;
	max-width: 100%;
	margin: 0 0 24px;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.mcp-legal__table {
	width: 100%;
	min-width: 640px;
	margin: 0;
	border-collapse: collapse;
	font-size: 15px;
	line-height: 1.6;
}

.mcp-legal__table th,
.mcp-legal__table td {
	padding: 14px 16px;
	border: 1px solid #dfe3e8;
	text-align: left;
	vertical-align: top;
}

.mcp-legal__table th {
	background: #f3f5f8;
	font-weight: 600;
}

.mcp-legal__table ul {
	margin: 0 0 0 18px;
}

.mcp-legal__table li:last-child {
	margin-bottom: 0;
}

.mcp-legal__button {
	padding: 14px 36px;
	border: 1px solid #26384b;
	border-radius: 999px;
	background: #26384b;
	color: #fff;
	font-family: inherit;
	font-size: 16px;
	font-weight: 500;
	line-height: 1;
	cursor: pointer;
	transition: background-color 0.2s, color 0.2s;
}

.mcp-legal__button:hover,
.mcp-legal__button:focus-visible {
	background: #fff;
	color: #26384b;
}

/*
 * Elementor build: containers + Text Editor widgets with the classes above in Advanced > CSS Classes.
 * Elementor sizes containers through its own variables and gives Text Editor widgets the global
 * text color/font, so set those here.
 */
.e-con.mcp-legal {
	--content-width: 100%;
	--gap: 0px;
	--row-gap: 0px;
	--column-gap: 0px;
	--padding-top: 60px;
	--padding-right: 100px;
	--padding-bottom: 80px;
	--padding-left: 100px;
}

.e-con.mcp-legal--index {
	--padding-bottom: 0px;
}

/* A .mcp-legal inside another (e.g. a wrapper container with the class too): the outer one has the side padding */
.mcp-legal .mcp-legal {
	padding-right: 0;
	padding-left: 0;
}

.mcp-legal .e-con.mcp-legal {
	--padding-right: 0px;
	--padding-left: 0px;
}

.mcp-legal .elementor-widget-text-editor {
	color: inherit;
	font-family: inherit;
	font-size: inherit;
	font-weight: inherit;
	line-height: inherit;
}

.mcp-legal .elementor-widget-text-editor.mcp-legal__notice {
	font-size: 14px;
	font-weight: 600;
}

.mcp-legal__notice p:last-child {
	margin-bottom: 0;
}

.mcp-legal__nav p {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 0;
}

@media (max-width: 767px) {
	.e-con.mcp-legal {
		--padding-top: 40px;
		--padding-right: 20px;
		--padding-bottom: 60px;
		--padding-left: 20px;
	}

	.e-con.mcp-legal--index {
		--padding-bottom: 0px;
	}

	.mcp-legal,
	.entry-content[data-ast-blocks-layout] > .mcp-legal {
		padding: 40px 20px 60px;
		font-size: 15px;
	}

	.mcp-legal .mcp-legal {
		padding-right: 0;
		padding-left: 0;
	}

	.mcp-legal .e-con.mcp-legal {
		--padding-right: 0px;
		--padding-left: 0px;
	}

	.mcp-legal .mcp-legal__title {
		font-size: 28px;
	}

	.mcp-legal h2 {
		margin-top: 32px;
		font-size: 20px;
	}

	.mcp-legal h3 {
		font-size: 17px;
	}

	.mcp-legal__notice {
		padding: 16px;
	}

	.mcp-legal__button {
		width: 100%;
	}
}
