/* ===== EarthWeave — Privacy Policy page ===== */

/* Page title harmony with theme */
.policy-main .page-title {
	font-family: 'Playfair Display', serif;
	font-size: clamp(28px, 4vw, 38px);
	margin: 6px auto 10px;
	width: min(1100px, 92vw);
}

/* Layout */
.sec-policy {
	padding: 56px 0;
	border-top: 1px solid var(--line);
}
.policy-wrap {
	display: grid;
	gap: 16px;
	align-items: start;
	grid-template-columns: 0.34fr 1.66fr;
}
.policy-aside {
	position: sticky;
	top: 84px;
	align-self: start;
}
.policy-toc {
	display: grid;
	gap: 8px;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 16px;
	padding: 12px;
}
.policy-toc a {
	text-decoration: none;
	color: var(--muted);
	border: 1px solid transparent;
	border-radius: 10px;
	padding: 6px 8px;
	transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.policy-toc a:hover {
	color: var(--brand);
	border-color: var(--brand);
	transform: translateY(-1px);
}

.policy-content {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 18px;
	padding: 16px;
}
.policy-content h2 {
	font-size: clamp(18px, 2.4vw, 22px);
	margin: 10px 0 8px;
	font-family: 'Playfair Display', serif;
}
.policy-content p {
	color: var(--muted);
	margin: 0 0 12px;
	line-height: 1.55;
}
.policy-content .updated {
	color: var(--ink);
	margin-top: 14px;
	font-weight: 600;
}

/* Small-screen adjustments */
@media (max-width: 980px) {
	.policy-wrap {
		grid-template-columns: 1fr;
	}
	.policy-aside {
		position: static;
	}
}

/* Inherit reveal animation if the page uses it */
.animate-on-scroll.in-view,
[data-reveal].in-view {
	opacity: 1;
	transform: none;
}
/* Hero spacing so the fixed header doesn't overlap */
.policy-main {
	/* даём запас под фикс-хедер */
	padding-top: clamp(84px, 10vw, 120px);
}

/* Big, elegant page title */
.policy-title {
	font-family: 'Playfair Display', serif;
	font-weight: 700;
	font-size: clamp(34px, 6vw, 56px);
	line-height: 1.06;
	letter-spacing: 0.2px;
	margin: 0 auto 12px;
	width: min(1100px, 92vw);

	/* лёгкий “тёплый” градиент заголовка */
	background: linear-gradient(180deg, #ffffff, #d9c4a3);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

/* тонкая акцентная черта под заголовком */
.policy-title::after {
	content: '';
	display: block;
	width: 72px;
	height: 3px;
	margin-top: 8px;
	border-radius: 999px;
	background: linear-gradient(90deg, var(--brand), rgba(198, 165, 114, 0.2));
}

/* чтобы переход по оглавлению не уезжал под хедер */
.policy-content h2 {
	scroll-margin-top: 96px;
}
