/* Shared cookie controls for marketing and documentation layouts. */
.cookie-consent[hidden] {
	display: none !important;
}

.cookie-consent {
	position: fixed;
	inset: 0;
	z-index: 10000;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	padding: clamp(1rem, 3vw, 2rem);
	pointer-events: none;
	background: linear-gradient(
		180deg,
		transparent 40%,
		rgba(5, 4, 3, 0.78) 100%
	);
}

.cookie-consent__panel {
	width: min(100%, 720px);
	padding: clamp(1.25rem, 3vw, 2rem);
	color: #f2f0ec;
	background:
		linear-gradient(rgba(15, 96, 128, 0.06) 1px, transparent 1px),
		linear-gradient(90deg, rgba(15, 96, 128, 0.06) 1px, transparent 1px),
		linear-gradient(145deg, #1a1815 0%, #0d0c0a 100%);
	background-size:
		24px 24px,
		24px 24px,
		auto;
	border: 1px solid rgba(26, 156, 196, 0.62);
	border-top: 3px solid #e86010;
	border-radius: 8px;
	box-shadow:
		0 24px 70px rgba(0, 0, 0, 0.65),
		inset 0 0 0 1px rgba(232, 96, 16, 0.1);
	font-family: "Oswald", sans-serif;
	pointer-events: auto;
	opacity: 0;
	transform: translateY(1.25rem);
	transition:
		opacity 180ms ease,
		transform 180ms ease;
}

.cookie-consent.is-visible .cookie-consent__panel {
	opacity: 1;
	transform: translateY(0);
}

.cookie-consent__kicker {
	margin: 0 0 0.45rem;
	color: #69d0f2;
	font-family: "Share Tech Mono", monospace;
	font-size: 0.78rem;
	letter-spacing: 0.16em;
}

.cookie-consent__title {
	margin: 0 0 0.75rem;
	color: #f2f0ec;
	font-family: "Oswald", sans-serif;
	font-size: clamp(1.55rem, 4vw, 2rem);
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: 0.03em;
	text-transform: uppercase;
}

.cookie-consent__description {
	margin: 0 0 0.65rem;
	color: #c8c6c0;
	font-size: 1rem;
	line-height: 1.55;
}

.cookie-consent__policy {
	display: inline-block;
	color: #ff8a3d;
	font-size: 0.95rem;
	text-decoration: underline;
	text-underline-offset: 0.18em;
}

.cookie-consent__policy:hover {
	color: #ffad75;
}

.cookie-consent__actions {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.75rem;
	margin-top: 1.25rem;
}

.cookie-consent__button {
	min-height: 46px;
	padding: 0.7rem 1rem;
	border: 1px solid transparent;
	border-radius: 6px;
	font-family: "Oswald", sans-serif;
	font-size: 0.95rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	line-height: 1.2;
	text-transform: uppercase;
	cursor: pointer;
	transition:
		color 160ms ease,
		background 160ms ease,
		border-color 160ms ease,
		transform 160ms ease;
}

.cookie-consent__button:hover {
	transform: translateY(-1px);
}

.cookie-consent__button--necessary {
	color: #f2f0ec;
	background: rgba(15, 96, 128, 0.14);
	border-color: #1a9cc4;
}

.cookie-consent__button--necessary:hover {
	background: rgba(26, 156, 196, 0.24);
}

.cookie-consent__button--accept {
	color: #0d0c0a;
	background: #e86010;
	border-color: #ff7a22;
}

.cookie-consent__button--accept:hover {
	background: #ff7a22;
}

.cookie-consent__button:focus-visible,
.cookie-preferences-link:focus-visible {
	outline: 2px solid #69d0f2;
	outline-offset: 3px;
}

.cookie-preferences-link {
	display: inline;
	margin: 0;
	padding: 0;
	color: inherit;
	background: none;
	border: 0;
	font: inherit;
	text-decoration: underline;
	text-underline-offset: 0.15em;
	cursor: pointer;
}

.cookie-preferences-link:hover {
	color: #ff7a22;
}

.footer-section .cookie-preferences-link {
	display: block;
	margin-bottom: 0.5rem;
	color: #f2f0ec;
	font-family: "Oswald", sans-serif;
	font-size: 1rem;
	text-decoration: none;
}

.footer-section .cookie-preferences-link:hover {
	color: #e86010;
}

@media (max-width: 540px) {
	.cookie-consent {
		padding: 0.75rem;
	}

	.cookie-consent__actions {
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	.cookie-consent__panel,
	.cookie-consent__button {
		transition: none;
	}
}
