/*
  Shared look for the signed-out static pages (#70): the landing page's
  tokens, header and footer. Colours follow docs/design/2026-11-visual-design.md.
  The theme is light unless the device asks for dark, or the visitor chose
  one in the app (site.js sets data-theme).
*/
:root {
	color-scheme: light dark;
	--font: 'Public Sans', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	--page: #F5F6F4;
	--surface: #FFFFFF;
	--text: #1A1F1C;
	--muted: #5D665F;
	--accent-text: #11595C;
	--selected: #E8F3F2;
	--hover: #EEF1EC;
	--hairline: #E1E5DF;
	--border-strong: #C9CFC7;
	--cta-a: #FC8228;
	--cta-b: #ED600F;
	--cta-c: #D74A09;
	--cta-glow: rgba(215, 74, 9, 0.45);
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--page: #0D0D0D;
		--surface: #1B1B1B;
		--text: #FAFAFA;
		--muted: #B7B7B7;
		--accent-text: #FF9D5C;
		--selected: #241A14;
		--hover: #2B2B2B;
		--hairline: #2B2B2B;
		--border-strong: #3A3A3A;
		--cta-a: #FD892F;
		--cta-b: #F36512;
		--cta-c: #DC4F0B;
		--cta-glow: rgba(242, 114, 28, 0.45);
	}
}

:root[data-theme="dark"] {
	--page: #0D0D0D;
	--surface: #1B1B1B;
	--text: #FAFAFA;
	--muted: #B7B7B7;
	--accent-text: #FF9D5C;
	--selected: #241A14;
	--hover: #2B2B2B;
	--hairline: #2B2B2B;
	--border-strong: #3A3A3A;
	--cta-a: #FD892F;
	--cta-b: #F36512;
	--cta-c: #DC4F0B;
	--cta-glow: rgba(242, 114, 28, 0.45);
}

:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
	margin: 0;
	font-family: var(--font);
	background-color: var(--page);
	color: var(--text);
	-webkit-font-smoothing: antialiased;
}

/* ---------- Header and footer, as on the landing page ---------- */
.site-in { width: min(1120px, 100%); margin: 0 auto; padding: 0 32px; }
.site-nav { display: flex; align-items: center; gap: 6px; min-height: 68px; flex-wrap: wrap; }
.site-brand { display: inline-flex; align-items: center; gap: 10px; margin-right: auto; color: var(--text); text-decoration: none; font-weight: 800; font-size: 18px; letter-spacing: -0.01em; }
.site-brand img { width: 32px; height: 32px; border-radius: 22%; display: block; }
.site-link { font: 600 14px var(--font); color: var(--muted); text-decoration: none; padding: 8px 10px; border-radius: 8px; transition: background-color 160ms ease-out, color 160ms ease-out; }
.site-link:hover { color: var(--text); background: var(--hover); }
.site-link[aria-current="page"] { color: var(--accent-text); background: var(--selected); }
.theme-btn { appearance: none; width: 36px; height: 36px; border-radius: 30px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); display: inline-grid; place-items: center; cursor: pointer; padding: 0; transition: background-color 160ms ease-out; }
.theme-btn:hover { background: var(--hover); }
.theme-btn svg { width: 18px; height: 18px; }
.theme-btn .moon { display: none; }
:root.is-dark .theme-btn .sun { display: none; }
:root.is-dark .theme-btn .moon { display: block; }
.cta { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; margin-left: 6px; border-radius: 30px; color: #fff; text-decoration: none; font: 600 15px Roboto, var(--font); background: linear-gradient(115deg, var(--cta-a), var(--cta-b) 50%, var(--cta-c) 115%); box-shadow: 0 3px 6px var(--cta-glow); transition: filter 160ms ease-out; }
.cta:hover { filter: brightness(1.06); }
.site-foot { border-top: 1px solid var(--hairline); margin-top: 8px; padding: 22px 0 30px; display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; font-size: 13px; color: var(--muted); }
.site-foot .mark { display: inline-flex; align-items: center; gap: 10px; }
.site-foot img { width: 20px; height: 20px; border-radius: 22%; display: block; }
.site-foot a { color: var(--muted); }

@media (max-width: 700px) {
	.site-in { padding: 0 18px; }
	.site-nav .site-link.tab { display: none; }
}

/* ---------- Legal page body ---------- */
main { width: min(900px, calc(100% - 36px)); margin: 24px auto 48px; padding: 36px 40px; background-color: var(--surface); border: 1px solid var(--hairline); border-radius: 18px; }
@media (max-width: 700px) { main { padding: 24px 20px; } }
h1 { margin: 0 0 8px; font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; letter-spacing: -0.025em; line-height: 1.1; }
h2 { margin: 28px 0 10px; font-size: 1.35rem; font-weight: 700; }
h3 { margin: 18px 0 8px; font-size: 1.1rem; }
p { line-height: 1.6; margin: 0 0 14px; }
ul, ol { margin: 0 0 14px 20px; padding: 0; }
li { margin: 6px 0; line-height: 1.55; }
main a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 2px; }
.hr { height: 1px; background-color: var(--hairline); margin: 24px 0; }
.muted { color: var(--muted); }
.reveal-wrap { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 6px; }
.reveal-email { filter: blur(6px); user-select: none; transition: filter 160ms ease; }
.reveal-email.is-visible { filter: blur(0); }
.reveal-btn { appearance: none; border: 1px solid var(--border-strong); background: transparent; color: var(--text); padding: 8px 14px; border-radius: 30px; font-weight: 600; font-family: var(--font); cursor: pointer; }
.reveal-btn:hover:not(:disabled) { background: var(--hover); }
.reveal-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.human-check { display: flex; align-items: center; gap: 8px; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
