/* Stratum's privacy and terms pages: one column of plain text. Colours and type follow the landing page. */

:root {
	color-scheme: light;
	--bg: #ffffff;
	--surface-2: #f6f5f2;
	--ink: #1f1c18;
	--ink-soft: #5c544c;
	--ink-faint: #948d84;
	--border: #e7e4dd;
	--border-strong: #d8d3ca;
	--accent: #1f4a52;
	--accent-hover: #15363c;
	--accent-mid: #a9bec1;
	--accent-soft: #d5e0e1;
	--accent-tint: #ebf1f2;
	--font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
	--font-mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;
}

* { box-sizing: border-box; }

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

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font-sans);
	font-size: 16px;
	line-height: 1.65;
	letter-spacing: -0.006em;
	-webkit-font-smoothing: antialiased;
	font-feature-settings: "cv11", "ss03", "calt";
}

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.wrap {
	width: 100%;
	max-width: 1200px;
	margin-inline: auto;
	padding-left: max(16px, env(safe-area-inset-left, 0px));
	padding-right: max(16px, env(safe-area-inset-right, 0px));
}

.nav { display: flex; align-items: center; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: inherit; font-size: 16px; font-weight: 600; letter-spacing: -0.015em; text-decoration: none; }
.mark { width: 26px; height: 26px; flex: none; }

/* The column is narrow on purpose: about seventy characters to a line, which is what reads well. */
.doc { max-width: 688px; margin-inline: auto; padding-top: clamp(24px, 6vh, 64px); padding-bottom: 72px; overflow-wrap: break-word; }

.doc h1 { margin: 0; font-size: clamp(32px, 6vw, 44px); font-weight: 700; line-height: 1.1; letter-spacing: -0.03em; }
.doc .dated { margin: 14px 0 0; color: var(--ink-faint); font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0; }
.doc .lead { margin: 28px 0 0; color: var(--ink-soft); font-size: 18px; line-height: 1.55; }

.doc h2 { margin: 56px 0 0; padding-top: 8px; font-size: 21px; font-weight: 600; line-height: 1.3; letter-spacing: -0.018em; scroll-margin-top: 16px; }
.doc h3 { margin: 28px 0 0; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.doc p { margin: 14px 0 0; }
.doc ul { margin: 14px 0 0; padding-left: 20px; }
.doc li { margin-top: 8px; padding-left: 2px; }
.doc li::marker { color: var(--accent-mid); }
.doc a { color: var(--accent); text-decoration: underline; text-decoration-color: var(--accent-mid); text-underline-offset: 3px; }
.doc a:hover { color: var(--accent-hover); text-decoration-color: currentColor; }
.doc strong { font-weight: 600; }

/* The short version at the top, and the list of what the page holds. */
.short { margin-top: 32px; padding: 20px 22px 22px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-2); }
.doc .short h2 { margin: 0; padding: 0; color: var(--ink-faint); font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; }
.short ul { margin-top: 10px; }
.short p { margin-top: 10px; }

.doc .toc { margin-top: 28px; padding: 0; list-style: none; columns: 2; column-gap: 28px; font-size: 14.5px; }
.doc .toc li { margin: 0; padding: 3px 0; break-inside: avoid; }
.toc a { color: var(--ink-soft); text-decoration: none; }
.toc a:hover { color: var(--accent); text-decoration: underline; }

/* The outside services: a name, then what it receives and why. A list, so it reads the same on a phone. */
.who { margin: 18px 0 0; border-top: 1px solid var(--border); }
.who div { display: grid; grid-template-columns: 148px 1fr; gap: 4px 20px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.who dt { font-weight: 600; }
.who dd { margin: 0; color: var(--ink-soft); }

/* Terms the law wants a reader not to miss. */
.notice { margin-top: 18px; padding: 18px 20px; border: 1px solid var(--border-strong); border-left: 3px solid var(--accent); border-radius: 10px; font-weight: 600; }
.notice p:first-child { margin-top: 0; }

.foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; padding-block: 28px 36px; border-top: 1px solid var(--border); color: var(--ink-faint); font-size: 13px; }
.foot a { color: inherit; text-decoration: none; }
.foot a:hover { color: var(--ink-soft); text-decoration: underline; }

@media (max-width: 560px) {
	.doc .toc { columns: 1; }
	.who div { grid-template-columns: 1fr; }
	.doc h2 { margin-top: 44px; }
}

@media print {
	.nav, .foot { display: none; }
	.doc { max-width: none; padding: 0; }
	.short { background: none; }
	.doc a { color: inherit; text-decoration: none; }
}
