/* Shared legal page styles for /terms and /policy */
html {
	print-color-adjust: exact;
	-webkit-print-color-adjust: exact;
}

* {
	box-sizing: border-box;
	print-color-adjust: exact;
	-webkit-print-color-adjust: exact;
}

html,
body {
	margin: 0;
	padding: 0;
}

@media only screen {
	body {
		margin: 2em auto;
		max-width: 900px;
		color: rgb(55, 53, 47);
	}
}

body {
	line-height: 1.5;
}

@media (max-width: 1024px) {
	body {
		margin: 1.5rem 1.25rem;
		max-width: none;
	}

	.icon.page-logo {
		width: 170px;
		margin-bottom: 1rem;
	}

	.page-title {
		font-size: 1.75rem;
	}

	h1 {
		font-size: 1.4rem;
		margin-top: 1.25rem;
	}

	h2 {
		font-size: 1.25rem;
	}

	h3 {
		font-size: 1.1rem;
	}
}

@media (max-width: 767px) {
	body {
		margin: 1rem;
	}

	.icon.page-logo {
		width: 140px;
		margin-bottom: 0.6rem;
	}

	.page-title {
		font-size: 1rem;
		line-height: 1.2;
	}

	h1 {
		font-size: 1.2rem;
		margin-top: 1rem;
	}

	h2 {
		font-size: 1.1rem;
	}

	h3 {
		font-size: 1rem;
	}
}

a,
a.visited {
	color: inherit;
	text-decoration: underline;
}

.page-title {
	font-size: 2.5rem;
	font-weight: 700;
	margin-top: 0;
	margin-bottom: 0.75em;
}

h1,
h2,
h3 {
	letter-spacing: -0.01em;
	line-height: 1.2;
	font-weight: 600;
	margin-bottom: 0;
}

h1 {
	font-size: 1.875rem;
	margin-top: 1.875rem;
}

h2 {
	font-size: 1.5rem;
	margin-top: 1.5rem;
}

h3 {
	font-size: 1.25rem;
	margin-top: 1.25rem;
}

p {
	margin-top: 0.5em;
	margin-bottom: 0.5em;
}

ol,
ul {
	margin: 0;
	margin-block-start: 0.6em;
	margin-block-end: 0.6em;
}

li > ol:first-child,
li > ul:first-child {
	margin-block-start: 0.6em;
}

ul {
	padding-inline-start: 1.7em;
}

ul > li {
	list-style: disc;
	padding-left: 0.1em;
}

ol {
	padding-inline-start: 1.6em;
}

ol > li {
	padding-left: 0.2em;
}

table,
th,
td {
	border: 1px solid rgba(55, 53, 47, 0.09);
	border-collapse: collapse;
}

table {
	border-left: none;
	border-right: none;
}

th,
td {
	font-weight: normal;
	padding: 0.25em 0.5em;
	line-height: 1.5;
	min-height: 1.5em;
	text-align: left;
}

th {
	color: rgba(55, 53, 47, 0.6);
}

hr {
	background: transparent;
	display: block;
	width: 100%;
	height: 1px;
	visibility: visible;
	border: none;
	border-bottom: 1px solid rgba(55, 53, 47, 0.09);
}

img {
	max-width: 100%;
}

@media only print {
	img {
		max-height: 100vh;
		object-fit: contain;
	}
}

@page {
	margin: 1in;
}

.sans {
	font-family:
		ui-sans-serif,
		-apple-system,
		BlinkMacSystemFont,
		"Segoe UI",
		Helvetica,
		"Apple Color Emoji",
		Arial,
		sans-serif,
		"Segoe UI Emoji",
		"Segoe UI Symbol";
}

.serif {
	font-family: Lyon-Text, Georgia, ui-serif, serif;
}

.mono,
.code {
	font-family: "SFMono-Regular", Menlo, Consolas, "PT Mono", "Liberation Mono", Courier, monospace;
}

.code,
code {
	background: rgba(135, 131, 120, 0.15);
	border-radius: 3px;
	padding: 0.2em 0.4em;
	font-size: 85%;
	tab-size: 2;
}

.code {
	padding: 1.5em 1em;
}

code {
	color: #eb5757;
}

.code-wrap {
	white-space: pre-wrap;
	word-break: break-all;
}

.code > code {
	background: none;
	padding: 0;
	font-size: 100%;
	color: inherit;
}

.page-logo {
	width: 220px;
	height: auto;
	max-width: none;
	max-height: none;
	margin-right: 0;
}

.icon {
	display: inline-block;
	max-width: 1.2em;
	max-height: 1.2em;
	text-decoration: none;
	vertical-align: text-bottom;
	margin-right: 0.5em;
}

.icon.page-logo {
	width: 220px;
	height: auto;
	max-width: none;
	max-height: none;
	margin-right: 0;
	margin-bottom: 1.5rem;
}

img.icon {
	border-radius: 3px;
}

.blockquote,
blockquote {
	font-size: 1.25em;
	margin: 1em 0;
	padding-left: 1em;
	border-left: 3px solid rgb(55, 53, 47);
}

/* Keep responsive overrides at end so they win in cascade */
@media (max-width: 1024px) {
	h1.page-title {
		font-size: 1.6rem;
		line-height: 1.2;
	}

	.page h2 {
		font-size: 1.2rem;
		margin-top: 1.2rem;
	}

	.page h3 {
		font-size: 1.05rem;
		margin-top: 1rem;
	}

	.page-header-icon .icon.page-logo {
		width: 180px;
		margin-bottom: 1rem;
	}
}

@media (max-width: 767px) {
	h1.page-title {
		font-size: 1rem;
		line-height: 1.2;
	}

	.page h2 {
		font-size: 1rem;
		margin-top: 1rem;
	}

	.page h3 {
		font-size: 0.9rem;
		margin-top: 0.85rem;
	}

	.page-header-icon .icon.page-logo {
		width: 150px;
		margin-bottom: 0.7rem;
	}
}
