/*
 * Sipoon Wolf theme styles for the privacy policy page (page-templates/privacy.php).
 *
 * inc/assets.php loads this file only on these pages, after main.css. The tokens are in main.css.
 */

/* Privacy policy page -------------------------------------------------- */

.page-header__updated {
	color: var(--wolf-muted);
	font-size: 14px;
}

.privacy-summary {
	padding-bottom: clamp(48px, 6vw, 88px);
}

.privacy-summary__inner {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
	gap: clamp(20px, 2.4vw, 36px);
	padding: clamp(24px, 3vw, 44px);
	background: var(--wolf-gold);
	color: var(--wolf-ink);
}

.privacy-summary__title {
	font-weight: 900;
	font-size: clamp(28px, 3vw, 44px);
	line-height: 0.95;
	text-transform: uppercase;
}

.privacy-summary__item {
	font-size: 16px;
	line-height: 1.55;
}

.privacy-summary__item-title {
	display: block;
	margin-bottom: 6px;
	font-family: var(--wolf-font-display);
	font-weight: 900;
	font-size: 15px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.privacy {
	padding-bottom: clamp(72px, 9vw, 136px);
}

.privacy__grid {
	display: grid;
	grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
	gap: clamp(32px, 5vw, 96px);
	align-items: start;
}

.privacy__grid--single {
	grid-template-columns: minmax(0, 1fr);
}

.privacy__toc {
	position: sticky;
	top: 24px;
}

.privacy__toc-title {
	margin-bottom: 8px;
	color: var(--wolf-muted);
	font-family: var(--wolf-font-display);
	font-weight: 800;
	font-size: 13px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

.privacy__toc-list {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.privacy__toc-link {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 40px;
	margin-inline: -12px;
	padding: 6px 12px;
	border-radius: var(--wolf-radius);
	color: var(--wolf-ink);
	font-size: 15px;
	line-height: 1.3;
	text-decoration: none;
	transition: background-color 0.15s var(--wolf-ease);
}

.privacy__toc-link:hover {
	background: var(--wolf-paper-2);
}

.privacy__toc-number,
.privacy__number {
	flex: 0 0 auto;
	color: var(--wolf-gold-dark);
	font-family: var(--wolf-font-display);
	font-weight: 900;
}

.privacy__toc-number {
	width: 20px;
	font-size: 12px;
}

.privacy__body {
	max-width: 820px;
	color: var(--wolf-ink-2);
	font-size: 17px;
}

.privacy__body > * {
	max-width: none;
	margin-bottom: 18px;
}

.privacy__body h2 {
	display: flex;
	align-items: baseline;
	gap: 14px;
	margin-top: clamp(28px, 3vw, 40px);
	padding-top: clamp(28px, 3vw, 40px);
	border-top: 1px solid var(--wolf-line);
	color: var(--wolf-ink);
	font-size: clamp(22px, 2vw, 30px);
	scroll-margin-top: 24px;
}

.privacy__body h2:first-child {
	margin-top: 0;
}

.privacy__number {
	font-size: 15px;
}

.privacy__body h3,
.privacy__body h4,
.privacy__body strong {
	color: var(--wolf-ink);
}

.privacy__body a {
	font-weight: 600;
}

/* The lists have small yellow squares. */
.privacy__body ul {
	padding-left: 0;
	list-style: none;
}

.privacy__body ul > li {
	position: relative;
	padding-left: 20px;
}

.privacy__body ul > li + li {
	margin-top: 8px;
}

.privacy__body ul > li::before {
	content: "";
	position: absolute;
	top: 0.6em;
	left: 0;
	width: 8px;
	height: 8px;
	background: var(--wolf-gold);
}

/* A quote is a note box. */
.privacy__body blockquote {
	padding: 18px 20px;
	border-left: 6px solid var(--wolf-gold);
	background: var(--wolf-paper-2);
	color: var(--wolf-ink);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.6;
}

.privacy__body blockquote > :last-child {
	margin-bottom: 0;
}

.privacy__body table {
	font-size: 16px;
	line-height: 1.55;
}

.privacy__body table:has(thead) {
	border-top: 0;
}

.privacy__body th,
.privacy__body td {
	padding: 14px 16px;
}

.privacy__body thead th {
	padding-block: 12px;
	border-bottom: 2px solid var(--wolf-ink);
	color: var(--wolf-ink);
	font-family: var(--wolf-font-display);
	font-weight: 800;
	font-size: 12px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

/* The first column is the name of the row. */
.privacy__body tbody th,
.privacy__body tbody td:first-child {
	width: 32%;
	color: var(--wolf-ink);
	font-weight: 700;
}

/* The mobile header stays at the top of the screen. The sections stop below it. */
@media (max-width: 1239.98px) {
	.privacy__toc {
		top: 96px;
	}

	.privacy__body h2 {
		scroll-margin-top: 96px;
	}
}

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

	.privacy__toc {
		position: static;
	}
}

/* On a narrow screen, each table row is a block: the name of the row and below it the text. */
@media (max-width: 640px) {
	.privacy__body thead {
		display: none;
	}

	.privacy__body table:has(thead) {
		border-top: 2px solid var(--wolf-ink);
	}

	.privacy__body tr,
	.privacy__body th,
	.privacy__body td {
		display: block;
		width: auto;
	}

	.privacy__body tr {
		border-bottom: 1px solid var(--wolf-line);
	}

	.privacy__body tbody th,
	.privacy__body tbody td {
		padding: 0 0 14px;
		border-bottom: 0;
	}

	.privacy__body tbody th,
	.privacy__body tbody td:first-child {
		width: auto;
		padding-top: 14px;
		padding-bottom: 4px;
	}
}
