/**
 * Privacy Policy & Terms — layout (plain CSS, loads after main.css).
 */

/* Content only — hero stays a direct child of #main-content like About Us */
.legal-page {
	font-family: var(--font-brand, 'Ninetea', sans-serif);
	max-width: 100%;
	min-width: 0;
}

.legal-page .legal-content-section.send-money-destinations-section {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.legal-content-section.send-money-destinations-section {
	background-color: #fff;
	box-sizing: border-box;
	max-width: 100%;
	padding-bottom: clamp(2.5rem, 8vw, 5rem);
	padding-left: max(1rem, env(safe-area-inset-left, 0px));
	padding-right: max(1rem, env(safe-area-inset-right, 0px));
	padding-top: clamp(1.75rem, 5vw, 3.5rem);
}

@media (min-width: 640px) {
	.legal-page .legal-content-section.send-money-destinations-section {
		padding-left: 2rem;
		padding-right: 2rem;
	}
}

@media (min-width: 1024px) {
	.legal-page .legal-content-section.send-money-destinations-section {
		padding-left: 3rem;
		padding-right: 3rem;
	}
}

@media (min-width: 1280px) {
	.legal-page .legal-content-section.send-money-destinations-section {
		padding-left: 4rem;
		padding-right: 4rem;
	}
}

.legal-content-section .send-money-destinations-shell,
.legal-content-inner {
	box-sizing: border-box;
	margin-left: auto;
	margin-right: auto;
	max-width: 80rem;
	min-width: 0;
	width: 100%;
}

.legal-content-panel {
	background-color: #fff;
	border: 1px solid rgba(226, 232, 240, 0.85);
	border-radius: 1rem;
	box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
	box-sizing: border-box;
	max-width: 100%;
	min-width: 0;
	overflow-wrap: break-word;
	padding: 1.25rem 1rem;
	word-wrap: break-word;
}

@media (min-width: 640px) {
	.legal-content-panel {
		padding: 2.25rem 2rem;
	}
}

@media (min-width: 1024px) {
	.legal-content-panel {
		padding: 2.75rem 3rem;
	}
}

.legal-block {
	margin-top: clamp(1.5rem, 4vw, 2rem);
	padding: 0;
}

.legal-block:first-child {
	margin-top: 0;
}

.legal-block--intro {
	margin-top: 0;
}

.legal-content-panel .pp-intro-text {
	color: #3d4550;
	font-size: 1rem;
	line-height: 1.75;
	margin: 0;
	text-align: left;
}

@media (min-width: 640px) {
	.legal-content-panel .pp-intro-text {
		font-size: 1.125rem;
	}
}

.legal-content-panel .pp-section-heading {
	color: #141621;
	font-size: 1.25rem;
	font-weight: 600;
	line-height: 1.3;
	margin: 0;
}

@media (min-width: 640px) {
	.legal-content-panel .pp-section-heading {
		font-size: 1.5rem;
	}
}

.legal-content-panel .pp-section-lead {
	color: #5f6470;
	font-size: 1rem;
	line-height: 1.75;
	margin: 1rem 0 0;
	text-align: left;
}

.legal-content-panel .pp-section-lead--tight {
	margin-top: 0.75rem;
}

.legal-content-panel .pp-subheading {
	color: #141621;
	font-size: 1.0625rem;
	font-weight: 600;
	line-height: 1.35;
	margin: 1.5rem 0 0;
}

.legal-content-panel .pp-subheading + .pp-section-lead {
	margin-top: 0.75rem;
}

.legal-content-panel .pp-cards {
	display: grid;
	gap: 1rem;
	margin-top: 1.5rem;
}

@media (min-width: 640px) {
	.legal-content-panel .pp-cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 639px) {
	.legal-content-panel .pp-card {
		padding: 1rem 1.125rem;
	}

	.legal-block--contact {
		margin-top: 2rem;
		padding: 1.25rem 1rem;
	}
}

.legal-content-panel .pp-card {
	border-radius: 0.75rem;
	border: 1px solid #e2e8f0;
	padding: 1.25rem 1.5rem;
}

.legal-content-panel .pp-card--blue {
	background-color: #f0f6fd;
	border-color: rgba(0, 91, 170, 0.2);
}

.legal-content-panel .pp-card--muted {
	background-color: rgba(248, 250, 252, 0.9);
}

.legal-content-panel .pp-card-title {
	color: #141621;
	font-size: 1rem;
	font-weight: 600;
	margin: 0;
}

.legal-content-panel .pp-card-body {
	color: #5f6470;
	font-size: 0.9375rem;
	line-height: 1.65;
	margin: 0.75rem 0 0;
}

.legal-content-panel .pp-bullet-list {
	list-style: none;
	margin: 1rem 0 0;
	padding: 0;
}

.legal-content-panel .pp-bullet-list li {
	color: #4a5058;
	font-size: 0.9375rem;
	line-height: 1.65;
	margin-top: 0.75rem;
	padding-left: 1.5rem;
	position: relative;
}

.legal-content-panel .pp-bullet-list li:first-child {
	margin-top: 0;
}

.legal-content-panel .pp-bullet-list li::before {
	background-color: #005baa;
	border-radius: 50%;
	content: '';
	height: 6px;
	left: 0;
	position: absolute;
	top: 0.55em;
	width: 6px;
}

.legal-content-panel .pp-bullet-list--check li::before {
	background: transparent;
	border-radius: 0;
	color: #005baa;
	content: '✓';
	font-size: 0.875rem;
	font-weight: 700;
	height: auto;
	top: 0;
	width: auto;
}

.legal-content-panel .pp-strong {
	color: #141621;
	font-weight: 600;
}

.legal-content-panel .pp-note {
	background-color: #fafbfc;
	border: 1px solid #f1f5f9;
	border-radius: 0.75rem;
	color: #5f6470;
	font-size: 0.875rem;
	line-height: 1.6;
	margin-top: 1rem;
	padding: 1rem;
}

.legal-content-panel .pp-inline-link {
	color: #005baa;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.legal-content-panel .pp-inline-link:hover {
	text-decoration-thickness: 2px;
}

/* Contact / Questions CTA */
.legal-block--contact {
	background: linear-gradient(135deg, #005baa 0%, #003d7a 100%);
	border-radius: 0.875rem;
	color: #fff;
	margin-top: 2.5rem;
	padding: 1.75rem 1.5rem;
}

@media (min-width: 640px) {
	.legal-block--contact {
		padding: 2rem 2.25rem;
	}
}

.legal-block--contact .pp-section-heading,
.legal-block--contact .pp-section-lead,
.legal-block--contact .pp-footnote {
	color: #fff;
}

.legal-block--contact .pp-section-lead {
	color: rgba(255, 255, 255, 0.92);
}

.legal-block--contact .pp-contact-dl {
	color: rgba(255, 255, 255, 0.95);
	font-size: 1rem;
	line-height: 1.6;
	margin: 1.25rem 0 0;
}

.legal-block--contact .pp-contact-dl dd {
	margin: 0.5rem 0 0;
}

.legal-block--contact .pp-contact-dl a.pp-link {
	color: #fff200;
	text-decoration: underline;
}

.legal-block--contact .pp-footnote {
	font-size: 0.875rem;
	margin-top: 1rem;
	opacity: 0.9;
}

.legal-block--contact .pp-contact-actions {
	margin-top: 1.5rem;
}

.legal-block--contact .btn-primary,
.legal-block--contact .legal-cta-btn {
	align-items: center;
	background-color: #fff;
	border: none;
	border-radius: 9999px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
	color: #005baa;
	display: inline-flex;
	font-family: var(--font-brand, 'Ninetea', sans-serif);
	font-size: 0.9375rem;
	font-weight: 600;
	gap: 0.75rem;
	justify-content: space-between;
	max-width: 100%;
	min-height: 2.75rem;
	padding: 0.5rem 0.5rem 0.5rem 1.25rem;
	text-decoration: none;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	white-space: normal;
}

@media (min-width: 480px) {
	.legal-block--contact .btn-primary,
	.legal-block--contact .legal-cta-btn {
		white-space: nowrap;
	}
}

.legal-block--contact .btn-primary:hover,
.legal-block--contact .legal-cta-btn:hover {
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
	color: #005baa;
	transform: translateY(-1px);
}

.legal-block--contact .btn-primary .btn-text,
.legal-block--contact .legal-cta-btn .btn-text {
	color: #005baa;
	margin: 0;
}

.legal-block--contact .btn-primary-icon,
.legal-block--contact .legal-cta-btn__icon {
	align-items: center;
	background-color: #fff200;
	border-radius: 50%;
	display: flex;
	flex-shrink: 0;
	height: 2.25rem;
	justify-content: center;
	width: 2.25rem;
}

@media (min-width: 768px) {
	.legal-block--contact .btn-primary-icon,
	.legal-block--contact .legal-cta-btn__icon {
		height: 2.5rem;
		width: 2.5rem;
	}
}

/* Content always interactive (do not force visibility over GSAP — use opacity-only reveals) */
.legal-page-body .legal-block,
.legal-page .legal-questions-cta {
	pointer-events: auto;
}

/* Block editor / classic editor output without theme section classes */
.legal-page-body {
	min-width: 0;
	max-width: 100%;
}

.legal-page-body :is(h2, h2.wp-block-heading) {
	color: #141621;
	font-size: clamp(1.125rem, 4vw, 1.5rem);
	font-weight: 600;
	line-height: 1.3;
	margin: clamp(1.5rem, 4vw, 2rem) 0 0;
	overflow-wrap: anywhere;
}

.legal-page-body > :first-child,
.legal-page-body .legal-block:first-child {
	margin-top: 0;
}

.legal-page-body :is(h3, h3.wp-block-heading) {
	color: #141621;
	font-size: clamp(1rem, 3.5vw, 1.0625rem);
	font-weight: 600;
	line-height: 1.35;
	margin: clamp(1.25rem, 3vw, 1.5rem) 0 0;
	overflow-wrap: anywhere;
}

.legal-page-body :is(h4, h5, h6) {
	color: #141621;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.35;
	margin: 1.25rem 0 0;
}

.legal-page-body :is(p, li) {
	color: #5f6470;
	font-size: clamp(0.9375rem, 2.5vw, 1rem);
	line-height: 1.75;
	overflow-wrap: anywhere;
}

.legal-page-body p {
	margin: 1rem 0 0;
}

.legal-page-body p:first-child {
	margin-top: 0;
}

.legal-page-body :is(img, video, iframe, embed, object) {
	display: block;
	height: auto;
	max-width: 100%;
}

.legal-page-body .wp-block-image img,
.legal-page-body figure img {
	border-radius: 0.75rem;
}

.legal-page-body .wp-block-embed,
.legal-page-body .wp-block-video {
	max-width: 100%;
}

.legal-page-body .wp-block-embed iframe,
.legal-page-body iframe {
	max-width: 100%;
}

.legal-page-body .wp-block-table,
.legal-page-body .wp-block-table table,
.legal-page-body table {
	border-collapse: collapse;
	display: block;
	font-size: 0.875rem;
	max-width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	width: 100%;
}

.legal-page-body .wp-block-table table,
.legal-page-body table {
	display: table;
	min-width: min(100%, 32rem);
}

.legal-page-body pre,
.legal-page-body code {
	font-size: 0.875rem;
	max-width: 100%;
	overflow-x: auto;
}

.legal-page-body .wp-block-columns {
	flex-wrap: wrap !important;
	gap: 1rem;
}

.legal-page-body .wp-block-column {
	flex-basis: 100% !important;
	min-width: 0 !important;
}

@media (min-width: 782px) {
	.legal-page-body .wp-block-column {
		flex-basis: 0 !important;
		flex-grow: 1 !important;
	}
}

.legal-page-body blockquote,
.legal-page-body .wp-block-quote {
	border-left: 4px solid #005baa;
	color: #3d4550;
	font-style: italic;
	margin: 1.5rem 0 0;
	padding: 0.5rem 0 0.5rem 1rem;
}

.legal-page-body .alignwide {
	max-width: min(100%, 72rem);
}

.legal-page-body .alignfull {
	margin-left: 0;
	margin-right: 0;
	max-width: 100%;
	width: 100%;
}

/* Block editor lists — Tailwind preflight sets list-style: none on all ul/ol */
.legal-page-body :is(ul, ol):not(.pp-bullet-list) {
	list-style: revert;
	margin: 1rem 0 0;
	padding-left: 1.5rem;
}

.legal-page-body ul:not(.pp-bullet-list),
.legal-page-body ul.wp-block-list {
	list-style-type: disc;
}

.legal-page-body ol {
	list-style-type: decimal;
}

.legal-page-body :is(ul:not(.pp-bullet-list), ol) > li {
	display: list-item;
}

.legal-page-body :is(ul:not(.pp-bullet-list), ol) > li + li {
	margin-top: 0.35rem;
}

.legal-page-body a {
	color: #005baa;
	cursor: pointer;
	font-weight: 600;
	pointer-events: auto;
	position: relative;
	text-decoration: underline;
	text-underline-offset: 3px;
	touch-action: manipulation;
	-webkit-tap-highlight-color: rgba(0, 91, 170, 0.2);
	z-index: 1;
}

/* Larger tap target on touch devices without changing desktop layout */
@media (hover: none) and (pointer: coarse) {
	.legal-page-body a::after {
		content: '';
		inset: -0.45rem -0.25rem;
		position: absolute;
		z-index: -1;
	}
}

.legal-page-body .pp-inline-link,
.legal-page-body .pp-link {
	color: #005baa;
}

/* Questions CTA sits inside .legal-page-body — override editor typography (cascade order) */
.legal-page-body .legal-block--contact,
.legal-page-body .legal-questions-cta {
	color: #fff;
}

.legal-page-body .legal-block--contact :is(h2, .pp-section-heading),
.legal-page-body .legal-questions-cta :is(h2, .pp-section-heading) {
	color: #fff;
}

.legal-page-body .legal-block--contact :is(.pp-section-lead, p),
.legal-page-body .legal-questions-cta :is(.pp-section-lead, p) {
	color: rgba(255, 255, 255, 0.92);
}

.legal-page-body .legal-block--contact .pp-footnote {
	color: #fff;
	opacity: 0.9;
}

.legal-page-body .legal-block--contact .pp-contact-dl,
.legal-page-body .legal-block--contact .pp-contact-dl dd {
	color: rgba(255, 255, 255, 0.95);
}

.legal-page-body .legal-block--contact a.pp-link {
	color: #fff200;
}
