:root {
	--page-bg: #ffffff;
	--text: #171717;
	--muted: #606060;
	--rule: rgba(0, 0, 0, 0.13);
	--link: #2854a1;
	--font-sans:
		Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
		'Segoe UI', sans-serif;
	--font-serif: 'Crimson Text', Georgia, 'Times New Roman', serif;
}

* {
	box-sizing: border-box;
}

html {
	font-size: 16px;
	scroll-behavior: smooth;
	scroll-padding-top: 2rem;
	background: var(--page-bg);
}

body {
	margin: 0;
	background: var(--page-bg);
	color: var(--text);
	font-family: var(--font-sans);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

.legal-header {
	display: flex;
	width: min(100% - 2.5rem, 48rem);
	margin: 0 auto;
	padding: 1.25rem 0;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	border-bottom: 1px solid var(--rule);
}

.legal-brand {
	display: inline-flex;
	align-items: center;
	gap: 0.65rem;
	color: var(--text);
	font-family: var(--font-serif);
	font-size: 1.65rem;
	line-height: 1;
	text-decoration: none;
}

.legal-brand img {
	display: block;
	width: 2.35rem;
	height: auto;
}

.legal-header__home {
	color: var(--muted);
	font-size: 0.78rem;
	font-weight: 600;
	text-decoration: none;
}

.legal-header__home:hover,
.legal-header__home:focus-visible,
.legal-footer a:hover,
.legal-footer a:focus-visible {
	color: var(--text);
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.legal-main {
	width: min(100% - 2.5rem, 48rem);
	margin: 0 auto;
	padding: 4.25rem 0 5rem;
}

.legal-copy {
	color: var(--muted);
	font-size: 0.94rem;
	line-height: 1.72;
}

.legal-copy h1,
.legal-copy h2,
.legal-copy h3 {
	color: var(--text);
	letter-spacing: 0;
}

.legal-copy div + div {
	margin-top: 0.95rem;
}

.legal-copy h1 {
	margin: 0 0 0.45rem;
	font-family: var(--font-serif);
	font-size: 4.3rem;
	font-weight: 400;
	line-height: 0.98;
}

.legal-copy h2 {
	margin: 3.5rem 0 1rem;
	padding-top: 0.2rem;
	font-size: 1.12rem;
	font-weight: 700;
	line-height: 1.35;
}

.legal-copy h3 {
	margin: 2.25rem 0 0.65rem;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.45;
}

.legal-copy ul {
	margin: 0.75rem 0 1.35rem;
	padding-left: 1.35rem;
}

.legal-copy li {
	margin: 0.45rem 0;
	padding-left: 0.25rem;
}

.legal-copy a {
	color: var(--link);
	font-weight: 600;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.16em;
	overflow-wrap: anywhere;
}

.legal-copy strong {
	color: #303030;
	font-weight: 700;
}

.legal-copy table {
	display: block;
	width: 100%;
	margin: 1.25rem 0 1.75rem;
	border-collapse: collapse;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.legal-copy th,
.legal-copy td {
	min-width: 9rem;
	padding: 0.75rem;
	border: 1px solid var(--rule);
	text-align: left;
	vertical-align: top;
}

.legal-copy th {
	background: #f5f5f3;
	color: var(--text);
	font-size: 0.82rem;
}

.legal-copy [id] {
	scroll-margin-top: 2rem;
}

.legal-footer {
	display: flex;
	width: min(100% - 2.5rem, 48rem);
	margin: 0 auto;
	padding: 1.25rem 0 2rem;
	align-items: center;
	justify-content: center;
	gap: 0.45rem;
	border-top: 1px solid var(--rule);
	color: #8a8a8a;
	font-size: 0.7rem;
}

.legal-footer a {
	color: inherit;
	text-decoration: none;
}

@media (max-width: 34rem) {
	.legal-header,
	.legal-main,
	.legal-footer {
		width: min(100% - 2rem, 48rem);
	}

	.legal-main {
		padding-top: 3.25rem;
	}

	.legal-copy {
		font-size: 0.9rem;
		line-height: 1.68;
	}

	.legal-copy h1 {
		font-size: 2.65rem;
	}

	.legal-copy h2 {
		margin-top: 3rem;
	}
}
