/* Verge Age & Research-Use Gate — styles */

.vag-overlay {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(74, 84, 105, 0.72);
	backdrop-filter: blur(2px);
	box-sizing: border-box;
}

.vag-overlay.vag-visible {
	display: flex;
}

/* Lock background scroll while gate is open */
body.vag-locked {
	overflow: hidden;
}

.vag-modal {
	width: 100%;
	max-width: 520px;
	background: #faf3e6;
	border-radius: 18px;
	padding: 44px 48px 36px;
	box-sizing: border-box;
	text-align: center;
	box-shadow: 0 25px 60px rgba(20, 25, 40, 0.35);
	max-height: calc(100vh - 40px);
	overflow-y: auto;
	animation: vag-pop 0.25s ease-out;
}

@keyframes vag-pop {
	from {
		opacity: 0;
		transform: translateY(8px) scale(0.98);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

.vag-eyebrow {
	margin: 0 0 6px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.14em;
	color: #8a95a8;
	text-transform: uppercase;
	display: none; /* eyebrow lives on the page behind the gate, hidden here by default */
}

.vag-heading {
	margin: 0 0 18px;
	font-family: Georgia, "Times New Roman", Times, serif;
	font-size: 30px;
	font-weight: 400;
	color: #1c2b45;
	line-height: 1.2;
}

.vag-description {
	margin: 0 0 26px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 15px;
	line-height: 1.55;
	color: #55606f;
}

.vag-checkbox-row {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	text-align: left;
	margin: 0 0 16px;
	cursor: pointer;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 14.5px;
	line-height: 1.5;
	color: #3b4453;
}

.vag-check {
	appearance: none;
	-webkit-appearance: none;
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	margin-top: 2px;
	border: 1.5px solid #a7afbd;
	border-radius: 4px;
	background: #ffffff;
	position: relative;
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease;
}

.vag-check:checked {
	background: #1c2b45;
	border-color: #1c2b45;
}

.vag-check:checked::after {
	content: "";
	position: absolute;
	left: 5px;
	top: 1px;
	width: 5px;
	height: 10px;
	border: solid #ffffff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.vag-check:focus-visible {
	outline: 2px solid #1c2b45;
	outline-offset: 2px;
}

.vag-button {
	width: 100%;
	margin-top: 8px;
	padding: 14px 20px;
	border: none;
	border-radius: 999px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 15.5px;
	font-weight: 600;
	color: #ffffff;
	background: #cbbfa4;
	cursor: not-allowed;
	transition: background 0.2s ease, transform 0.1s ease;
}

.vag-button:not(:disabled) {
	background: #1c2b45;
	cursor: pointer;
}

.vag-button:not(:disabled):hover {
	background: #14203a;
}

.vag-button:not(:disabled):active {
	transform: translateY(1px);
}

.vag-footer-text {
	margin: 22px 0 10px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 12px;
	line-height: 1.6;
	color: #8a95a8;
}

.vag-disclaimer-link {
	display: inline-block;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 12.5px;
	color: #3b4453;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.vag-disclaimer-link--static {
	cursor: default;
	color: #8a95a8;
}

/* ----------------------------- Responsive ----------------------------- */
@media (max-width: 600px) {
	.vag-modal {
		padding: 32px 24px 26px;
		border-radius: 14px;
	}
	.vag-heading {
		font-size: 24px;
	}
	.vag-description {
		font-size: 14px;
	}
	.vag-checkbox-row {
		font-size: 13.5px;
	}
	.vag-button {
		font-size: 15px;
		padding: 13px 18px;
	}
}

@media (max-width: 380px) {
	.vag-modal {
		padding: 26px 18px 20px;
	}
	.vag-heading {
		font-size: 21px;
	}
}
