/* Legal documents page and lightbox. */
@keyframes fadeIn {
	0% {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}
.legal-document-page {
	max-width: 1200px;
	margin: 0 auto;
	padding: 40px 20px;
}
.page-title {
	text-align: center;
	font-size: 2.5rem;
	color: var(--blue);
	margin-bottom: 20px;
	font-weight: 600;
}
.page-description {
	text-align: center;
	color: var(--orange);
	margin-bottom: 40px;
	font-size: var(--font-size-base);
	text-transform: uppercase;
}
.doc-list {
	display: flex;
	gap: 24px;
	justify-content: center;
	margin: 40px 0;
	flex-wrap: wrap;
}
.doc-item {
	background: var(--light);
	border-radius: var(--radius-base);
	padding: 20px;
	box-shadow: var(--shadow-sm);
	transition: all var(--duration-fast);
	cursor: pointer;
	text-align: center;
	max-width: 280px;
	flex: 1;
	min-width: 250px;
}
.doc-item:hover {
	box-shadow: var(--shadow-md);
	transform: translateY(-2px);
}
.doc-item img {
	width: 100%;
	height: 300px;
	object-fit: cover;
	border-radius: calc(var(--radius-base) / 2);
	margin-bottom: 15px;
	border: 2px solid var(--primary);
}
.doc-item h3 {
	font-size: var(--font-size-base);
	color: var(--primary);
	font-weight: var(--font-weight-medium);
	transition: color var(--duration-fast);
}
.doc-item:hover h3 {
	color: var(--dark);
}
.lightbox-overlay {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(20, 20, 30, 0.96);
	z-index: 9999;
	animation: fadeIn 0.3s ease;
}
.lightbox-header {
	display: flex;
	align-items: center;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	padding: 20px 30px;
	justify-content: space-between;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
	z-index: 10;
}
.lightbox-overlay.active {
	display: flex;
	align-items: center;
	justify-content: center;
}
.lightbox-title {
	color: var(--white);
	font-size: 1.5rem;
	font-weight: 600;
}
.lightbox-header-controls {
	display: flex;
	gap: 10px;
}
.lightbox-icon-btn {
	background: rgba(0, 123, 255, 0.9);
	color: var(--white);
	border: 0;
	width: 45px;
	height: 45px;
	border-radius: 50%;
	cursor: pointer;
	font-size: 18px;
	transition: all var(--duration-fast);
	display: flex;
	align-items: center;
	justify-content: center;
}
.lightbox-icon-btn:hover {
	background: var(--primary);
	transform: scale(1.1);
}
.lightbox-icon-btn.active {
	background: var(--success);
}
.lightbox-icon-btn.close-btn {
	background: rgba(220, 53, 69, 0.9);
}
.lightbox-icon-btn.close-btn:hover {
	background: var(--danger);
}
.lightbox-container,
.lightbox-image-wrapper {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
}
.lightbox-container {
	max-width: 95%;
	max-height: 95%;
}
.lightbox-image-wrapper {
	overflow: hidden;
	max-height: 85vh;
}
.lightbox-image {
	max-width: 100%;
	max-height: 85vh;
	object-fit: contain;
	transition: transform 0.3s ease;
	cursor: grab;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}
.lightbox-image.zoomed {
	cursor: grabbing;
}
.lightbox-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(0, 123, 255, 0.8);
	color: var(--white);
	border: 0;
	width: 50px;
	height: 50px;
	cursor: pointer;
	font-size: 24px;
	border-radius: 50%;
	transition: all var(--duration-fast);
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: center;
}
.lightbox-nav:hover {
	background: var(--primary);
	transform: translateY(-50%) scale(1.1);
}
.lightbox-nav-prev {
	left: 20px;
}
.lightbox-nav-next {
	right: 20px;
}
.fullscreen-mode .lightbox-image,
.fullscreen-mode .lightbox-image-wrapper {
	max-height: 100vh;
}
@media (max-width: 768px) {
	.doc-list {
		flex-direction: column;
		align-items: center;
	}
	.lightbox-header {
		padding: 15px;
	}
	.lightbox-title {
		font-size: 1.2rem;
	}
	.lightbox-icon-btn,
	.lightbox-nav {
		width: 40px;
		height: 40px;
		font-size: 16px;
	}
	.lightbox-nav {
		font-size: 20px;
	}
	.lightbox-nav-prev {
		left: 10px;
	}
	.lightbox-nav-next {
		right: 10px;
	}
}
