/* Generated alongside the pages. Edit build-legal-site.mjs, not this. */
/*
 * Taken from the app's own palette (mobile/global.css), value for value, so the
 * site and the thing it documents read as one product. The names there are
 * roles: --c-page is the page, --c-card a card, --c-brand green used as INK
 * (headings, links) as opposed to green used as a SURFACE (buttons, filled
 * chips), which is the forest ramp. That distinction is why there are two
 * greens here rather than one.
 */
:root {
	--forest: #0C3226; /* --c-brand: green as ink */
	--lime: #52B788;
	--cream: #FBF9F4; /* --c-page */
	--ink: #1B1C19; /* --c-ink */
	--muted: #414845; /* --c-ink-muted */
	--rule: #E5E7EB; /* --c-gray-200, the app's hairline */
	--card: #FFFFFF; /* --c-card */
	/* Green as a SURFACE: --c-forest-800 into --c-forest-600, which is the
	   app's own button ramp. White sits on it, exactly as it does in the app. */
	--tab-a: #0C3226;
	--tab-b: #2D6A4F;
	--on-tab: #FFFFFF;
	--tab-hover: #F3F4F6;
	--tab-sheen: rgba(255, 255, 255, 0.45);
}
@media (prefers-color-scheme: dark) {
	:root {
		--forest: #A8CFBD; /* --c-brand, dark */
		--lime: #74C69D;
		--cream: #121311; /* --c-page, dark */
		--ink: #F2F1EA; /* --c-ink, dark */
		--muted: #B3B6AC; /* --c-ink-muted, dark */
		--rule: #46493F; /* --c-gray-300, dark */
		--card: #21231E; /* --c-card, dark — lifted OFF the page, not level with
		                    it, which is the note global.css makes about cards
		                    ceasing to read as cards at 1.10 contrast. */
		/* The app does NOT flip its button text in dark. Its dark greens are
		   re-picked to be more saturated precisely so white legends still clear
		   4.5:1 — so the tab stays green with white on it in both themes, and
		   this ramp uses --c-forest-700 into --c-forest-800 (white at 6.3:1 and
		   4.9:1). --c-forest-600 is #52B788 in dark, where white would be
		   2.4:1, so it is deliberately not an endpoint here. */
		--tab-a: #0E6A4A;
		--tab-b: #12805A;
		--on-tab: #FFFFFF;
		--tab-sheen: rgba(255, 255, 255, 0.34);
		--tab-hover: #2D2F28; /* --c-gray-100, dark */
	}
}
/* Cross-fades between pages where the browser does it natively (Chrome 126+,
   Safari 18.2+). One line, no script, and browsers without it simply navigate
   the old way. */
@view-transition { navigation: auto; }

/* Reveal-on-scroll, in BOTH directions: the observer toggles .is-in as things
   enter and leave, so scrolling back up replays it rather than firing once and
   staying done.
 *
 * The .reveal class is added by script, never by the generator. That ordering
 * is the whole safety argument: if the script fails, is blocked, or the browser
 * is ancient, no element ever gets .reveal — and a privacy policy nobody can
 * read is a legal problem, not a missing flourish. Opacity floors at 0.3 rather
 * than 0 for the same reason. */
.reveal {
	opacity: 0.3;
	transform: translateY(14px);
	transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
}
/* A short stagger so an arriving page settles in sequence rather than as one
   slab. On a transition rather than an animation: a delayed transition still
   leaves the element at its real value, where a delayed animation with
   backwards fill would hold it at the invisible starting frame. */
main > *:nth-child(2).reveal { transition-delay: 0.06s; }
main > *:nth-child(3).reveal { transition-delay: 0.12s; }
main > *:nth-child(n + 4).reveal { transition-delay: 0.18s; }
.reveal.is-in {
	opacity: 1;
	transform: none;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--cream);
	color: var(--ink);
	font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
a { color: var(--forest); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--lime); }
/* Sticky, so the nav is reachable from anywhere on a long legal document
   rather than only at the top. The bar spans the full width while its contents
   stay in the same 42rem column as the text — hence the padding expression
   rather than the max-width the other blocks use. */
header {
	position: sticky;
	top: 0;
	z-index: 10;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 20px;
	padding: 14px max(22px, calc((100% - 42rem) / 2 + 22px));
	background: var(--cream);
	border-bottom: 1px solid var(--rule);
}
.wordmark {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	font-size: 20px;
	font-weight: 700;
	letter-spacing: -0.01em;
	color: var(--forest);
	text-decoration: none;
}
/* The icon carries its own dark background, so it needs a hairline to sit on
   the dark theme without dissolving into it. Radius matches how iOS draws it —
   squared off, it reads as a stray image rather than the app's mark. */
.wordmark img, .hero img {
	border-radius: 22%;
	box-shadow: 0 0 0 1px var(--rule);
}

/* The landing page opens the way sign-in does: mark, name, what it is for. */
.hero { text-align: center; padding: 26px 0 8px; }
.hero h1 { font-size: 34px; margin: 18px 0 6px; color: var(--forest); }
.hero .tagline { color: var(--muted); font-size: 16px; margin: 0; }
.hero + .lead { text-align: center; margin-bottom: 26px; }

/* Support answers are cards, so the page reads as somewhere you get help
   rather than a fifth legal document. The legal pages stay plain on purpose. */
.card {
	background: var(--card);
	border: 1px solid var(--rule);
	border-radius: 12px;
	padding: 15px 18px;
	margin-bottom: 10px;
}
.card h3 { margin: 0 0 6px; }
.card p:last-child { margin-bottom: 0; }

/* The support URL exists so someone stuck can reach a person. That address is
   the whole job of the page, so it gets to look like it. */
.contact {
	background: var(--card);
	border: 1px solid var(--rule);
	border-left: 3px solid var(--lime);
	border-radius: 12px;
	padding: 15px 18px;
	margin-bottom: 14px;
}
.contact .addr { font-size: 19px; font-weight: 600; margin-bottom: 6px; }
.contact p:last-child { margin-bottom: 0; }
/* A segmented control rather than a row of links: this is an iOS app's site,
   and underlined text in a header reads as a footer. */
header nav {
	display: flex;
	flex-wrap: wrap;
	gap: 3px;
	font-size: 15px;
	background: var(--card);
	border: 1px solid var(--rule);
	border-radius: 999px;
	padding: 4px;
}
header nav a,
header nav [aria-current] {
	padding: 6px 14px;
	border-radius: 999px;
	line-height: 1.35;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.15s ease, color 0.15s ease;
}
header nav a { color: var(--muted); }
header nav a:hover { color: var(--ink); background: var(--tab-hover); }
header nav [aria-current] {
	position: relative;
	overflow: hidden;
	/* Three stops, not two: the ramp has to return to where it started or the
	   loop visibly jumps at the seam. */
	background: linear-gradient(115deg, var(--tab-a), var(--tab-b), var(--tab-a));
	background-size: 220% 100%;
	color: var(--on-tab);
	font-weight: 600;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.16);
	animation: tab-flow 9s ease-in-out infinite;
}
/* The sheen is a separate layer so it can be composited — it moves with
   transform, which the GPU handles, rather than repainting the gradient. */
header nav [aria-current]::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: linear-gradient(
		100deg,
		transparent 15%,
		var(--tab-sheen) 50%,
		transparent 85%
	);
	transform: translateX(-130%);
	animation: tab-sheen 6s ease-in-out infinite;
}
@keyframes tab-flow {
	0% { background-position: 0% 50%; }
	50% { background-position: 100% 50%; }
	100% { background-position: 0% 50%; }
}
/* Idle for most of the cycle, then one pass. A sheen that never rests reads as
   a loading spinner — something is working — rather than as polish. */
@keyframes tab-sheen {
	0%, 70% { transform: translateX(-130%); }
	100% { transform: translateX(130%); }
}

/* Someone who has asked their OS for less motion has asked for exactly this:
   a thing that moves forever in the corner of their eye. The pill keeps its
   gradient and stays legible; it simply holds still. */
@media (prefers-reduced-motion: reduce) {
	header nav [aria-current] { animation: none; }
	header nav [aria-current]::after { display: none; }
	header nav a { transition: none; }
}
main { max-width: 42rem; margin: 0 auto; padding: 8px 22px 48px; }
h1 { font-size: 30px; line-height: 1.2; letter-spacing: -0.02em; margin: 28px 0 12px; }
h2 { font-size: 20px; line-height: 1.3; margin: 34px 0 10px; }
h3 { font-size: 17px; margin: 24px 0 6px; }
p { margin: 0 0 14px; }
.lead { font-size: 19px; color: var(--muted); margin-bottom: 20px; }
.version {
	font-size: 14px;
	color: var(--muted);
	background: var(--card);
	border: 1px solid var(--rule);
	border-radius: 10px;
	padding: 10px 14px;
	margin-bottom: 8px;
}
section { border-top: 1px solid var(--rule); padding-top: 4px; }
ul, ol { margin: 0 0 14px; padding-left: 22px; }
li { margin-bottom: 6px; }
footer {
	max-width: 42rem;
	margin: 0 auto;
	padding: 24px 22px 56px;
	border-top: 1px solid var(--rule);
	color: var(--muted);
	font-size: 14px;
}
footer p { margin: 0 0 8px; }
@media (max-width: 480px) {
	body { font-size: 16px; }
	h1 { font-size: 26px; }
	/* Once the pills wrap to two rows, a pill-shaped container reads as a
	   mistake — the ends curve around nothing. */
	header nav { border-radius: 14px; }
}
