/*
 * Privacy, Terms and Support — the three documents the App Store requires to be
 * reachable at a stable public URL.
 *
 * Deliberately standalone rather than built on the landing's tailwind stack:
 * these pages must never render unstyled, and `cleanUrls` in landing/vercel.json
 * serves /privacy without a trailing slash, so anything relative resolves against
 * the site root. One root-absolute stylesheet, no framework, nothing to drift.
 *
 * Tokens mirror the landing's dark theme (see packages/mobile/src/constants/brand.ts,
 * which ports the same ramp to native).
 */

:root {
	--ink: #070707;
	--ink-deep: #020203;
	--hairline: rgba(255, 255, 255, 0.055);
	--hairline-strong: rgba(255, 255, 255, 0.12);
	--glass: rgba(255, 255, 255, 0.025);
	--text: #ffffff;
	--text-secondary: rgba(255, 255, 255, 0.75);
	--text-muted: rgba(255, 255, 255, 0.55);
	--text-faint: rgba(255, 255, 255, 0.45);
	--crimson: #be0b28;
	--crimson-label: #e8647a;
}

* {
	box-sizing: border-box;
}

html {
	background: var(--ink);
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	padding: 0 20px 96px;
	background: var(--ink);
	color: var(--text-muted);
	font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 16px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

.wrap {
	max-width: 760px;
	margin: 0 auto;
}

/* ── Masthead ── */

.masthead {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 28px 0 0;
}

.masthead img {
	width: 28px;
	height: 28px;
	display: block;
}

.masthead a {
	color: var(--text);
	font-size: 19px;
	font-weight: 700;
	letter-spacing: -0.03em;
	text-decoration: none;
}

header.doc {
	padding: 56px 0 40px;
	border-bottom: 1px solid var(--hairline);
}

header.doc h1 {
	margin: 0;
	color: var(--text);
	font-size: clamp(32px, 7vw, 46px);
	font-weight: 800;
	line-height: 1.05;
	letter-spacing: -0.035em;
}

header.doc .updated {
	margin: 14px 0 0;
	color: var(--text-faint);
	font-size: 13px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

header.doc .lede {
	margin: 20px 0 0;
	color: var(--text-secondary);
	font-size: 17px;
}

/* ── Body ── */

h2 {
	margin: 52px 0 14px;
	color: var(--text);
	font-size: 22px;
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.25;
}

h3 {
	margin: 30px 0 10px;
	color: var(--text-secondary);
	font-size: 16px;
	font-weight: 600;
	letter-spacing: -0.01em;
}

p {
	margin: 0 0 16px;
}

ul {
	margin: 0 0 16px;
	padding-left: 20px;
}

li {
	margin-bottom: 9px;
}

li::marker {
	color: var(--crimson-label);
}

strong {
	color: var(--text-secondary);
	font-weight: 600;
}

a {
	color: var(--text-secondary);
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-color: var(--hairline-strong);
	transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

a:hover {
	color: var(--text);
	text-decoration-color: var(--crimson);
}

/* A framed aside — used for the contact block and the "what we never do" note. */
.card {
	margin: 24px 0;
	padding: 22px 24px;
	background: var(--glass);
	border: 1px solid var(--hairline);
	border-radius: 18px;
}

.card p:last-child,
.card ul:last-child {
	margin-bottom: 0;
}

.card h2,
.card h3 {
	margin-top: 0;
}

/* A plain two-column list of "what / why" rows, for the data table. */
.rows {
	margin: 20px 0;
	border-top: 1px solid var(--hairline);
}

.row {
	display: grid;
	grid-template-columns: 200px 1fr;
	gap: 8px 28px;
	padding: 16px 0;
	border-bottom: 1px solid var(--hairline);
}

.row dt {
	color: var(--text-secondary);
	font-weight: 600;
}

.row dd {
	margin: 0;
}

@media (max-width: 620px) {
	.row {
		grid-template-columns: 1fr;
		gap: 4px;
	}
}

footer.doc {
	margin-top: 64px;
	padding-top: 28px;
	border-top: 1px solid var(--hairline);
	color: var(--text-faint);
	font-size: 14px;
}

footer.doc nav {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 22px;
	margin-bottom: 16px;
}
