/**
 * Legal pages (Privacy Policy, Cookie Policy) — long-form text layout.
 */

.ipopi-legal-page {
	padding: var(--ipopi-space-700, 48px) var(--ipopi-space-300, 16px) var(--ipopi-space-1000, 72px);
	background: var(--ipopi-color-background-base, #fff);
}

.ipopi-legal-page__inner {
	max-width: var(--ipopi-content-width, 784px);
	margin: 0 auto;
}

.ipopi-legal-page__title {
	margin: 0 0 var(--ipopi-space-600, 40px);
	color: var(--ipopi-color-heading, #121111);
	font-size: var(--ipopi-type-heading-4-mobile-size, 40px);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.4px;
}

.ipopi-legal-page__content {
	color: var(--ipopi-color-text, #2b2827);
	font-size: var(--ipopi-type-body-medium-size, 16px);
	line-height: var(--ipopi-type-body-medium-line-height, 26px);
	overflow-wrap: break-word;
}

.ipopi-legal-page__content > * {
	margin-top: 0;
	margin-bottom: var(--ipopi-space-300, 16px);
}

.ipopi-legal-page__content h2 {
	margin-top: var(--ipopi-space-600, 40px);
	color: var(--ipopi-color-heading, #121111);
	font-size: 22px;
	font-weight: 700;
	line-height: 30px;
}

.ipopi-legal-page__content h3,
.ipopi-legal-page__content h4 {
	margin-top: var(--ipopi-space-400, 24px);
	color: var(--ipopi-color-heading, #121111);
	font-size: 18px;
	font-weight: 700;
	line-height: 26px;
}

.ipopi-legal-page__content ul,
.ipopi-legal-page__content ol {
	padding-left: var(--ipopi-space-400, 24px);
}

.ipopi-legal-page__content li + li {
	margin-top: var(--ipopi-space-100, 8px);
}

.ipopi-legal-page__content a {
	color: var(--ipopi-color-navy, #233c59);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.ipopi-legal-page__content .wp-block-table {
	overflow-x: auto;
}

.ipopi-legal-page__content .wp-block-table table,
.ipopi-legal-page__content .wp-block-table table.has-fixed-layout {
	table-layout: auto;
}

.ipopi-legal-page__content .wp-block-table thead {
	border-bottom: 1px solid var(--ipopi-color-stroke-default, #dce2e4);
}

.ipopi-legal-page__content table {
	width: 100%;
	border-collapse: collapse;
	font-size: var(--ipopi-type-body-small-size, 14px);
	line-height: var(--ipopi-type-body-small-line-height, 20px);
}

.ipopi-legal-page__content th,
.ipopi-legal-page__content td {
	padding: var(--ipopi-space-200, 12px);
	border: 1px solid var(--ipopi-color-stroke-default, #dce2e4);
	text-align: left;
	vertical-align: top;
	/* Never split words mid-way inside table cells. */
	overflow-wrap: normal;
	word-break: normal;
	hyphens: none;
}

/* Header row: real <thead>, or the first row of imported tables without one. */
.ipopi-legal-page__content thead th,
.ipopi-legal-page__content table:not(:has(thead)) tr:first-child td {
	background: var(--ipopi-color-background-low, #fafafa);
	font-weight: 700;
}

/* Cookie list: short columns stay on one line, Description takes the remaining width.
   Cookie names wrap only at <wbr> after separators (_ - . : #); anywhere is a last resort. */
.ipopi-legal-table--cookies table {
	min-width: 640px;
}

.ipopi-legal-table--cookies th,
.ipopi-legal-table--cookies td:nth-child(2),
.ipopi-legal-table--cookies td:nth-child(3),
.ipopi-legal-table--cookies td:nth-child(5) {
	white-space: nowrap;
}

.ipopi-legal-table--cookies td:first-child {
	width: 24%;
	overflow-wrap: anywhere;
}

@media (min-width: 768px) {
	.ipopi-legal-page {
		padding-top: var(--ipopi-space-1100, 80px);
		padding-bottom: var(--ipopi-space-1100, 80px);
	}

	.ipopi-legal-page__title {
		font-size: var(--ipopi-type-heading-4-size, 48px);
		letter-spacing: -0.48px;
	}

	.ipopi-legal-page__content h2 {
		font-size: 26px;
		line-height: 34px;
	}
}
