/* Matches mallow-wallet-landing's LegalPage and prose-legal typography. */
@font-face {
	font-family: "Geist Variable";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("./fonts/geist-latin-wght-normal.woff2") format("woff2");
}

@font-face {
	font-family: "Newsreader Variable";
	font-style: normal;
	font-weight: 200 800;
	font-display: swap;
	src: url("./fonts/newsreader-latin-wght-normal.woff2") format("woff2");
}

@font-face {
	font-family: "Newsreader Variable";
	font-style: italic;
	font-weight: 200 800;
	font-display: swap;
	src: url("./fonts/newsreader-latin-wght-italic.woff2") format("woff2");
}

:root {
	--font-sans:
		"Geist Variable", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
		Helvetica, Arial, sans-serif;
	--font-serif: "Newsreader Variable", ui-serif, Georgia, "Times New Roman", serif;
	--color-ground: #ffffff;
	--color-ground-alt: #f2f2f2;
	--color-ink: #121212;
	--color-mute: #9a9a9a;
	--color-hairline: #e7e7e7;
	--color-accent: #ff9f8f;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	line-height: 1.5;
	background: var(--color-ground);
	color: var(--color-ink);
	font-family: var(--font-sans);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

body {
	margin: 0;
	min-height: 100dvh;
}

h1,
h2,
h3,
p,
ul,
ol {
	margin: 0;
}

a {
	color: inherit;
	text-decoration: none;
}

img {
	display: block;
}

::selection {
	background: var(--color-accent);
	color: #1a1a1a;
}

:focus-visible {
	outline: 2px solid #1a1a1a;
	outline-offset: 3px;
	border-radius: 2px;
}

.legal-header {
	border-bottom: 1px solid var(--color-hairline);
	padding: 24px;
}

.legal-brand {
	display: flex;
	align-items: flex-end;
	gap: 8.5px;
	max-width: 680px;
	margin: 0 auto;
}

.legal-brand span {
	font-family: var(--font-serif);
	font-size: 20px;
	font-style: italic;
	line-height: 1;
}

main {
	padding: 64px 24px;
}

article {
	max-width: 680px;
	margin: 0 auto;
}

.legal-title {
	margin-bottom: 40px;
	border-bottom: 1px solid var(--color-hairline);
	padding-bottom: 24px;
}

.legal-eyebrow {
	color: var(--color-mute);
	font-size: 12px;
	line-height: 16px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

h1 {
	margin-top: 12px;
	font-family: var(--font-serif);
	font-size: clamp(2rem, 1.5rem + 1.6vw, 3rem);
	font-style: italic;
	font-weight: 400;
	line-height: 1.25;
	text-wrap: balance;
}

.legal-updated {
	margin-top: 16px;
	color: var(--color-mute);
	font-size: 14px;
	line-height: 20px;
}

.prose-legal {
	font-size: 1rem;
	line-height: 1.7;
	overflow-wrap: anywhere;
}

.prose-legal > * + * {
	margin-top: 1.1em;
}

.prose-legal h2 {
	margin-top: 2.5em;
	margin-bottom: 0.6em;
	font-family: var(--font-serif);
	font-size: 1.75rem;
	font-style: italic;
	font-weight: 400;
	line-height: 1.2;
	text-wrap: balance;
}

.prose-legal h3 {
	margin-top: 2em;
	margin-bottom: 0.5em;
	font-size: 1.125rem;
	font-weight: 600;
}

.prose-legal p {
	text-wrap: pretty;
}

.prose-legal ul,
.prose-legal ol {
	padding-left: 1.5rem;
}

.prose-legal ul {
	list-style: disc;
}

.prose-legal ol {
	list-style: decimal;
}

.prose-legal li + li,
.prose-legal li > ul {
	margin-top: 0.4em;
}

.prose-legal .legal-letter-list {
	list-style: none;
}

.prose-legal .legal-letter-list > li {
	padding-left: 1.5rem;
	text-indent: -1.5rem;
}

.prose-legal a {
	text-decoration: underline;
	text-decoration-color: var(--color-accent);
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
}

.prose-legal a:hover {
	background: var(--color-accent);
}

.prose-legal strong {
	font-weight: 600;
}

.legal-table-scroll {
	overflow-x: auto;
}

.prose-legal table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.95em;
	text-indent: 0;
}

.prose-legal th,
.prose-legal td {
	border: 1px solid var(--color-hairline);
	padding: 0.5rem 0.75rem;
	text-align: left;
	vertical-align: top;
}

.prose-legal th {
	font-weight: 600;
}

.legal-footer {
	background: #000000;
	color: #ffffff;
	padding: 48px 24px;
}

.legal-footer-inner {
	display: flex;
	flex-direction: column;
	gap: 48px;
	max-width: 1440px;
	margin: 0 auto;
}

.legal-footer-brand {
	display: flex;
	align-items: flex-end;
	gap: 8.5px;
	margin-bottom: 20px;
}

.legal-footer-nav {
	display: flex;
	flex-direction: column;
	gap: 40px;
}

.legal-footer h2 {
	margin-bottom: 12px;
	font-size: 12px;
	font-weight: 300;
}

.legal-footer ul {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 0;
	list-style: none;
}

.legal-footer a:hover {
	color: var(--color-accent);
}

.legal-footer :focus-visible {
	outline-color: #ffffff;
}

@media (min-width: 640px) {
	.legal-footer {
		padding-inline: 40px;
	}

	.legal-footer-nav {
		flex-direction: row;
		gap: 64px;
	}
}

@media (min-width: 1024px) {
	.legal-footer {
		padding: 60px;
	}

	.legal-footer-inner {
		flex-direction: row;
		align-items: flex-end;
		justify-content: space-between;
	}

	.legal-footer-nav {
		gap: clamp(40px, 6vw, 120px);
	}
}

.legal-footer button {
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	cursor: pointer;
}
.legal-footer button:hover {
	color: var(--color-accent);
}
.legal-footer button:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 4px;
}

/* Keep the five-column cookie inventory readable on narrow screens. */
.legal-table-scroll[aria-label="Cookies on our websites"] table {
	min-width: 640px;
}
