/* Camvio Legal Page (Privacy Policy / Terms of Use).
 * Colours flow through --lp-* variables so they can be overridden from
 * the Elementor style tab. */

.cmvel-lp {
	--lp-white: var(--cmv-surface-white, #fff);
	--lp-mint: var(--cmv-surface-section, #edf4ef);
	--lp-mint-strong: #dceee3;
	--lp-dark: var(--cmv-surface-primary, #12301b);
	--lp-text: var(--cmv-text-primary, #1a4327);
	--lp-muted: var(--cmv-text-grey, #5f7466);
	--lp-body: var(--cmv-text-black, #2c3a32);
	--lp-lime: var(--cmv-lime, #e1fa7b);
	--lp-accent: var(--cmv-text-accent, #1f5d33);
	--lp-border: var(--cmv-border, #cbcfc8);
	--lp-radius: var(--cmv-radius-md, 16px);
	--lp-radius-sm: 12px;

	--lp-hero-bg: var(--lp-mint);
	--lp-hero-title: var(--lp-text);
	--lp-hero-sub: var(--lp-muted);
	--lp-badge-bg: var(--lp-mint-strong);
	--lp-badge-color: var(--lp-dark);
	--lp-updated-bg: var(--lp-mint-strong);
	--lp-updated-color: var(--lp-text);

	--lp-toc-title: var(--lp-text);
	--lp-toc-color: var(--lp-muted);
	--lp-toc-active-bg: var(--lp-mint);
	--lp-toc-active-color: var(--lp-text);
	--lp-toc-bar: var(--lp-dark);
	--lp-toc-border: var(--lp-border);
	--lp-toc-toggle-bg: var(--lp-mint);
	--lp-toc-toggle-color: var(--lp-text);
	--lp-toc-toggle-border: var(--lp-border);
	--lp-toc-nav-bg: var(--lp-white);

	--lp-heading: var(--lp-text);
	--lp-copy: var(--lp-body);
	--lp-bullet: var(--lp-accent);
	--lp-link: var(--lp-accent);

	--lp-callout-bg: var(--lp-mint);
	--lp-callout-color: var(--lp-text);
	--lp-callout-icon-bg: var(--lp-mint-strong);
	--lp-callout-icon-color: var(--lp-dark);

	--lp-max-w: 1180px;
	--lp-gutter: 24px;
	--lp-toc-w: 280px;
	--lp-col-gap: 72px;
	--lp-hero-pad-y: 56px;
	--lp-body-pad-y: 56px;
	--lp-sticky-gap: 16px;
	--lp-section-gap: 48px;
	--lp-badge-size: 64px;
	--lp-icon-size: 28px;

	box-sizing: border-box;
	width: 100%;
	color: var(--lp-copy);
	font-family: inherit;
}

.cmvel-lp *,
.cmvel-lp *::before,
.cmvel-lp *::after {
	box-sizing: border-box;
}

.cmvel-lp__inner {
	width: 100%;
	max-width: var(--lp-max-w);
	margin-inline: auto;
	padding-inline: var(--lp-gutter);
}

/* Hero */

.cmvel-lp__hero {
	position: relative;
	overflow: hidden;
	background: var(--lp-hero-bg);
	padding-block: var(--lp-hero-pad-y);
}

.cmvel-lp__hero-deco {
	position: absolute;
	inset-block: -12%;
	inset-inline-end: -6%;
	width: var(--lp-deco-w, 42%);
	pointer-events: none;
	z-index: 0;
	background-color: var(--lp-deco-color, #1a4327);
	opacity: var(--lp-deco-opacity, 0.14);
	-webkit-mask-image: var(--lp-deco-url);
	mask-image: var(--lp-deco-url);
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: right center;
	mask-position: right center;
	-webkit-mask-size: contain;
	mask-size: contain;
	transform: rotate(8deg);
	transform-origin: 80% 50%;
}

.cmvel-lp__hero-row {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: flex-start;
	gap: 24px;
}

.cmvel-lp--clear-header {
	--lp-header-offset: 112px;
}

.cmvel-lp--clear-header .cmvel-lp__hero {
	padding-top: calc(var(--lp-hero-pad-y) + var(--lp-header-offset, 112px));
	padding-bottom: var(--lp-hero-pad-y);
}

.cmvel-lp__badge {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: var(--lp-badge-size);
	height: var(--lp-badge-size);
	background: var(--lp-badge-bg);
	color: var(--lp-badge-color);
	border-radius: 999px;
}

.cmvel-lp__badge i,
.cmvel-lp__badge svg {
	width: var(--lp-icon-size);
	height: var(--lp-icon-size);
	font-size: var(--lp-icon-size);
	line-height: 1;
	fill: currentColor;
}

.cmvel-lp__hero-text {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
	min-width: 0;
}

.cmvel-lp__title {
	margin: 0;
	color: var(--lp-hero-title);
	font-size: var(--cmv-fs-h2, 2.25rem);
	line-height: var(--cmv-lh-h2, 1.2);
	font-weight: var(--cmv-fw-medium, 500);
}

.cmvel-lp__subtitle {
	margin: 0;
	max-width: 46rem;
	color: var(--lp-hero-sub);
	font-size: var(--cmv-fs-body, 1rem);
	line-height: var(--cmv-lh-body, 1.5);
}

.cmvel-lp__updated {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	background: var(--lp-updated-bg);
	color: var(--lp-updated-color);
	border-radius: 999px;
	font-size: var(--cmv-fs-small, 0.875rem);
	line-height: 1.4;
}

.cmvel-lp__updated i,
.cmvel-lp__updated svg {
	width: 16px;
	height: 16px;
	font-size: 16px;
	flex-shrink: 0;
	fill: currentColor;
}

/* Body grid */

.cmvel-lp__body {
	padding-block: var(--lp-body-pad-y);
	background: var(--lp-white);
}

.cmvel-lp__grid {
	display: grid;
	grid-template-columns: var(--lp-toc-w) minmax(0, 1fr);
	gap: var(--lp-col-gap);
	align-items: stretch;
}

/* TOC */

.cmvel-lp__toc-col {
	position: relative;
	min-width: 0;
}

.cmvel-lp__toc {
	position: sticky;
	top: calc(var(--lp-header-offset, 0px) + var(--lp-sticky-gap, 16px));
}

.cmvel-lp--js-sticky .cmvel-lp__toc {
	position: relative;
	top: auto;
}

.cmvel-lp--js-sticky .cmvel-lp__toc.is-fixed {
	position: fixed;
	top: calc(var(--lp-header-offset, 0px) + var(--lp-sticky-gap, 16px));
	z-index: 5;
}

.cmvel-lp--js-sticky .cmvel-lp__toc.is-bottom {
	position: absolute;
	top: auto;
	bottom: 0;
	left: 0;
	right: 0;
}

.cmvel-lp__toc-title {
	margin: 0 0 16px;
	color: var(--lp-toc-title);
	font-size: var(--cmv-fs-subtitle, 1.125rem);
	line-height: 1.3;
	font-weight: var(--cmv-fw-medium, 500);
}

.cmvel-lp__toc-toggle {
	display: none;
}

.cmvel-lp button.cmvel-lp__toc-toggle,
.cmvel-lp button.cmvel-lp__toc-toggle:hover,
.cmvel-lp button.cmvel-lp__toc-toggle:focus,
.cmvel-lp button.cmvel-lp__toc-toggle:focus-visible,
.cmvel-lp button.cmvel-lp__toc-toggle:active {
	display: none;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	margin: 0;
	padding: 14px 16px;
	background: var(--lp-toc-toggle-bg, var(--lp-mint)) !important;
	background-color: var(--lp-toc-toggle-bg, var(--lp-mint)) !important;
	background-image: none !important;
	color: var(--lp-toc-toggle-color, var(--lp-text)) !important;
	border: 1px solid var(--lp-toc-toggle-border, var(--lp-border)) !important;
	border-radius: var(--lp-radius-sm);
	box-shadow: none !important;
	font: inherit;
	font-family: inherit;
	font-weight: var(--cmv-fw-medium, 500);
	font-size: var(--cmv-fs-subtitle, 1.125rem);
	line-height: 1.3;
	letter-spacing: normal;
	text-transform: none;
	text-align: start;
	text-decoration: none;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	min-height: 0;
	min-width: 0;
	max-width: none;
}

.cmvel-lp__toc-toggle-icon {
	display: block;
	width: 10px;
	height: 10px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	transition: transform 0.2s ease;
	flex-shrink: 0;
}

.cmvel-lp__toc.is-open .cmvel-lp__toc-toggle-icon {
	transform: rotate(225deg);
	translate: 0 3px;
}

.cmvel-lp__toc-nav {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.cmvel-lp a.cmvel-lp__toc-link,
.cmvel-lp a.cmvel-lp__toc-link:link,
.cmvel-lp a.cmvel-lp__toc-link:visited {
	display: flex;
	align-items: baseline;
	gap: 10px;
	padding: 10px 14px;
	border-radius: 8px;
	color: var(--lp-toc-color) !important;
	background: transparent !important;
	background-image: none !important;
	box-shadow: none !important;
	text-decoration: none !important;
	font-size: var(--cmv-fs-small, 0.875rem);
	line-height: 1.4;
	border-inline-start: 3px solid transparent;
	transition: background 0.15s ease, color 0.15s ease;
}

.cmvel-lp a.cmvel-lp__toc-link:hover,
.cmvel-lp a.cmvel-lp__toc-link:focus-visible {
	color: var(--lp-toc-active-color) !important;
	background: var(--lp-toc-active-bg) !important;
}

.cmvel-lp a.cmvel-lp__toc-link.is-active {
	background: var(--lp-toc-active-bg) !important;
	color: var(--lp-toc-active-color) !important;
	border-inline-start-color: var(--lp-toc-bar);
	font-weight: var(--cmv-fw-medium, 500);
}

.cmvel-lp__toc-num {
	flex-shrink: 0;
	font-variant-numeric: tabular-nums;
	opacity: 0.7;
}

/* Main column */

.cmvel-lp__main {
	display: flex;
	flex-direction: column;
	gap: var(--lp-section-gap);
	min-width: 0;
}

.cmvel-lp__intro,
.cmvel-lp__content,
.cmvel-lp__closing {
	color: var(--lp-copy);
	font-size: var(--cmv-fs-body, 1rem);
	line-height: var(--cmv-lh-body, 1.65);
	overflow-wrap: break-word;
}

.cmvel-lp__intro p,
.cmvel-lp__content p,
.cmvel-lp__closing p {
	margin: 0 0 1em;
}

.cmvel-lp__intro p:last-child,
.cmvel-lp__content p:last-child,
.cmvel-lp__closing p:last-child {
	margin-bottom: 0;
}

.cmvel-lp__intro a,
.cmvel-lp__content a,
.cmvel-lp__closing a,
.cmvel-lp__callout a {
	color: var(--lp-link);
}

.cmvel-lp__intro ul,
.cmvel-lp__content ul,
.cmvel-lp__closing ul {
	margin: 0 0 1em;
	padding: 0;
	list-style: none;
}

.cmvel-lp__intro li,
.cmvel-lp__content li,
.cmvel-lp__closing li {
	position: relative;
	padding-inline-start: 1.25em;
	margin-bottom: 0.55em;
}

.cmvel-lp__intro li::before,
.cmvel-lp__content li::before,
.cmvel-lp__closing li::before {
	content: "";
	position: absolute;
	inset-inline-start: 0;
	top: 0.55em;
	width: 7px;
	height: 7px;
	background: var(--lp-bullet);
	border-radius: 50%;
}

.cmvel-lp__section {
	scroll-margin-top: calc(var(--lp-header-offset, 0px) + var(--lp-sticky-gap, 16px) + 8px);
}

.cmvel-lp__section-title {
	margin: 0 0 16px;
	color: var(--lp-heading);
	font-size: var(--cmv-fs-h4, 1.5rem);
	line-height: var(--cmv-lh-h4, 1.25);
	font-weight: var(--cmv-fw-medium, 500);
}

.cmvel-lp__section-num {
	margin-inline-end: 0.25em;
}

/* Callout */

.cmvel-lp__callout {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	margin-top: 20px;
	padding: 20px 24px;
	background: var(--lp-callout-bg);
	color: var(--lp-callout-color);
	border-radius: var(--lp-radius);
}

.cmvel-lp__callout-badge {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	background: var(--lp-callout-icon-bg);
	color: var(--lp-callout-icon-color);
	border-radius: 999px;
}

.cmvel-lp__callout-badge i,
.cmvel-lp__callout-badge svg {
	width: 18px;
	height: 18px;
	font-size: 18px;
	fill: currentColor;
}

.cmvel-lp__callout-body {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.cmvel-lp__callout-title {
	margin: 0;
	font-size: 1rem;
	font-weight: var(--cmv-fw-medium, 500);
	line-height: 1.3;
}

.cmvel-lp__callout-text {
	margin: 0;
	font-size: var(--cmv-fs-small, 0.875rem);
	line-height: 1.45;
}

.cmvel-lp__callout-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 20px;
	margin-top: 4px;
}

.cmvel-lp__callout-meta a,
.cmvel-lp__callout-meta span {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: inherit;
	text-decoration: none;
	font-size: var(--cmv-fs-small, 0.875rem);
}

.cmvel-lp__callout-meta a:hover,
.cmvel-lp__callout-meta a:focus-visible {
	text-decoration: underline;
}

.cmvel-lp__callout-meta i,
.cmvel-lp__callout-meta svg {
	width: 14px;
	height: 14px;
	font-size: 14px;
	flex-shrink: 0;
	fill: currentColor;
}

/* Hide TOC / numbers via modifiers */

.cmvel-lp--no-toc .cmvel-lp__grid {
	grid-template-columns: minmax(0, 1fr);
}

.cmvel-lp--no-toc .cmvel-lp__toc-col {
	display: none;
}

/* Responsive: tablet */

@media (max-width: 1024px) {
	.cmvel-lp-stack-tablet .cmvel-lp__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 28px;
	}

	.cmvel-lp-stack-tablet .cmvel-lp__toc-col,
	.cmvel-lp-stack-tablet .cmvel-lp__toc,
	.cmvel-lp-stack-tablet .cmvel-lp--js-sticky .cmvel-lp__toc,
	.cmvel-lp-stack-tablet .cmvel-lp--js-sticky .cmvel-lp__toc.is-fixed,
	.cmvel-lp-stack-tablet .cmvel-lp--js-sticky .cmvel-lp__toc.is-bottom {
		position: static;
		top: auto;
		bottom: auto;
		left: auto;
		right: auto;
		width: auto;
	}

	.cmvel-lp-stack-tablet .cmvel-lp button.cmvel-lp__toc-toggle,
	.cmvel-lp-stack-tablet .cmvel-lp button.cmvel-lp__toc-toggle:hover,
	.cmvel-lp-stack-tablet .cmvel-lp button.cmvel-lp__toc-toggle:focus,
	.cmvel-lp-stack-tablet .cmvel-lp button.cmvel-lp__toc-toggle:focus-visible,
	.cmvel-lp-stack-tablet .cmvel-lp button.cmvel-lp__toc-toggle:active {
		display: flex !important;
	}

	.cmvel-lp-stack-tablet .cmvel-lp__toc-title {
		display: none;
	}

	.cmvel-lp-stack-tablet .cmvel-lp__toc-nav {
		display: none;
		margin-top: 8px;
		padding: 8px;
		background: var(--lp-toc-nav-bg, var(--lp-white));
		border: 1px solid var(--lp-toc-toggle-border, var(--lp-border));
		border-radius: var(--lp-radius-sm);
	}

	.cmvel-lp-stack-tablet .cmvel-lp__toc.is-open .cmvel-lp__toc-nav {
		display: flex;
	}
}

/* Responsive: mobile */

@media (max-width: 767px) {
	.cmvel-lp {
		--lp-hero-pad-y: 36px;
		--lp-body-pad-y: 36px;
		--lp-section-gap: 36px;
		--lp-badge-size: 52px;
		--lp-icon-size: 22px;
		--lp-gutter: 16px;
		--lp-deco-w: 58%;
	}

	.cmvel-lp__hero-row {
		flex-direction: column;
		gap: 16px;
	}

	.cmvel-lp__title {
		font-size: 1.75rem;
	}

	.cmvel-lp-stack-mobile .cmvel-lp__grid,
	.cmvel-lp-stack-tablet .cmvel-lp__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 24px;
	}

	.cmvel-lp-stack-mobile .cmvel-lp__toc-col,
	.cmvel-lp-stack-mobile .cmvel-lp__toc,
	.cmvel-lp-stack-mobile .cmvel-lp--js-sticky .cmvel-lp__toc,
	.cmvel-lp-stack-mobile .cmvel-lp--js-sticky .cmvel-lp__toc.is-fixed,
	.cmvel-lp-stack-mobile .cmvel-lp--js-sticky .cmvel-lp__toc.is-bottom {
		position: static;
		top: auto;
		bottom: auto;
		left: auto;
		right: auto;
		width: auto;
	}

	.cmvel-lp-stack-mobile .cmvel-lp button.cmvel-lp__toc-toggle,
	.cmvel-lp-stack-mobile .cmvel-lp button.cmvel-lp__toc-toggle:hover,
	.cmvel-lp-stack-mobile .cmvel-lp button.cmvel-lp__toc-toggle:focus,
	.cmvel-lp-stack-mobile .cmvel-lp button.cmvel-lp__toc-toggle:focus-visible,
	.cmvel-lp-stack-mobile .cmvel-lp button.cmvel-lp__toc-toggle:active {
		display: flex !important;
	}

	.cmvel-lp-stack-mobile .cmvel-lp__toc-title {
		display: none;
	}

	.cmvel-lp-stack-mobile .cmvel-lp__toc-nav {
		display: none;
		margin-top: 8px;
		padding: 8px;
		background: var(--lp-toc-nav-bg, var(--lp-white));
		border: 1px solid var(--lp-toc-toggle-border, var(--lp-border));
		border-radius: var(--lp-radius-sm);
	}

	.cmvel-lp-stack-mobile .cmvel-lp__toc.is-open .cmvel-lp__toc-nav {
		display: flex;
	}

	.cmvel-lp__callout {
		flex-direction: column;
		padding: 16px;
	}

	.cmvel-lp__section-title {
		font-size: 1.25rem;
	}
}

/* Elementor sections often clip overflow, which kills position:sticky. */
.elementor-widget-cmvel-privacy-policy,
.elementor-widget-cmvel-terms-of-use,
.elementor-widget-cmvel-privacy-policy > .elementor-widget-container,
.elementor-widget-cmvel-terms-of-use > .elementor-widget-container {
	overflow: visible !important;
}

.e-con:has(.cmvel-lp),
.e-con-inner:has(.cmvel-lp),
.elementor-section:has(.cmvel-lp),
.elementor-container:has(.cmvel-lp),
.elementor-column:has(.cmvel-lp),
.elementor-widget-wrap:has(.cmvel-lp) {
	overflow: visible !important;
}

