/*
 * Privacy notice of the public pages (tpl/privacy-notice.html): a centred native <dialog> opened with showModal()
 * by js/privacy-notice.js. The content part may scroll on very short screens while the actions row stays visible.
 * Contrast: #202a36 on white 14.6:1, white on #0a3caa 9.0:1, muted #4a5666 on white 7.6:1.
 */
.privacy-notice {
	--privacy-notice-blue: var(--olmun-primary);
	--privacy-notice-dark: #041844;
	--privacy-notice-text: var(--olmun-text);

	width: min(28rem, calc(100vw - 2rem));
	max-height: calc(100dvh - 2rem);
	box-sizing: border-box;
	margin: auto;
	padding: 0;
	overflow: hidden;
	color: var(--privacy-notice-text);
	background: #fff;
	border: 2px solid var(--privacy-notice-dark);
	border-radius: 1.25rem;
	box-shadow: .35rem .35rem 0 var(--privacy-notice-blue);
	font-size: .9375rem;
	line-height: 1.55;
}

.privacy-notice[open] {
	display: flex;
	flex-direction: column;
	animation: privacy-notice-in .4s cubic-bezier(.3, 1.4, .5, 1) both;
}

.privacy-notice::backdrop {
	background: rgba(10, 16, 32, .55);
	-webkit-backdrop-filter: blur(3px) grayscale(.4);
	backdrop-filter: blur(3px) grayscale(.4);
}

.privacy-notice[open]::backdrop {
	animation: privacy-notice-backdrop-in .3s ease-out both;
}

@keyframes privacy-notice-in {
	from { opacity: 0; transform: translateY(1rem) scale(.96) rotate(-1.5deg); }
	to { opacity: 1; transform: none; }
}

@keyframes privacy-notice-backdrop-in {
	from { opacity: 0; }
	to { opacity: 1; }
}

/* Page scroll locked while the dialog is open. */
html.has-privacy-notice,
html.has-privacy-notice body {
	overflow: hidden;
}

.privacy-notice__scroll {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	padding: 1.25rem 1.35rem .25rem;
}

.privacy-notice__head {
	display: flex;
	align-items: center;
	gap: .75rem;
	margin-bottom: .6rem;
}

.privacy-notice__art {
	display: block;
	flex: none;
	width: 3rem;
	height: 3rem;
	margin: 0;
}

.privacy-notice__title {
	margin: 0;
	color: var(--privacy-notice-dark);
	font-size: 1.3rem;
	font-weight: 800;
	line-height: 1.25;
	letter-spacing: -.01em;
}

.privacy-notice__intro {
	margin: 0 0 .75rem;
	line-height: 1.6;
}

/* Markers come from CSS, so adding a line is one plain <li>. */
.privacy-notice__points {
	margin: 0 0 1rem;
	padding: 0;
	list-style: none;
	line-height: 1.55;
}

.privacy-notice__points li {
	position: relative;
	padding: 0 0 .5rem 1.25rem;
}

.privacy-notice__points li::before {
	content: "";
	position: absolute;
	left: .15rem;
	top: .6em;
	width: .45rem;
	height: .45rem;
	border-radius: 50%;
	background: var(--privacy-notice-blue);
}

/* A bullet with two lines: each part starts on its own line. */
.privacy-notice__line {
	display: block;
}

.privacy-notice__contact {
	margin: .1rem 0 .9rem;
	color: #4a5666;
	font-size: .8125rem;
	line-height: 1.5;
}

.privacy-notice__contact a {
	color: var(--privacy-notice-blue);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: .15em;
	overflow-wrap: anywhere;
}

.privacy-notice__contact a:focus-visible {
	outline: 2px solid var(--privacy-notice-blue);
	outline-offset: 2px;
}

.privacy-notice__actions {
	display: flex;
	flex: none;
	align-items: center;
	flex-wrap: wrap;
	gap: .75rem 1.25rem;
	padding: .85rem 1.35rem 1.1rem;
	border-top: 1px solid #e3e7ee;
}

.privacy-notice__button {
	min-height: 2.75rem;
	padding: .4rem 1.5rem;
	color: #fff;
	background: var(--privacy-notice-blue);
	border: 0;
	border-radius: .25rem;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.privacy-notice__button:hover {
	background: var(--olmun-primary-hover);
}

.privacy-notice__link {
	color: var(--privacy-notice-blue);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: .15em;
}

.privacy-notice__link:hover {
	color: var(--privacy-notice-dark);
}

.privacy-notice__button:focus-visible,
.privacy-notice__link:focus-visible {
	outline: 2px solid var(--privacy-notice-blue);
	outline-offset: 2px;
}

@media (max-width: 35.98rem) {
	.privacy-notice {
		font-size: .84375rem;
		line-height: 1.5;
	}

	.privacy-notice__scroll {
		padding: 1rem 1.05rem .15rem;
	}

	.privacy-notice__actions {
		justify-content: center;
		padding: .7rem 1.05rem .9rem;
	}

	.privacy-notice__art {
		width: 2.5rem;
		height: 2.5rem;
	}

	.privacy-notice__title {
		font-size: 1.15rem;
	}

	.privacy-notice__button {
		flex: 1 1 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.privacy-notice[open],
	.privacy-notice[open]::backdrop {
		animation: none;
	}

	.privacy-notice__button {
		transition: none;
	}

	.privacy-notice__button:active {
		transform: none;
	}
}

@media print {
	.privacy-notice {
		display: none !important;
	}

	html.has-privacy-notice,
	html.has-privacy-notice body {
		overflow: visible;
	}
}

.privacy-notice:focus { outline: none; }
