/* Privacy Policy: the Contact and Apply pages' paper, ink and warm greys.
   A contents rail follows the reader; numbered sections organize the policy.
   Motion in assets/js/privacy-policy.js. */
.seamkt-policy {
	--pp-paper: #f1f0ee;
	--pp-line: #dfddd8;
	--pp-ink: #0d0d0c;
	--pp-soft: #57554f;
	--pp-muted: #8a877f;
	--pp-card: rgba(255, 255, 255, 0.6);
	--pp-font: var(--seamkt-font, 'Manrope', system-ui, sans-serif);
	--pp-gutter: clamp(20px, 3.4vw, 60px);
	--pp-max: 1360px;
	--pp-ease: cubic-bezier(0.22, 1, 0.36, 1);
	--pp-dark:
		radial-gradient(ellipse 80% 70% at 0% 0%, rgba(255, 255, 255, 0.1), transparent 60%),
		radial-gradient(ellipse 70% 60% at 100% 100%, rgba(255, 255, 255, 0.05), transparent 60%),
		#0d0d0c;
	position: relative;
	isolation: isolate;
	overflow: clip;
	background:
		radial-gradient(ellipse 50% 40% at 85% 0%, #fff, transparent 70%),
		linear-gradient(180deg, #f8f7f5, var(--pp-paper) 640px);
	color: var(--pp-ink);
	font-family: var(--pp-font);
}

.seamkt-policy *,
.seamkt-policy *::before,
.seamkt-policy *::after {
	box-sizing: border-box;
}

.seamkt-policy [hidden] {
	display: none !important;
}

.seamkt-policy svg {
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.seamkt-policy__sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

/* ---------- Contents rail and the policy ---------- */

.seamkt-policy__layout {
	display: grid;
	grid-template-columns: 320px minmax(0, 840px);
	justify-content: space-between;
	gap: clamp(36px, 5vw, 72px);
	width: 100%;
	max-width: var(--pp-max);
	margin: 0 auto;
	padding: clamp(80px, 10svh, 128px) var(--pp-gutter) clamp(72px, 8vw, 120px);
}

.seamkt-policy__toc {
	position: sticky;
	top: 40px;
	transition: top 500ms var(--pp-ease);
}

.seamkt-policy.has-visible-header .seamkt-policy__toc {
	top: 112px;
}

.seamkt-policy .seamkt-policy__toc-head {
	display: flex;
	gap: 16px;
	align-items: center;
	justify-content: space-between;
	margin: 0 0 18px;
	color: var(--pp-ink);
	font-size: 16px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

/* A hairline rail down the list; the section being read holds a short ink segment on it. */
.seamkt-policy .seamkt-policy__toc-list ol {
	margin: 0;
	padding: 0 0 0 18px;
	border-left: 1px solid var(--pp-line);
	list-style: none;
}

.seamkt-policy .seamkt-policy__toc-list li {
	margin: 0;
	padding: 0;
}

.seamkt-policy .seamkt-policy__toc-list a {
	position: relative;
	display: grid;
	grid-template-columns: 32px minmax(0, 1fr);
	align-items: baseline;
	padding: 9px 0;
	color: var(--pp-muted);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: -0.01em;
	text-decoration: none;
	white-space: nowrap;
	transition: color 300ms ease;
}

.seamkt-policy__toc-list a::before {
	position: absolute;
	top: 6px;
	bottom: 6px;
	left: -19.5px;
	width: 2px;
	border-radius: 2px;
	background: var(--pp-ink);
	transform: scaleY(0);
	transition: transform 500ms var(--pp-ease);
	content: '';
}

.seamkt-policy__toc-num {
	font-size: 13px;
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.04em;
}

.seamkt-policy .seamkt-policy__toc-list a:hover,
.seamkt-policy .seamkt-policy__toc-list a:focus-visible {
	color: var(--pp-ink);
}

.seamkt-policy .seamkt-policy__toc-list a.is-active {
	color: var(--pp-ink);
}

.seamkt-policy__toc-list a.is-active::before {
	transform: scaleY(1);
}

/* The narrow-screen toggle that folds the list away (shown by the script). */
.seamkt-policy .seamkt-policy__toc-toggle {
	display: none;
}

.seamkt-policy__content {
	min-width: 0;
}

/* ---------- Lead: the intro paragraph and the promise ---------- */

.seamkt-policy .seamkt-policy__intro {
	margin: 0 0 clamp(32px, 3.6vw, 48px);
	color: var(--pp-ink);
	font-family: var(--pp-font);
	font-size: clamp(21px, 2vw, 29px);
	font-weight: 500;
	line-height: 1.45;
	letter-spacing: -0.03em;
}

.seamkt-policy .seamkt-policy__promise {
	position: relative;
	isolation: isolate;
	margin: 0 0 clamp(16px, 2vw, 24px);
	padding: clamp(68px, 7vw, 96px) clamp(28px, 3.6vw, 52px) clamp(30px, 3.6vw, 48px);
	overflow: hidden;
	border-radius: clamp(22px, 2.4vw, 32px);
	background: var(--pp-dark);
	color: #f1f0ee;
	font-family: var(--pp-font);
	font-size: clamp(26px, 3vw, 44px);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.045em;
}

.seamkt-policy__promise-soft {
	display: block;
	color: rgba(241, 240, 238, 0.5);
	font-weight: 300;
}

/* "— OUR PROMISE" over the statement. */
.seamkt-policy__promise::before {
	position: absolute;
	top: clamp(28px, 3vw, 40px);
	left: clamp(28px, 3.6vw, 52px);
	padding-left: 38px;
	background: linear-gradient(currentColor, currentColor) 0 50% / 26px 1.5px no-repeat;
	color: rgba(241, 240, 238, 0.5);
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	content: 'Our promise';
}

/* A field of dots, as on the Contact page's globe, fading in from the right. */
.seamkt-policy__promise::after {
	position: absolute;
	inset: 0;
	z-index: -1;
	background: radial-gradient(circle, rgba(255, 255, 255, 0.22) 1px, transparent 1.5px) 0 0 / 14px 14px;
	-webkit-mask-image: radial-gradient(ellipse 55% 90% at 100% 50%, #000, transparent 75%);
	mask-image: radial-gradient(ellipse 55% 90% at 100% 50%, #000, transparent 75%);
	pointer-events: none;
	content: '';
}

/* ---------- Sections ---------- */

.seamkt-policy__section {
	padding: clamp(44px, 5vw, 72px) 0 0;
	scroll-margin-top: 40px;
}

.seamkt-policy__section + .seamkt-policy__section {
	margin-top: clamp(44px, 5vw, 72px);
	border-top: 1px solid var(--pp-line);
}

.seamkt-policy .seamkt-policy__heading {
	display: flex;
	gap: 18px;
	align-items: center;
	margin: 0 0 clamp(18px, 2vw, 26px);
	padding: 0;
	color: var(--pp-ink);
	font-family: var(--pp-font);
	font-size: clamp(25px, 2.5vw, 38px);
	font-weight: 700;
	line-height: 1.12;
	letter-spacing: -0.045em;
	text-transform: none;
	scroll-margin-top: 40px;
}

.seamkt-policy.has-visible-header .seamkt-policy__heading {
	scroll-margin-top: 112px;
}

/* Focus moves to a heading when the contents list jumps to it; it needs no ring. */
.seamkt-policy .seamkt-policy__heading:focus {
	outline: none;
}

/* The section number in a ring, filled with ink while the section is read. */
.seamkt-policy__num {
	display: grid;
	flex: none;
	place-items: center;
	width: 42px;
	height: 42px;
	border: 1px solid var(--pp-line);
	border-radius: 50%;
	background: var(--pp-card);
	color: var(--pp-ink);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.02em;
	font-variant-numeric: tabular-nums;
	transition: background-color 500ms var(--pp-ease), border-color 500ms var(--pp-ease), color 500ms var(--pp-ease);
}

.seamkt-policy__section.is-current .seamkt-policy__num {
	border-color: var(--pp-ink);
	background: var(--pp-ink);
	color: var(--pp-paper);
}

/* The body lines up under the heading's words, clear of the ring. */
.seamkt-policy__body {
	padding-left: 60px;
}

.seamkt-policy .seamkt-policy__body p,
.seamkt-policy .seamkt-policy__body li {
	color: var(--pp-soft);
	font-family: var(--pp-font);
	font-size: clamp(16px, 1.1vw, 17.5px);
	font-weight: 500;
	line-height: 1.75;
}

.seamkt-policy .seamkt-policy__body p {
	max-width: 68ch;
	margin: 0 0 18px;
}

.seamkt-policy .seamkt-policy__body > :last-child {
	margin-bottom: 0;
}

.seamkt-policy__body strong {
	color: var(--pp-ink);
	font-weight: 700;
}

.seamkt-policy .seamkt-policy__lead a,
.seamkt-policy .seamkt-policy__body a {
	color: var(--pp-ink);
	text-decoration: underline;
	text-decoration-color: rgba(13, 13, 12, 0.28);
	text-decoration-thickness: 1px;
	text-underline-offset: 4px;
	transition: text-decoration-color 200ms ease;
}

.seamkt-policy .seamkt-policy__lead a:hover,
.seamkt-policy .seamkt-policy__lead a:focus-visible,
.seamkt-policy .seamkt-policy__body a:hover,
.seamkt-policy .seamkt-policy__body a:focus-visible {
	color: var(--pp-ink);
	text-decoration-color: currentColor;
}

/* Lists read as the paragraphs around them: one column, the body text's size and spacing. */
.seamkt-policy .seamkt-policy__body ul {
	max-width: 68ch;
	margin: 0 0 18px;
	padding: 0;
	list-style: none;
}

.seamkt-policy .seamkt-policy__body li {
	position: relative;
	margin: 0 0 12px;
	padding: 0 0 0 30px;
}

.seamkt-policy .seamkt-policy__body li:last-child {
	margin-bottom: 0;
}

/* A white tick in a black circle hangs before each plain item. */
.seamkt-policy__body li::before {
	position: absolute;
	top: calc(0.875em - 9px);
	left: 0;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--pp-ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f1f0ee' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 12.5 3.2 3.2L17 9'/%3E%3C/svg%3E") center / 13px no-repeat;
	content: '';
}

/* "Label: text" lists: each item a paragraph, led by its label in ink. */
.seamkt-policy .seamkt-policy__body .seamkt-policy__prose li {
	margin-bottom: 18px;
	padding: 0;
}

.seamkt-policy .seamkt-policy__body .seamkt-policy__prose li:last-child {
	margin-bottom: 0;
}

.seamkt-policy__prose li::before {
	display: none;
}

/* A paragraph that is one bold sentence: a statement in a dark pill. */
.seamkt-policy .seamkt-policy__body .seamkt-policy__note {
	display: inline-flex;
	gap: 12px;
	align-items: center;
	max-width: 100%;
	margin-top: 6px;
	padding: 12px 22px 12px 14px;
	border-radius: 999px;
	background: var(--pp-ink);
	line-height: 1.4;
}

.seamkt-policy__note::before {
	flex: none;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--pp-paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d0d0c' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2.75 4.75 5.7v5.45c0 4.8 3.05 8.35 7.25 10.1 4.2-1.75 7.25-5.3 7.25-10.1V5.7L12 2.75Z'/%3E%3Cpath d='m8.9 12.2 2.1 2.1 4.4-4.5'/%3E%3C/svg%3E") center / 20px no-repeat;
	content: '';
}

.seamkt-policy .seamkt-policy__note strong {
	color: var(--pp-paper);
	font-size: 15px;
	font-weight: 600;
}

.seamkt-policy a:focus-visible,
.seamkt-policy button:focus-visible {
	outline: 2px solid var(--pp-ink);
	outline-offset: 3px;
}

/* ---------- Entrance (only once the script has run) ---------- */

.seamkt-policy.is-enhanced [data-policy-reveal] {
	opacity: 0;
	transform: translateY(22px);
	transition: opacity 900ms var(--pp-ease), transform 1100ms var(--pp-ease);
}

.seamkt-policy.is-enhanced [data-policy-reveal].is-in {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	.seamkt-policy *,
	.seamkt-policy *::before,
	.seamkt-policy *::after {
		transition-duration: 1ms !important;
		transition-delay: 0ms !important;
	}
}

/* ---------- Narrow screens ---------- */

@media (max-width: 960px) {
	.seamkt-policy__layout {
		grid-template-columns: minmax(0, 1fr);
		gap: 40px;
	}

	.seamkt-policy__toc {
		position: static;
		padding: 6px 20px;
		border: 1px solid var(--pp-line);
		border-radius: 20px;
		background: var(--pp-card);
	}

	.seamkt-policy .seamkt-policy__toc-head {
		margin: 16px 0;
	}

	.seamkt-policy__toc.is-collapsible .seamkt-policy__toc-head {
		display: none;
	}

	.seamkt-policy__toc.is-collapsible .seamkt-policy__toc-toggle {
		display: grid;
		grid-template-columns: 1fr 20px;
		gap: 14px;
		align-items: center;
		width: 100%;
		margin: 0;
		padding: 14px 0;
		border: 0;
		background: none;
		color: var(--pp-ink);
		font-family: var(--pp-font);
		font-size: 16px;
		font-weight: 700;
		line-height: 1;
		letter-spacing: 0.2em;
		text-align: left;
		text-transform: uppercase;
		cursor: pointer;
	}

	.seamkt-policy__toc-toggle svg {
		width: 20px;
		height: 20px;
		transition: transform 500ms var(--pp-ease);
	}

	.seamkt-policy__toc.is-open .seamkt-policy__toc-toggle svg {
		transform: rotate(180deg);
	}

	.seamkt-policy__toc.is-collapsible:not(.is-open) .seamkt-policy__toc-list {
		display: none;
	}

	.seamkt-policy .seamkt-policy__toc-list ol {
		margin: 4px 0 14px;
	}

	.seamkt-policy__section,
	.seamkt-policy .seamkt-policy__heading,
	.seamkt-policy.has-visible-header .seamkt-policy__heading {
		scroll-margin-top: 24px;
	}
}

@media (max-width: 640px) {
	.seamkt-policy__layout {
		padding: 64px 20px 72px;
	}

	.seamkt-policy__toc {
		padding-right: 12px;
		padding-left: 12px;
	}

	.seamkt-policy .seamkt-policy__toc-list a {
		grid-template-columns: 24px minmax(0, 1fr);
		font-size: clamp(11px, 3.5vw, 14px);
	}

	.seamkt-policy .seamkt-policy__heading {
		gap: 14px;
		align-items: flex-start;
	}

	.seamkt-policy__num {
		width: 36px;
		height: 36px;
		font-size: 12px;
	}

	.seamkt-policy__body {
		padding-left: 0;
	}

	.seamkt-policy .seamkt-policy__body .seamkt-policy__note {
		border-radius: 20px;
	}
}

/* ---------- Print: the policy alone, in black on white ---------- */

@media print {
	.seamkt-scroll-header,
	.seamkt-policy__sidebar,
	.seamkt-footer {
		display: none !important;
	}

	.seamkt-policy {
		background: #fff;
	}

	.seamkt-policy__layout {
		display: block;
		padding: 0 0 24px;
	}

	.seamkt-policy .seamkt-policy__promise {
		padding: 16px 0;
		background: none;
		color: var(--pp-ink);
		font-size: 22px;
	}

	.seamkt-policy__promise::before,
	.seamkt-policy__promise::after {
		display: none;
	}

	.seamkt-policy.is-enhanced [data-policy-reveal] {
		opacity: 1;
		transform: none;
	}

	.seamkt-policy__section {
		break-inside: avoid-page;
	}

	.seamkt-policy .seamkt-policy__heading {
		break-after: avoid;
	}

	.seamkt-policy__body {
		padding-left: 0;
	}
}
