/*
 * Policy pages (inc/legal.php). No Figma frame exists for these; they follow the site's type scale,
 * hairlines and spacing (Resources, Certifications): breadcrumb, eyebrow and title, contents beside
 * the text, other policies at the foot.
 */

body.tml-page main.site-main,
body.tml-page main.site-main .page-content {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
}
body.tml-page .page-header {
	display: none;
}
.tml {
	color: var(--ink, #171719);
}
.tml-in {
	max-width: 1440px;
	margin: 0 auto;
	padding: 0 80px;
}

/* Breadcrumb and head */
.tml-crumb {
	border-bottom: 1px solid #ECECEE;
}
.tml-crumb .tml-in {
	display: flex;
	gap: 10px;
	padding-top: 20px;
	padding-bottom: 20px;
	color: #656569;
	font-size: 13px;
	line-height: 1.5;
}
body .tml-crumb a {
	color: #656569;
	text-decoration: none;
}
body .tml-crumb a:hover {
	color: var(--ink, #171719);
}
.tml-crumb [aria-current] {
	color: var(--ink, #171719);
	font-weight: 500;
}
.tml-head .tml-in {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding-top: 72px;
	padding-bottom: 56px;
}
.tml-eyebrow {
	margin: 0;
	color: #6F6556;
	font-size: 11px;
	font-weight: 500;
	line-height: 1.5;
	letter-spacing: 1.6px;
	text-transform: uppercase;
}
.tml .tml-title {
	margin: 0;
	color: var(--ink, #171719);
	font-size: 48px;
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: -1px;
}
.tml-date {
	margin: 0;
	color: #96969A;
	font-size: 14px;
	line-height: 1.5;
}
.tml-lede {
	max-width: 720px;
	margin: 8px 0 0;
	color: #656569;
	font-size: 18px;
	line-height: 1.6;
}

/* Contents and text */
.tml-body .tml-in {
	display: grid;
	grid-template-columns: 280px minmax(0, 760px);
	gap: 80px;
	padding-bottom: 96px;
}
.tml-toc {
	position: sticky;
	top: 120px;
	align-self: start;
	padding-top: 24px;
	border-top: 1px solid #E4E4E7;
}
.tml-toc-h {
	margin: 0 0 16px;
	color: #6F6556;
	font-size: 10px;
	font-weight: 500;
	line-height: 1.5;
	letter-spacing: 1.6px;
	text-transform: uppercase;
}
.tml-toc ol {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: tml;
}
.tml-toc li {
	display: flex;
	gap: 10px;
	counter-increment: tml;
	font-size: 14px;
	line-height: 1.45;
}
.tml-toc li::before {
	content: counter(tml, decimal-leading-zero);
	flex: 0 0 22px;
	color: #96969A;
	font-size: 12px;
	line-height: 1.7;
}
body .tml-toc a {
	color: #656569;
	text-decoration: none;
}
body .tml-toc a:hover {
	color: var(--ink, #171719);
}
.tml-text {
	color: #3D3D42;
	font-size: 16px;
	line-height: 1.7;
}
.tml-text > :first-child {
	margin-top: 0;
}
.tml .tml-text h2 {
	margin: 56px 0 16px;
	padding-top: 24px;
	border-top: 1px solid #E4E4E7;
	color: var(--ink, #171719);
	font-size: 26px;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: -.4px;
	scroll-margin-top: 120px;
}
.tml .tml-text h2:first-child {
	margin-top: 0;
}
.tml .tml-text h3 {
	margin: 32px 0 8px;
	color: var(--ink, #171719);
	font-size: 18px;
	font-weight: 600;
	line-height: 1.4;
}
.tml-text p {
	margin: 0 0 16px;
}
.tml-text ul,
.tml-text ol {
	margin: 0 0 16px;
	padding-left: 20px;
}
.tml-text li {
	margin-bottom: 8px;
}
.tml-text li::marker {
	color: #96969A;
}
.tml-text strong {
	color: var(--ink, #171719);
	font-weight: 600;
}
body .tml-text a {
	color: var(--ink, #171719);
	text-decoration: underline;
	text-decoration-color: #C3C3C8;
	text-underline-offset: 3px;
}
body .tml-text a:hover {
	text-decoration-color: var(--ink, #171719);
}
.tml-text table {
	width: 100%;
	margin: 8px 0 24px;
	border-collapse: collapse;
	font-size: 14px;
	line-height: 1.55;
}
body .tml-text table thead > tr > th,
body .tml-text table tbody > tr > td {
	padding: 12px 16px 12px 0;
	border: 0;
	border-bottom: 1px solid #E4E4E7;
	background: transparent;
	text-align: left;
	vertical-align: top;
}
body .tml-text th {
	color: #6F6556;
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 1.2px;
	text-transform: uppercase;
}
body .tml-text table tbody > tr:nth-child(n) > td {
	background: transparent;
}
.tml-text td:first-child {
	color: var(--ink, #171719);
	font-weight: 500;
	white-space: nowrap;
}

/* Missing facts, for signed-in editors only */
.tml-flag {
	margin: 0 0 16px;
	padding: 14px 16px;
	border: 1px solid #E8C547;
	border-left-width: 4px;
	background: #FFF8DC;
	color: #5C4A00;
	font-size: 14px;
	line-height: 1.55;
}
.tml-flag::before {
	content: "Writer input needed · editors only";
	display: block;
	margin-bottom: 4px;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 1.2px;
	text-transform: uppercase;
}
.tml-flag p {
	margin: 0;
}

/* Other policies */
.tml-more {
	background: #FBFBFA;
	border-top: 1px solid #E4E4E7;
}
.tml-more .tml-in {
	padding-top: 40px;
	padding-bottom: 48px;
}
.tml-more ul {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 40px;
	margin: 0;
	padding: 0;
	list-style: none;
}
body .tml-more a {
	display: inline-flex;
	gap: 8px;
	color: var(--ink, #171719);
	font-size: 16px;
	font-weight: 500;
	text-decoration: none;
}
body .tml-more a:hover span {
	transform: translateX(3px);
}
.tml-more a span {
	transition: transform var(--m-dur-s, 200ms);
}

@media (max-width: 1024px) {
	.tml-in {
		padding: 0 40px;
	}
	.tml-body .tml-in {
		grid-template-columns: 1fr;
		gap: 40px;
	}
	.tml-toc {
		position: static;
	}
}
@media (max-width: 767px) {
	.tml-in {
		padding: 0 20px;
	}
	.tml-head .tml-in {
		padding-top: 40px;
		padding-bottom: 32px;
	}
	.tml .tml-title {
		font-size: 34px;
		letter-spacing: -.6px;
	}
	.tml-lede {
		font-size: 16px;
	}
	.tml-body .tml-in {
		padding-bottom: 64px;
	}
	.tml .tml-text h2 {
		margin-top: 40px;
		font-size: 22px;
	}
	.tml-text table,
	.tml-text thead,
	.tml-text tbody,
	.tml-text tr,
	.tml-text th,
	.tml-text td {
		display: block;
	}
	.tml-text thead {
		display: none;
	}
	.tml-text tr {
		padding: 12px 0;
		border-bottom: 1px solid #E4E4E7;
	}
	body .tml-text td {
		padding: 2px 0;
		border: 0;
		white-space: normal;
	}
}
