/* Cookie / privacy notice. Mirrors the site's frosted-glass bubbles. */
.kasia-cookie {
	position: fixed;
	left: 20px;
	bottom: 20px;
	z-index: 99990;
	box-sizing: border-box;
	width: min(380px, calc(100vw - 40px));
	padding: 22px 24px 18px;
	border-radius: 28px;
	background: rgba(255, 255, 255, 0.82);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	border: 1px solid rgba(0, 0, 0, 0.08);
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
	color: #1a1a1a;
	font-family: "DMSans", sans-serif;
	opacity: 0;
	transform: translateY(12px);
	transition: opacity 0.25s ease, transform 0.25s ease;
}
.kasia-cookie[hidden] { display: none; }
.kasia-cookie.is-visible { opacity: 1; transform: none; }
.kasia-cookie p { margin: 0; }
.kasia-cookie-title { font-weight: 700; font-size: 1rem; margin-bottom: 6px !important; }
.kasia-cookie-text,
.kasia-cookie-context { font-size: 0.88rem; line-height: 1.5; color: #252e34; }
.kasia-cookie-context { margin-top: 6px !important; font-weight: 600; }
.kasia-cookie-context[hidden] { display: none; }
.kasia-cookie-actions { display: flex; gap: 10px; margin-top: 16px; }
.kasia-cookie-btn {
	flex: 1;
	padding: 11px 14px;
	border-radius: 999px;
	border: 1px solid #1a1a1a;
	background: #ffffff;
	color: #1a1a1a;
	font: 700 0.88rem "DMSans", sans-serif;
	cursor: pointer;
	transition: background-color 0.15s ease;
}
.kasia-cookie-btn:hover { background: #ebebeb; }
.kasia-cookie-btn--primary { background: #1a1a1a; color: #ffffff; }
.kasia-cookie-btn--primary:hover { background: #3a3a3a; }
.kasia-cookie-btn:focus-visible { outline: 2px solid #1a1a1a; outline-offset: 2px; }
.kasia-cookie-links { margin-top: 12px !important; font-size: 0.78rem; color: #5a5a5a; text-align: center; }
.kasia-cookie-links a { color: inherit; text-decoration: underline; }
@media (max-width: 520px) {
	.kasia-cookie { left: 12px; right: 12px; bottom: 12px; width: auto; border-radius: 24px; }
}
@media (prefers-reduced-motion: reduce) {
	.kasia-cookie { transition: none; }
}

/* Consent-gated third-party embeds */
.kasia-embed { position: relative; }
.kasia-embed iframe[data-kasia-src] { display: none; }
.kasia-embed-gate {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 14px;
	min-height: 260px;
	padding: 32px;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 24px;
	background: rgba(255, 255, 255, 0.55);
	text-align: center;
	font-family: "DMSans", sans-serif;
	color: #252e34;
}
.kasia-embed-gate[hidden] { display: none; }
.kasia-embed-gate p { margin: 0; max-width: 420px; font-size: 0.92rem; line-height: 1.5; }
.kasia-embed-accept {
	padding: 11px 24px;
	border-radius: 999px;
	border: 1px solid #1a1a1a;
	background: #ffffff;
	color: #1a1a1a;
	font: 700 0.88rem "DMSans", sans-serif;
	cursor: pointer;
}
.kasia-embed-accept:hover { background: #ebebeb; }

/* Footer legal row */
.kasia-footer-legal { flex-basis: 100%; text-align: center; }
.kasia-footer-legal a { color: inherit; text-decoration: none; margin: 0 10px; }
.kasia-footer-legal a:hover { text-decoration: underline; }

/* Legal pages (Privacy / Cookie policy): same look as the About card */
.kasia-legal {
	background: rgba(255, 255, 255, 0.55);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 32px;
	padding: 48px;
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
	font-family: "DMSans", sans-serif;
	color: #1a1a1a;
	font-size: 16px;
	line-height: 1.7;
	text-align: left;
}
.kasia-legal h2 {
	margin: 40px 0 10px;
	font-size: 21px;
	font-weight: 700;
	line-height: 1.3;
	color: #0d141a;
}
.kasia-legal h2:first-of-type { margin-top: 8px; }
.kasia-legal h3 { margin: 22px 0 6px; font-size: 16px; font-weight: 700; color: #0d141a; }
.kasia-legal p { margin: 0 0 14px; }
.kasia-legal ul { margin: 0 0 16px; padding-left: 22px; }
.kasia-legal li { margin-bottom: 6px; }
.kasia-legal a { color: #1a1a1a; text-decoration: underline; text-decoration-color: rgba(0, 0, 0, 0.35); }
.kasia-legal a:hover { text-decoration-color: #1a1a1a; }
.kasia-legal-updated { margin: 0 0 24px; font-size: 13px; color: #5a5a5a; }
.kasia-legal-table-wrap { overflow-x: auto; margin: 0 0 18px; }
.kasia-legal table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.5; }
.kasia-legal th,
.kasia-legal td { padding: 10px 12px; border-bottom: 1px solid rgba(0, 0, 0, 0.1); text-align: left; vertical-align: top; }
.kasia-legal th { font-weight: 700; color: #0d141a; }
/* Details still to be filled in by hand */
.kasia-fill {
	background: #fff200;
	color: #1a1a1a;
	padding: 2px 6px;
	border-radius: 4px;
	font-weight: 700;
}
.kasia-legal-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.kasia-legal-btn {
	display: inline-block;
	background: #ffffff;
	color: #1a1a1a;
	border: 1px solid #1a1a1a;
	padding: 13px 26px;
	border-radius: 999px;
	font: 700 14px "DMSans", sans-serif;
	text-decoration: none !important;
	cursor: pointer;
	transition: background-color 0.15s ease;
}
.kasia-legal-btn:hover { background: #ebebeb; }
@media (max-width: 640px) {
	.kasia-legal { padding: 28px 22px; border-radius: 24px; }
}

/* Mobile: compact cookie notice and stacked legal tables */
@media (max-width: 640px) {
	.kasia-cookie { padding: 16px 18px 12px; }
	.kasia-cookie-title { margin-bottom: 4px !important; }
	.kasia-cookie-actions { margin-top: 12px; }
	.kasia-cookie-links { margin-top: 8px !important; }

	.kasia-legal-table-wrap { overflow: visible; }
	.kasia-legal table,
	.kasia-legal tbody,
	.kasia-legal tr,
	.kasia-legal td { display: block; width: 100%; box-sizing: border-box; }
	.kasia-legal thead {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
	}
	.kasia-legal tr {
		margin-bottom: 14px;
		padding: 6px 14px;
		border: 1px solid rgba(0, 0, 0, 0.1);
		border-radius: 16px;
		background: rgba(255, 255, 255, 0.5);
	}
	.kasia-legal td { padding: 8px 0; border: 0; border-bottom: 1px solid rgba(0, 0, 0, 0.06); }
	.kasia-legal td:last-child { border-bottom: 0; }
	.kasia-legal td::before {
		content: attr(data-label);
		display: block;
		margin-bottom: 2px;
		font-size: 11px;
		font-weight: 700;
		letter-spacing: 0.05em;
		text-transform: uppercase;
		color: #5a5a5a;
	}
}
