/* Text Page — plain legal/reference pages (Terms, Privacy, Patents): title,
   red rule, then core blocks on a reading measure.

   No Figma for this page, so it borrows the post and search pages' language
   (Base Model uppercase headings, red accent rule, sharp corners, 0.2s
   hovers). Re-measure if a design for it lands. */

.tt-text-page {
	max-width: 800px;
	margin-inline: auto;
	padding: 80px 20px 100px;
	color: var(--wp--preset--color--ink, #141412);
}

.tt-text-page__title {
	margin: 0;
	font-family: var(--wp--preset--font-family--base-model, "Base Model", sans-serif) !important;
	font-weight: 600 !important;
	font-size: 52px;
	line-height: 1.05;
	text-transform: uppercase;
	color: var(--wp--preset--color--ink, #141412) !important;
}

.tt-text-page__rule {
	display: block;
	width: 50px;
	height: 2px;
	margin-top: 20px;
	background: var(--wp--preset--color--red, #cf2026);
}

/* ---- Body ---------------------------------------------------------------- */
/* Content is pasted in by editors, so the core blocks are styled by element
   rather than per-block class. theme.json already makes headings Base Model
   uppercase. */
.tt-text-page__body {
	margin-top: 48px;
	font-family: var(--wp--preset--font-family--encode-sans, "Encode Sans", sans-serif);
	font-size: 16px;
	/* Looser than the site's 1.6 — long-form body copy, not UI text. */
	line-height: 1.75;
}

.tt-text-page__body > * {
	margin-block: 0 24px;
}

.tt-text-page__body > *:last-child {
	margin-bottom: 0;
}

.tt-text-page__body h2 {
	margin-top: 48px;
	font-size: 28px;
	line-height: 1.2;
}

.tt-text-page__body h3 {
	margin-top: 32px;
	font-size: 22px;
	line-height: 1.25;
}

.tt-text-page__body > h2:first-child,
.tt-text-page__body > h3:first-child {
	margin-top: 0;
}

/* theme.json strips underlines site-wide; prose links need them back. */
.tt-text-page__body a {
	color: var(--wp--preset--color--red, #cf2026) !important;
	text-decoration: underline;
	text-underline-offset: 3px;
	transition: color 0.2s ease;
}

.tt-text-page__body a:hover {
	color: var(--wp--preset--color--ink, #141412) !important;
}

.tt-text-page__body ol,
.tt-text-page__body ul {
	padding-left: 24px;
}

.tt-text-page__body li {
	margin-bottom: 8px;
}

/* ---- Table --------------------------------------------------------------- */
/* Wide tables scroll inside the figure rather than pushing the page sideways. */
.tt-text-page__body .wp-block-table {
	overflow-x: auto;
}

.tt-text-page__body table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
	line-height: 1.5;
}

.tt-text-page__body th,
.tt-text-page__body td {
	padding: 12px 16px;
	border: 1px solid var(--wp--preset--color--grey-light, #adadad);
	text-align: left;
	vertical-align: top;
}

.tt-text-page__body thead {
	border-bottom: 0;
}

.tt-text-page__body thead th {
	background: var(--wp--preset--color--ink, #141412);
	border-color: var(--wp--preset--color--ink, #141412);
	font-family: var(--wp--preset--font-family--base-model, "Base Model", sans-serif);
	font-weight: 400;
	font-size: 14px;
	letter-spacing: 0.7px;
	text-transform: uppercase;
	color: var(--wp--preset--color--white, #ffffff);
}

.tt-text-page__body .has-text-align-center {
	text-align: center;
}

/* ---- Mobile (≤767px) ----------------------------------------------------- */
@media (max-width: 767px) {
	.tt-text-page {
		padding: 48px 20px 64px;
	}

	.tt-text-page__title {
		font-size: 36px;
	}

	.tt-text-page__body {
		margin-top: 32px;
	}

	.tt-text-page__body h2 {
		margin-top: 40px;
		font-size: 24px;
	}

	.tt-text-page__body h3 {
		font-size: 20px;
	}

	.tt-text-page__body th,
	.tt-text-page__body td {
		padding: 10px 12px;
		font-size: 14px;
	}
}
