/*
 * Policy - Rights.
 *
 * Read from cp-all-designer css/about-us-policy.css (.pori, .poriacc) 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-rights {
	--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;
	--custom-po-gap: clamp(16px, calc(1.8 * var(--custom-vwu)), 26px);
	/* about-us-policy.css .pori — it follows the compass band, so half the rhythm above */
	padding: calc(var(--custom-rhythm) / 2) var(--custom-pad) var(--custom-rhythm);
	background-color: #FFFFFF;
}

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

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

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

/* ------------------------------------------------------------------ */
/* The head — app.css:230-252 (.h-sec), 291-294 (.lead), 404           */
/* ------------------------------------------------------------------ */

.custom-policy-rights__head {
	max-width: none;
	margin: 0 0 var(--custom-gap);
	font-size: 16px;
	line-height: 1.6;
}

.custom-policy-rights__title {
	margin: 0;
	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-rights__title strong { font-weight: 700; }

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

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

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

.custom-policy-rights__intro {
	max-width: 870px;
	margin: min(22px, calc(2.4 * var(--custom-vhu))) 0 0;
	font-size: clamp(16px, calc(1.25 * var(--custom-vwu)), 18px);
	font-weight: 400;
	line-height: 1.7;
	color: #475569;
}

@media (max-width: 640px) {
	.custom-policy-rights__title { font-size: clamp(22px, calc(6.2 * var(--custom-vwu)), 56px); }
	.custom-policy-rights__intro { margin-top: 14px; font-size: 14px; line-height: 1.5; }
}

.custom-policy-rights__intro {
	max-width: none;
}

/* the quoted line — about-us-policy.css .pori__banner */
.custom-policy-rights__quote {
	margin: 0 0 clamp(32px, calc(3.6 * var(--custom-vwu)), 52px);
	padding: clamp(20px, calc(2.2 * var(--custom-vwu)), 28px) 0;
	text-align: center;
}

.custom-policy-rights__quote p {
	margin: 0;
	font-size: clamp(20px, calc(1.9 * var(--custom-vwu)), 28px);
	font-weight: 600;
	line-height: 1.6;
	letter-spacing: 0.02em;
	color: #16418C;
}

/* the cards: one subgrid row for the headings, one for the bodies, so the headings line up */
.custom-policy-rights__cards {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	grid-template-rows: auto 1fr;
	column-gap: var(--custom-po-gap);
	row-gap: clamp(14px, calc(1.4 * var(--custom-vwu)), 18px);
	align-items: stretch;
}

.custom-policy-rights__card {
	--custom-accent: #CE2929;
	display: grid;
	grid-row: span 2;
	grid-template-rows: subgrid;
	padding: clamp(26px, calc(2.6 * var(--custom-vwu)), 36px) clamp(22px, calc(2.2 * var(--custom-vwu)), 30px);
	border: 1px solid #EEF2F7;
	border-radius: 22px;
	background: #FFFFFF;
	box-shadow: 0 4px 16px rgba(22, 65, 140, 0.1);
	transition: transform 0.4s var(--custom-ease), box-shadow 0.4s var(--custom-ease);
}

.custom-policy-rights__card:hover {
	transform: translateY(-6px);
	box-shadow: 0 20px 40px -14px rgba(22, 65, 140, 0.22);
}

.custom-policy-rights__card-title {
	margin: 0;
	padding: 0;
	font-size: clamp(18px, calc(1.5 * var(--custom-vwu)), 22px);
	font-weight: 600;
	line-height: 1.6;
	letter-spacing: 0;
	text-transform: none;
	color: var(--custom-accent);
}

.custom-policy-rights__body {
	padding: 0;
}

.custom-policy-rights__body p {
	margin: 0 0 14px;
	font-size: 16px;
	font-weight: 300;
	line-height: 1.8;
	color: #475569;
}

.custom-policy-rights__body p:last-child {
	margin-bottom: 0;
}

.custom-policy-rights__list {
	display: grid;
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.custom-policy-rights__list li {
	position: relative;
	margin: 0;
	padding: 0 0 0 24px;
	font-size: 16px;
	font-weight: 300;
	line-height: 1.8;
	color: #475569;
	list-style: none;
}

.custom-policy-rights__list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.6em;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--custom-accent);
}

@media (max-width: 1024px) {
	.custom-policy-rights__cards {
		grid-template-columns: minmax(0, 1fr);
		grid-template-rows: none;
		row-gap: var(--custom-po-gap);
		align-items: start;
	}

	.custom-policy-rights__card {
		display: flex;
		flex-direction: column;
		gap: clamp(14px, calc(1.4 * var(--custom-vwu)), 18px);
		grid-row: auto;
		grid-template-rows: none;
	}
}

@media (max-width: 620px) {
	.custom-policy-rights__card { padding: 24px 20px; border-radius: 18px; }
	.custom-policy-rights__list li { padding-left: 20px; }
}

@media (prefers-reduced-motion: reduce) {
	.custom-policy-rights__card { transition: none; }
}
