/* Legal Pages Shared Styling */

/* Legal Hero Section */
.legal__hero {
	background: linear-gradient(135deg, #8b0000 0%, #8b0000 50%, #8b0000 100%);
	padding: 0rem 0 4rem;
	text-align: center;
	color: white;
	position: relative;
	overflow: hidden;
}

.legal__hero::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: url("../assets/header-bg.png") center/cover;
	opacity: 0.1;
	z-index: 1;
}

.legal__hero__content {
	position: relative;
	z-index: 2;
	max-width: 800px;
	margin: 0 auto;
}

.legal__icon {
	font-size: 4rem;
	margin-bottom: 1rem;
	color: #8b0000;
	display: block;
}

.legal__title {
	font-size: 3.5rem;
	font-weight: 800;
	margin-bottom: 1rem;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
	line-height: 1.2;
}

.legal__subtitle {
	font-size: 1.25rem;
	opacity: 0.9;
	margin-bottom: 2rem;
	line-height: 1.6;
	max-width: 600px;
	margin-left: auto;
	margin-right: auto;
}

.legal__meta {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 1rem;
	font-size: 1rem;
	opacity: 0.8;
}

.legal__meta i {
	color: #8b0000;
}

/* Legal Content Section */
.legal__content {
	padding: 4rem 0;
	background: linear-gradient(to bottom, #f8fafc 0%, #f1f5f9 100%);
	min-height: 100vh;
}

.legal__document {
	max-width: 900px;
	margin: 0 auto;
	background: white;
	border-radius: 16px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
	overflow: hidden;
	border: 1px solid #e2e8f0;
}

/* Legal Sections */
.legal__section {
	padding: 3rem;
	border-bottom: 1px solid #f1f5f9;
	position: relative;
}

.legal__section:last-child {
	border-bottom: none;
}

.legal__section::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 4px;
	background: linear-gradient(
		135deg,
		var(--primary-color),
		var(--primary-color-dark)
	);
	opacity: 0;
	transition: opacity 0.3s ease;
}

.legal__section:hover::before {
	opacity: 1;
}

/* Typography */
.legal__section h2 {
	color: var(--text-dark);
	font-size: 2rem;
	font-weight: 700;
	margin-bottom: 1.5rem;
	line-height: 1.3;
	position: relative;
	padding-bottom: 0.75rem;
}

.legal__section h2::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 0;
	width: 60px;
	height: 3px;
	background: linear-gradient(
		135deg,
		var(--primary-color),
		var(--primary-color-dark)
	);
	border-radius: 2px;
}

.legal__section h3 {
	color: var(--text-dark);
	font-size: 1.5rem;
	font-weight: 600;
	margin: 2rem 0 1rem;
	line-height: 1.4;
}

.legal__section p {
	color: var(--text-light);
	font-size: 1.1rem;
	line-height: 1.8;
	margin-bottom: 1.25rem;
	text-align: justify;
}

.legal__section p:last-child {
	margin-bottom: 0;
}

/* Lists */
.legal__section ul {
	margin: 1.5rem 0;
	padding-left: 0;
}

.legal__section li {
	color: var(--text-light);
	font-size: 1.1rem;
	line-height: 1.7;
	margin-bottom: 0.75rem;
	padding-left: 2rem;
	position: relative;
}

.legal__section li::before {
	content: "✓";
	position: absolute;
	left: 0;
	top: 0;
	color: var(--primary-color);
	font-weight: bold;
	font-size: 1.2rem;
}

.legal__section li strong {
	color: var(--text-dark);
	font-weight: 600;
}

/* Links */
.legal__section a {
	color: var(--primary-color);
	text-decoration: none;
	font-weight: 500;
	transition: all 0.3s ease;
	position: relative;
}

.legal__section a:hover {
	color: var(--primary-color-dark);
	text-decoration: underline;
}

/* Contact Info Block */
.contact__info {
	background: linear-gradient(135deg, #f8fafc, #e2e8f0);
	padding: 2rem;
	border-radius: 12px;
	border-left: 4px solid var(--primary-color);
	margin: 1.5rem 0;
}

.contact__info p {
	margin-bottom: 0.5rem;
	color: var(--text-dark);
}

.contact__info a {
	color: var(--primary-color);
	font-weight: 600;
}

/* Table of Contents (if needed) */
.legal__toc {
	background: #f8fafc;
	padding: 2rem;
	border-radius: 8px;
	margin-bottom: 2rem;
	border: 1px solid #e2e8f0;
}

.legal__toc h3 {
	color: var(--text-dark);
	margin-bottom: 1rem;
	font-size: 1.25rem;
}

.legal__toc ul {
	margin: 0;
	padding: 0;
}

.legal__toc li {
	list-style: none;
	padding: 0.5rem 0;
	border-bottom: 1px solid #e2e8f0;
}

.legal__toc li:last-child {
	border-bottom: none;
}

.legal__toc a {
	color: var(--text-light);
	text-decoration: none;
	transition: color 0.3s ease;
}

.legal__toc a:hover {
	color: var(--primary-color);
}

/* Highlighted Boxes */
.legal__highlight {
	background: linear-gradient(135deg, #8b0000, #8b0000);
	border: 1px solid #8b0000;
	border-radius: 8px;
	padding: 1.5rem;
	margin: 1.5rem 0;
	position: relative;
}

.legal__highlight::before {
	content: "⚠️";
	position: absolute;
	top: -10px;
	left: 20px;
	background: white;
	padding: 0 8px;
	font-size: 1.2rem;
}

.legal__highlight p {
	margin-bottom: 0;
	color: #92400e;
	font-weight: 500;
}

/* Scroll Progress Indicator */
.scroll__progress {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 4px;
	background: rgba(59, 130, 246, 0.1);
	z-index: 1000;
}

.scroll__progress__bar {
	height: 100%;
	background: linear-gradient(
		90deg,
		var(--primary-color),
		var(--primary-color-dark)
	);
	width: 0%;
	transition: width 0.1s ease;
}

/* Responsive Design */
@media (max-width: 1024px) {
	.legal__document {
		margin: 0 1rem;
		border-radius: 12px;
	}

	.legal__section {
		padding: 2.5rem;
	}
}

@media (max-width: 768px) {
	.legal__hero {
		padding: 0rem 0 3rem;
	}

	.legal__title {
		font-size: 2.5rem;
	}

	.legal__subtitle {
		font-size: 1.1rem;
	}

	.legal__section {
		padding: 2rem;
	}
	.main-legal {
		padding-top: 3rem !important;
	}
	.legal__section h2 {
		font-size: 1.75rem;
	}

	.legal__section h3 {
		font-size: 1.25rem;
	}

	.legal__section p,
	.legal__section li {
		font-size: 1rem;
		text-align: left;
	}

	.legal__meta {
		flex-direction: column;
		gap: 0.5rem;
	}
}

@media (max-width: 480px) {
	.legal__hero {
		padding: 0rem 0 2rem;
	}

	.legal__title {
		font-size: 2rem;
	}

	.legal__icon {
		font-size: 3rem;
	}

	.legal__document {
		margin: 0 0.5rem;
		border-radius: 8px;
	}

	.legal__section {
		padding: 1.5rem;
	}

	.legal__section h2 {
		font-size: 1.5rem;
	}

	.contact__info {
		padding: 1.5rem;
	}
}

/* Print Styles */
@media print {
	.legal__hero,
	header,
	footer {
		display: none;
	}

	.legal__document {
		box-shadow: none;
		border: none;
		margin: 0;
	}

	.legal__section {
		page-break-inside: avoid;
		padding: 1rem 0;
	}

	.legal__section h2 {
		page-break-after: avoid;
	}

	body {
		font-size: 12pt;
		line-height: 1.4;
	}
}

/* Smooth Scrolling Enhancement */
html {
	scroll-behavior: smooth;
}

/* Focus Styles for Accessibility */
.legal__section a:focus {
	outline: 2px solid var(--primary-color);
	outline-offset: 2px;
	border-radius: 2px;
}

/* Loading Animation */
.legal__document {
	animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.legal__section {
	animation: fadeIn 0.6s ease-out forwards;
	animation-delay: calc(var(--section-index, 0) * 0.1s);
}

@keyframes fadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}
