/*
 * Claro Access legal pages. Mobile first: the app opens these pages in a
 * phone browser, so base styles are for small screens and one media query
 * only adds breathing room on wider ones.
 *
 * Colours come from the claro Brand Manual (September 2024), section 3.
 * The brand fonts (Filson Soft, Circular Std) are licensed typefaces, so the
 * pages use self-hosted Figtree, a close open-licence geometric sans. Fonts are
 * self-hosted on purpose: a privacy policy should not call Google Fonts.
 */

@font-face {
	font-family: "Figtree";
	font-style: normal;
	font-weight: 300 900;
	font-display: swap;
	src: url("/assets/figtree-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "Figtree";
	font-style: normal;
	font-weight: 300 900;
	font-display: swap;
	src: url("/assets/figtree-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
	--orange: #f1880c;
	--teal-dark: #00726a;
	--forest: #004c4a;
	--mint: #8acbc1;
	--yellow: #ffdc88;
	--cream: #fef1e7;
	--text: #1a1a1a;
	--muted: #5c5c5c;
	--rule: #ead9c8;

	/* Content is centred in a readable column; the side gutter never drops below 1rem. */
	--gutter: max(1rem, (100% - 44rem) / 2);
}

* {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: 1rem;
}

body {
	margin: 0;
	background: #ffffff;
	color: var(--text);
	font-family: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
	font-size: 1rem;
	line-height: 1.6;
	overflow-wrap: break-word;
}

a {
	color: var(--teal-dark);
	text-underline-offset: 0.18em;
}

a:focus-visible {
	outline: 3px solid var(--orange);
	outline-offset: 2px;
}

/* "Not yet in effect" notice and placeholders. Production deploys refuse placeholders without the notice. */

.draft {
	background: var(--yellow);
	font-size: 0.875rem;
	padding: 0.5rem 1rem;
	text-align: center;
}

.todo {
	background: var(--yellow);
	color: #000000;
	padding: 0 0.2em;
	border-radius: 2px;
	box-decoration-break: clone;
	-webkit-box-decoration-break: clone;
}

/* The logo stands alone, top left, as the brand manual asks (2.6). */

.site-header {
	padding: 1.25rem var(--gutter);
}

.logo {
	display: block;
	height: 1.75rem;
	width: auto;
}

.hero {
	background: var(--cream);
	padding: 2rem var(--gutter);
}

.hero h1 {
	margin: 0;
	font-size: 2rem;
	line-height: 1.1;
	font-weight: 800;
}

.hero h1 small {
	display: block;
	font-size: 0.6em;
	font-weight: 400;
	margin-top: 0.3rem;
}

.meta {
	margin: 1rem 0 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 1.25rem;
	color: var(--muted);
	font-size: 0.9rem;
}

.meta strong {
	color: var(--text);
	font-weight: 600;
}

.document {
	padding: 1.5rem var(--gutter) 3rem;
}

.toc {
	background: var(--cream);
	border-radius: 6px;
	padding: 1rem 1.25rem;
	margin-bottom: 1rem;
	font-size: 0.925rem;
}

.toc h2 {
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--muted);
	margin: 0 0 0.5rem;
}

.toc ol {
	list-style: none;
	margin: 0;
	padding: 0;
}

.toc a {
	display: block;
	padding: 0.3rem 0;
	color: var(--text);
	text-decoration: none;
}

.document section h2 {
	font-size: 1.25rem;
	line-height: 1.3;
	font-weight: 700;
	margin: 2rem 0 0.75rem;
	display: flex;
	gap: 0.5rem;
}

.document section h2 .number {
	color: var(--orange);
}

.document section p,
.document section ul {
	margin: 0 0 1rem;
}

.document section ul {
	padding-left: 1.25rem;
}

.document section li {
	margin-bottom: 0.5rem;
}

.document section li::marker {
	color: var(--orange);
}

.address {
	background: var(--cream);
	border-left: 4px solid var(--orange);
	padding: 0.9rem 1rem;
	border-radius: 0 6px 6px 0;
}

.note {
	border: 1px solid var(--mint);
	background: #eef8f6;
	padding: 0.9rem 1rem;
	border-radius: 6px;
}

/* Tables fit the phone width; the wrapper scrolls only as a last resort. */

.table-wrap {
	overflow-x: auto;
	margin: 0 0 1rem;
	border: 1px solid var(--rule);
	border-radius: 6px;
}

table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.875rem;
	line-height: 1.45;
	hyphens: auto;
}

th,
td {
	text-align: left;
	vertical-align: top;
	padding: 0.6rem;
	border-bottom: 1px solid var(--rule);
}

th {
	background: var(--cream);
	font-weight: 600;
}

tr:last-child td {
	border-bottom: 0;
}

td:first-child {
	font-weight: 600;
}

/* Footer: negative logo on dark teal (brand manual 2.2). */

.site-footer {
	background: var(--forest);
	color: #ffffff;
	padding: 2rem var(--gutter);
	font-size: 0.9rem;
}

.site-footer img {
	display: block;
	height: 1.5rem;
	width: auto;
	margin-bottom: 0.75rem;
}

.site-footer p {
	margin: 0;
}

.site-footer a {
	color: #ffffff;
}

@media (min-width: 48rem) {
	body {
		font-size: 1.0625rem;
		line-height: 1.65;
	}

	.site-header {
		padding-block: 1.75rem;
	}

	.logo {
		height: 2rem;
	}

	.hero {
		padding-block: 3rem;
	}

	.hero h1 {
		font-size: 3rem;
	}

	.toc ol {
		columns: 2;
		column-gap: 2rem;
	}

	.document section h2 {
		font-size: 1.45rem;
		margin-top: 2.5rem;
	}
}

@media print {
	.draft,
	.toc {
		display: none;
	}

	.hero,
	.site-footer {
		background: none;
		color: #000000;
	}

	.site-footer img {
		display: none;
	}
}
