/* Petlore legal and support pages. Colours follow pet-app/styles/petlore.css. */
@font-face {
	font-family: 'Bricolage Grotesque';
	src: url('/assets/bricolage-grotesque-latin.woff2') format('woff2');
	font-style: normal;
	font-weight: 500 800;
	font-display: swap;
}
@font-face {
	font-family: 'Figtree';
	src: url('/assets/figtree-latin.woff2') format('woff2');
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
}

:root {
	color-scheme: light;
	--bg: #EEF3FA;
	--surface: #FFFFFF;
	--line: #E3EAF4;
	--ink: #10213D;
	--mute: #5B6B85;
	--faint: #8A97AD;
	--brand: #1668C4;
	--link: #1668C4;
	--cover: #1668C4;
	--cover-ink: #FFFFFF;
	--cover-mute: #D5E5F8;
	--tail: #D2A03E;
	--note-bg: #FBF7EE;
	--note-line: #EADFC4;
}
@media (prefers-color-scheme: dark) {
	:root {
		color-scheme: dark;
		--bg: #0E131D;
		--surface: #161C29;
		--line: #262E40;
		--ink: #EDF0F6;
		--mute: #A2AABB;
		--faint: #7A8398;
		--brand: #69A8FF;
		--link: #69A8FF;
		--cover: #123F7A;
		--cover-ink: #FFFFFF;
		--cover-mute: #C3D6F0;
		--tail: #DDAE4E;
		--note-bg: #1D2230;
		--note-line: #343C50;
	}
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	font-size: 17px;
	line-height: 1.6;
}
a { color: var(--link); text-underline-offset: 3px; }
a:focus-visible { outline: 2px solid var(--tail); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); color: var(--ink); padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 8px; z-index: 2; }
.wrap { max-width: 1040px; margin: 0 auto; padding-inline: 20px; }

/* The blue cover: wordmark, navigation, page title. */
.cover { background: var(--cover); color: var(--cover-ink); padding-block: 18px 44px; }
.cover a { color: var(--cover-ink); }
.site-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.wordmark { display: flex; align-items: center; gap: 10px; font-family: 'Bricolage Grotesque', 'Figtree', system-ui, sans-serif; font-weight: 700; font-size: 22px; letter-spacing: -0.01em; }
.wordmark img { width: 34px; height: 34px; border-radius: 9px; display: block; }
.site-nav { display: flex; gap: 6px; }
.site-nav a { text-decoration: none; font-weight: 600; font-size: 15px; padding: 7px 14px; border-radius: 999px; }
.site-nav a:hover { background: rgba(255, 255, 255, 0.14); }
.site-nav a[aria-current='page'] { background: rgba(255, 255, 255, 0.2); }
.hero { margin-top: 44px; max-width: 34em; }
.eyebrow { margin: 0 0 10px; font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cover-mute); }
h1 { margin: 0; font-family: 'Bricolage Grotesque', 'Figtree', system-ui, sans-serif; font-weight: 800; font-size: clamp(34px, 6vw, 52px); line-height: 1.08; letter-spacing: -0.02em; text-wrap: balance; }
.intro { margin: 14px 0 0; font-size: 19px; color: var(--cover-mute); }
.updated { margin: 18px 0 0; font-size: 14px; color: var(--cover-mute); }

/* Contents on the left, the document on the right; one column on a phone. */
.layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 32px; align-items: start; padding-block: 32px 56px; }
.contents { position: sticky; top: 20px; }
.contents .eyebrow { color: var(--faint); }
.contents ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.contents a { display: flex; gap: 10px; padding: 6px 8px; border-radius: 8px; color: var(--mute); text-decoration: none; font-size: 15px; line-height: 1.35; }
.contents a:hover { background: var(--surface); color: var(--ink); }
.contents .index { color: var(--faint); font-variant-numeric: tabular-nums; }
.document { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 8px 32px 28px; min-width: 0; }
.document section { padding-block: 26px; border-bottom: 1px solid var(--line); scroll-margin-top: 16px; }
.document section:last-of-type { border-bottom: 0; }
.section-number { display: block; font-size: 13px; font-weight: 700; color: var(--tail); font-variant-numeric: tabular-nums; letter-spacing: 0.06em; }
h2 { margin: 4px 0 12px; font-family: 'Bricolage Grotesque', 'Figtree', system-ui, sans-serif; font-weight: 700; font-size: 25px; line-height: 1.2; letter-spacing: -0.01em; text-wrap: balance; }
h3 { margin: 20px 0 6px; font-size: 17px; font-weight: 700; }
.document p, .document li { max-width: 65ch; }
.document p { margin: 0 0 12px; }
.document ul { margin: 0 0 12px; padding-left: 22px; }
.document li { margin-bottom: 7px; }
.document li::marker { color: var(--tail); }
.note { background: var(--note-bg); border: 1px solid var(--note-line); border-radius: 14px; padding: 14px 16px; margin: 14px 0; max-width: 65ch; }
.note p:last-child { margin-bottom: 0; }
.to-top { display: inline-block; margin-top: 18px; font-size: 15px; }

/* Support: the address, large enough to read out and to copy. */
.contact-card { margin-top: 22px; display: inline-flex; flex-direction: column; gap: 4px; background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.28); border-radius: 16px; padding: 14px 18px; }
.contact-card a { font-family: 'Bricolage Grotesque', 'Figtree', system-ui, sans-serif; font-weight: 700; font-size: 22px; overflow-wrap: anywhere; }
.contact-card span { font-size: 14px; color: var(--cover-mute); }

.site-footer { border-top: 1px solid var(--line); padding-block: 26px 40px; color: var(--mute); font-size: 15px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 28px; }
.site-footer p { margin: 2px 0 0; }
.footer-brand { font-family: 'Bricolage Grotesque', 'Figtree', system-ui, sans-serif; font-weight: 700; color: var(--ink); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 4px 18px; align-items: center; }

@media (max-width: 820px) {
	.layout { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-block: 20px 40px; }
	.contents { position: static; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 12px; }
	.document { padding: 4px 20px 22px; border-radius: 16px; }
	.hero { margin-top: 30px; }
	.cover { padding-bottom: 32px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print {
	.cover { background: none; color: #000; padding-bottom: 12px; }
	.cover a, .eyebrow, .intro, .updated { color: #000; }
	.site-nav, .contents, .to-top { display: none; }
	.layout { display: block; padding: 0; }
	.document { border: 0; padding: 0; }
}

/* The wordmark doubles as the link back to the landing page. */
a.wordmark { color: inherit; text-decoration: none; }
a.wordmark:hover { text-decoration: none; }
