/* Privacy Notice link in the footer and its popup (same look as the paid-ads landing pages) */

.site-footer .btm a.footer-privacy {
	color: inherit;
	font: inherit; /* same size as the copyright line, not the theme's link size */
	text-decoration: underline;
	text-underline-offset: 2px;
}

.site-footer .btm a.footer-privacy:hover,
.site-footer .btm a.footer-privacy:focus-visible { color: #00FBFF; }

.cd-modal {
	position: fixed;
	inset: 0;
	margin: auto; /* the theme's reset removes the browser's own centring */
	height: fit-content;
	width: min(760px, calc(100% - 32px));
	max-height: min(86vh, 900px);
	max-height: min(86dvh, 900px);
	padding: 0;
	border: 1px solid rgba(0, 251, 255, 0.22);
	border-radius: 24px;
	background: #10172B;
	color: rgba(255, 255, 255, 0.72);
	font-family: "Instrument Sans", sans-serif;
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
	overflow: hidden;
}

.cd-modal[open] { display: flex; }
.cd-modal::backdrop { background: rgba(5, 8, 18, 0.72); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
html.cd-modal-open { overflow: hidden; }

.cd-modal__panel { position: relative; display: flex; flex-direction: column; width: 100%; min-height: 0; }

.cd-modal__close {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 1;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 1px solid rgba(0, 251, 255, 0.22);
	border-radius: 50%;
	background: #0A0F1F;
	color: #fff;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
}

.cd-modal__close:hover,
.cd-modal__close:focus-visible { border-color: #00FBFF; color: #00FBFF; }

.cd-modal__body {
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 36px 40px 32px;
	font-size: 15px;
	line-height: 1.7;
	text-align: left;
}

.cd-modal__body h1 { color: #fff; font-size: 30px; font-weight: 700; line-height: 1.2; margin: 0 48px 6px 0; }
.cd-modal__body h2 { color: #fff; font-size: 18px; font-weight: 700; margin: 28px 0 6px; }
.cd-modal__body p,
.cd-modal__body li { margin: 0 0 10px; }
.cd-modal__body ul { padding-left: 20px; list-style: disc; }
.cd-modal__body a { color: #00FBFF; text-decoration: underline; }
.cd-modal__body .updated { font-size: 13px; margin-bottom: 20px; }

@media (max-width: 767px) {
	.cd-modal { width: calc(100% - 24px); border-radius: 20px; }
	.cd-modal__body { padding: 28px 20px 24px; font-size: 14px; }
	.cd-modal__body h1 { font-size: 24px; }
	.cd-modal__close { top: 10px; right: 10px; }
}
