/*
 * Policy - Trademark.
 *
 * Read from cp-all-designer css/about-us-policy.css (.potm) and the tokens of
 * css/app.css it uses.
 *
 * What the Style tab sets arrives through the widget's selectors; a size
 * left empty there scales with the window the way the design's does,
 * through the two numbers below (app.css:127-128, 2889-2900).
 */

.custom-policy-trademark {
	--custom-vwu: 14.4px;
	--custom-vhu: clamp(5.2px, 1svh, 9px);
	--custom-pad: 90px;
	--custom-rhythm: min(clamp(52px, calc(8.6 * var(--custom-vwu)), 160px), calc(13.7 * var(--custom-vhu)));
	--custom-gap: min(clamp(32px, calc(4.5 * var(--custom-vwu)), 64px), calc(4.4 * var(--custom-vhu)));
	--custom-pair-gap: clamp(28px, calc(3.6 * var(--custom-vwu)), 60px);
	--custom-curl: clamp(56px, calc(6 * var(--custom-vwu)), 96px);
	--custom-curl-sm: clamp(30px, calc(3.2 * var(--custom-vwu)), 50px);
	--custom-sh: 0 18px 44px -14px rgba(22, 65, 140, 0.2);
	--custom-sh-lg: 0 34px 80px -20px rgba(22, 65, 140, 0.3);
	--custom-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
	position: relative;
	display: block;
	box-sizing: border-box;
	overflow: hidden;
	/* app.css:385-389 .sec--rhythm, .container --pad */
	padding: var(--custom-rhythm) var(--custom-pad);
	letter-spacing: normal;
	isolation: isolate;
	background-color: #F0F9FD;
}

@media (max-width: 1280px) { .custom-policy-trademark { --custom-vwu: 12.2px; --custom-vhu: clamp(5.2px, 1svh, 8.5px); } }
@media (max-width: 1200px) { .custom-policy-trademark { --custom-vwu: 11.2px; --custom-vhu: clamp(5.2px, 1svh, 8.35px); } }
@media (max-width: 1024px) { .custom-policy-trademark { --custom-vwu: 9.2px; --custom-vhu: clamp(5.2px, 1svh, 8px); --custom-pad: 40px; } }
@media (max-width: 860px)  { .custom-policy-trademark { --custom-vwu: 7.7px; --custom-vhu: clamp(5.2px, 1svh, 7.8px); } }
@media (max-width: 640px)  { .custom-policy-trademark { --custom-vwu: 4.2px; --custom-vhu: clamp(5.2px, 1svh, 7.6px); --custom-pad: 24px; } }
@media (max-width: 380px)  { .custom-policy-trademark { --custom-vwu: 3.6px; --custom-vhu: clamp(5.2px, 1svh, 7.2px); } }

.custom-policy-trademark *,
.custom-policy-trademark *::before,
.custom-policy-trademark *::after {
	box-sizing: border-box;
}

.custom-policy-trademark .nb {
	white-space: nowrap;
}

/* app.css:350-360 .sec — a band shorter than the screen fills it and centres
   its content, above 1024px (app.css:2854 releases the rule below) */
.custom-policy-trademark--fill {
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: 100vh;
	min-height: 100svh;
}

@media (max-width: 1024px) {
	.custom-policy-trademark--fill { min-height: 0; }
}

.custom-policy-trademark__bg {
	position: absolute;
	inset: 0;
	z-index: -2;
}

.custom-policy-trademark__bg img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	margin: 0;
	object-fit: cover;
}

/* the pale veil that keeps the heading readable over any photograph */
.custom-policy-trademark::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(90deg, rgba(234, 246, 253, 0.62) 0%, rgba(234, 246, 253, 0.86) 38%, rgba(247, 251, 254, 0.95) 72%, rgba(247, 251, 254, 0.97) 100%);
}

.custom-policy-trademark__inner {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(0, 0.62fr) minmax(0, 1.38fr);
	gap: clamp(24px, calc(2.2 * var(--custom-vwu)), 34px);
	align-items: center;
	width: 100%;
}

.custom-policy-trademark__mark {
	position: relative;
	overflow: hidden;
	aspect-ratio: 4 / 3;
	border-radius: 20px;
	background: #E8F4FB;
	box-shadow: var(--custom-sh);
}

.custom-policy-trademark__mark img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	margin: 0;
	object-fit: cover;
}

.custom-policy-trademark__mark.is-empty {
	background:
		radial-gradient(90% 80% at 22% 16%, rgba(80, 163, 213, 0.34) 0%, rgba(80, 163, 213, 0) 64%),
		linear-gradient(150deg, #F0F9FD 0%, #CCDAF2 100%);
}

.custom-policy-trademark__copy {
	font-size: 16px;
	line-height: 1.6;
}

/* app.css .h-sec, about-us-policy.css .potm__copy .h-sec */
.custom-policy-trademark__title {
	margin: 0 0 20px;
	padding: 0;
	font-size: min(clamp(28px, calc(3.9 * var(--custom-vwu)), 56px), calc(6.2 * var(--custom-vhu)));
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: 0;
	text-transform: none;
	text-wrap: wrap;
	color: #16418C;
}

.custom-policy-trademark__title strong { font-weight: 700; }

.custom-policy-trademark__title em {
	position: relative;
	display: inline-block;
	font-style: italic;
	font-weight: 700;
	color: #CE2929;
}

.custom-policy-trademark__title em::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0.06em;
	height: 0.16em;
	border-radius: 3px;
	background: currentColor;
	opacity: 0.3;
}

.custom-policy-trademark [data-custom-sweep-ghost] em::after { opacity: 0.12; }

.custom-policy-trademark__p {
	max-width: 66ch;
	margin: 0 0 24px;
	font-size: clamp(16px, calc(1.25 * var(--custom-vwu)), 18px);
	font-weight: 300;
	line-height: 1.85;
	color: #475569;
}

@media (max-width: 860px) {
	.custom-policy-trademark__inner { grid-template-columns: 1fr; gap: clamp(24px, calc(4 * var(--custom-vwu)), 36px); }
	.custom-policy-trademark__mark { order: -1; width: 100%; max-width: 320px; margin-left: auto; margin-right: auto; }
}

@media (max-width: 640px) {
	.custom-policy-trademark__title { font-size: clamp(22px, calc(6.2 * var(--custom-vwu)), 56px); }
}
