/*
 * Minimal stylesheet for the Sketchbook Runner public legal pages.
 *
 * Goals:
 *   1. Read well on any device, especially the mobile webview Apple's
 *      reviewer uses to validate the privacy-policy URL.
 *   2. Zero external dependencies (no fonts, no images, no CDN). Loads
 *      under a second on a flaky connection.
 *   3. Visually match the app's notebook aesthetic — cream paper,
 *      ink-on-paper text, blue accent that mirrors the in-game color.
 */

:root {
	--paper: #f6f1e0;
	--ink: #1a1a1a;
	--ink-soft: rgba(26, 26, 26, 0.55);
	--accent-blue: #3a78d0;
}

* { box-sizing: border-box; }

html, body {
	margin: 0;
	padding: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	line-height: 1.55;
	-webkit-text-size-adjust: 100%;
}

body {
	max-width: 720px;
	margin: 0 auto;
	padding: 32px 24px 96px;
}

header {
	border-bottom: 2px solid var(--ink);
	margin-bottom: 32px;
	padding-bottom: 16px;
}

header h1 {
	font-size: 32px;
	margin: 0 0 4px;
}

header .tagline {
	color: var(--ink-soft);
	font-size: 15px;
}

nav {
	margin-top: 16px;
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
}

nav a {
	color: var(--accent-blue);
	text-decoration: none;
	border-bottom: 1px solid var(--accent-blue);
	padding-bottom: 2px;
}

nav a:hover { opacity: 0.7; }

main h1 {
	font-size: 26px;
	margin-top: 0;
}

main h2 {
	font-size: 19px;
	margin-top: 28px;
	border-bottom: 1px solid var(--ink-soft);
	padding-bottom: 4px;
}

main h3 {
	font-size: 16px;
	margin-top: 20px;
}

main p, main ul, main ol {
	margin: 12px 0;
}

main ul, main ol {
	padding-left: 22px;
}

main li { margin: 6px 0; }

main a {
	color: var(--accent-blue);
}

.updated {
	color: var(--ink-soft);
	font-size: 14px;
	font-style: italic;
}

footer {
	margin-top: 64px;
	padding-top: 16px;
	border-top: 1px solid var(--ink-soft);
	color: var(--ink-soft);
	font-size: 13px;
	text-align: center;
}

/* Make the body comfortably wide on a phone but capped on desktop. */
@media (max-width: 480px) {
	body { padding: 24px 16px 64px; }
	header h1 { font-size: 26px; }
	main h1 { font-size: 22px; }
}
