/* fitfrog long-form pages (privacy, support) — scrolling document layout.
   shared.css owns the palette and the mascot; this file owns typography. */

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	min-height: 100dvh;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 2rem 1rem 2.5rem;
	background: var(--bg);
	color: var(--ink);
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	font-size: 1rem;
	line-height: 1.6;
}

header.page-head,
main,
footer.page-foot {
	width: min(100%, 44rem);
}

.page-head {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	margin-bottom: 1.5rem;
}

.back-link {
	color: var(--frog-dark);
	font-size: 0.85rem;
	font-weight: 600;
	text-decoration: none;
	align-self: flex-start;
}

.back-link:hover,
.back-link:focus-visible {
	text-decoration: underline;
}

.page-head h1 {
	margin: 0;
	font-size: clamp(1.75rem, 6vw, 2.5rem);
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1.1;
}

.updated {
	margin: 0;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--frog-dark);
}

.lede {
	font-size: 1.05rem;
	font-weight: 500;
	margin-top: 0;
}

.toc {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem 0.5rem;
	padding: 0.9rem 1rem;
	margin: 0 0 2rem;
	border: 2px solid var(--card-border);
	border-radius: 1rem;
	background: var(--card);
}

.toc a {
	color: var(--frog-dark);
	font-size: 0.85rem;
	font-weight: 600;
	text-decoration: none;
	padding: 0.2rem 0.55rem;
	border-radius: 999px;
	background: var(--card-hover);
}

.toc a:hover,
.toc a:focus-visible {
	background: var(--lime);
	outline: none;
}

main section {
	margin-bottom: 1.75rem;
}

h2 {
	margin: 2rem 0 0.6rem;
	font-size: 1.3rem;
	font-weight: 800;
	letter-spacing: -0.02em;
}

h3 {
	margin: 1.3rem 0 0.4rem;
	font-size: 1rem;
	font-weight: 700;
	color: var(--frog-dark);
}

p {
	margin: 0 0 0.85rem;
}

ul {
	margin: 0 0 0.9rem;
	padding-left: 1.15rem;
}

li {
	margin-bottom: 0.35rem;
}

a {
	color: var(--frog-dark);
}

code {
	font-size: 0.9em;
	background: var(--card-hover);
	padding: 0.1em 0.35em;
	border-radius: 0.3em;
}

.callout {
	border-left: 4px solid var(--frog);
	border-radius: 0 0.75rem 0.75rem 0;
	background: var(--card);
	padding: 0.85rem 1rem;
	font-weight: 500;
}

.faq {
	border: 2px solid var(--card-border);
	border-radius: 1rem;
	background: var(--card);
	padding: 0.35rem 1rem;
	margin-bottom: 1rem;
}

.faq > h3 {
	margin-top: 0.85rem;
}

.faq > h3:first-child {
	margin-top: 0.75rem;
}

.faq p:last-child {
	margin-bottom: 0.9rem;
}

.page-foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
	margin-top: 2.5rem;
	padding-top: 1rem;
	border-top: 2px solid var(--card-border);
	font-size: 0.8rem;
	opacity: 0.7;
}

.page-foot a {
	color: inherit;
	text-decoration: none;
}

.page-foot a:hover,
.page-foot a:focus-visible {
	text-decoration: underline;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}
