/* ── Legal documents — Privacy Policy, Terms of Service, EULA ──────────
   One reading column on the paper ground, in the site's serif. The
   documents are long and numbered; the type is set to be read, not
   skimmed past: a measured line, generous leading, headings that step
   down in size rather than shout. */

.legal {
	background: var(--bg);
	padding: calc(var(--space-4xl) + 20px) var(--space-lg) var(--space-3xl);
}

.legal__inner {
	max-width: var(--reading-width);
	margin: 0 auto;
}

/* The head: company as eyebrow, the document's name, the date. */
.legal__head {
	text-align: center;
	margin-bottom: var(--space-lg);
}

.legal__eyebrow {
	font-family: var(--serif);
	font-size: 1.05rem;
	font-weight: 500;
	color: var(--secondary);
	margin: 0 0 var(--space-sm);
}

.legal__title {
	font-family: var(--serif);
	font-weight: 600;
	font-size: clamp(2.2rem, 5vw, 3rem);
	line-height: 1.1;
	color: var(--ink);
	margin: 0 0 var(--space-sm);
}

.legal__meta {
	font-family: var(--serif);
	font-style: italic;
	font-size: 1rem;
	color: var(--secondary);
	margin: 0;
}

/* The three documents, as a row of quiet tabs under the head — the
   nav's own pill grammar, so moving between them is one tap. */
.legal__tabs {
	display: flex;
	justify-content: center;
	gap: 8px;
	flex-wrap: wrap;
	margin: var(--space-lg) 0 var(--space-2xl);
	padding-bottom: var(--space-lg);
	border-bottom: 1px solid var(--border-light);
}

.legal__tabs a {
	font-family: var(--serif);
	font-size: 0.95rem;
	font-weight: 500;
	color: var(--secondary);
	text-decoration: none;
	padding: 6px 14px;
	border: 1px solid var(--border);
	border-radius: 999px;
	transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.legal__tabs a:hover {
	color: var(--ink);
	border-color: var(--ink);
}

.legal__tabs a[aria-current] {
	color: var(--bg);
	background: var(--ink);
	border-color: var(--ink);
}

/* The body. */
.legal__h2 {
	font-family: var(--serif);
	font-weight: 600;
	font-size: 1.45rem;
	line-height: 1.25;
	color: var(--ink);
	margin: var(--space-2xl) 0 var(--space-md);
}

.legal__h2:first-of-type {
	margin-top: var(--space-xl);
}

.legal__h3 {
	font-family: var(--serif);
	font-weight: 600;
	font-size: 1.15rem;
	line-height: 1.3;
	color: var(--ink);
	margin: var(--space-lg) 0 var(--space-sm);
}

.legal__p,
.legal__list li {
	font-family: var(--serif);
	font-size: 1.1rem;
	line-height: 1.7;
	color: var(--ink);
	opacity: 0.82;
	margin: 0 0 var(--space-md);
}

/* All-caps passages (warranty, liability, emergencies) — the law wants
   them conspicuous; the page keeps them readable with a touch more
   tracking and a step down in size. */
.legal__p--caps {
	font-size: 0.98rem;
	letter-spacing: 0.02em;
	line-height: 1.75;
}

.legal__list {
	margin: 0 0 var(--space-md);
	padding-left: 1.4em;
}

.legal__list li {
	margin-bottom: var(--space-sm);
	padding-left: 0.2em;
}

.legal__list li::marker {
	color: var(--secondary);
}

.legal__p strong,
.legal__list strong {
	font-weight: 600;
	opacity: 1;
}

.legal__p a,
.legal__list a {
	color: var(--ink);
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-color: var(--divider);
}

@media (max-width: 700px) {
	.legal {
		padding: calc(var(--space-3xl) + 24px) var(--space-md) var(--space-2xl);
	}
	.legal__p,
	.legal__list li {
		font-size: 1.05rem;
	}
}
