/* Static CMS pages v2 — legal / about (body.is-page) */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;800&display=swap');

body.is-page {
	--pg2-ink: #1f2430;
	--pg2-muted: #45464c;
	--pg2-gold: #ffc107;
	--pg2-bg: #f5f6f8;
	--pg2-line: #e5e7eb;
	font-family: Tajawal, Cairo, sans-serif;
	background: var(--pg2-bg);
	color: var(--pg2-ink);
}

body.is-page .main-content {
	padding: 0 !important;
	background: var(--pg2-bg) !important;
}

body.is-page #breadcrumb-container,
body.is-page .breadcrumb {
	display: none !important;
}

.pg2-page {
	overflow: hidden;
}

.pg2-hero {
	position: relative;
	min-height: min(52vh, 460px);
	display: flex;
	align-items: flex-end;
	background: #1f2430 center / cover no-repeat;
}

.pg2-hero__shade {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(90deg, rgba(31, 36, 48, 0.9) 0%, rgba(31, 36, 48, 0.48) 58%, rgba(31, 36, 48, 0.28) 100%),
		linear-gradient(180deg, rgba(31, 36, 48, 0.1) 0%, rgba(31, 36, 48, 0.58) 100%);
	pointer-events: none;
}

html[dir="rtl"] .pg2-hero__shade {
	background:
		linear-gradient(270deg, rgba(31, 36, 48, 0.9) 0%, rgba(31, 36, 48, 0.48) 58%, rgba(31, 36, 48, 0.28) 100%),
		linear-gradient(180deg, rgba(31, 36, 48, 0.1) 0%, rgba(31, 36, 48, 0.58) 100%);
}

.pg2-hero__inner {
	position: relative;
	z-index: 1;
	padding-top: 96px;
	padding-bottom: 48px;
}

.pg2-hero__brand {
	margin: 0 0 10px;
	font-size: clamp(40px, 6.5vw, 68px);
	line-height: 1.05;
	font-weight: 800;
	color: var(--pg2-gold);
	letter-spacing: -0.02em;
	animation: pg2-rise 0.7s ease both;
}

.pg2-hero__title {
	margin: 0 0 12px;
	max-width: 22ch;
	font-size: clamp(22px, 3vw, 34px);
	line-height: 1.3;
	font-weight: 700;
	color: #fff;
	animation: pg2-rise 0.7s ease 0.08s both;
}

.pg2-hero__sub {
	margin: 0;
	max-width: 40ch;
	font-size: 16px;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.78);
	animation: pg2-rise 0.7s ease 0.14s both;
}

.pg2-hero__sub a {
	color: #fff;
	text-decoration: none;
	border-bottom: 1px solid rgba(255, 193, 7, 0.55);
}

.pg2-hero__sub a:hover {
	color: var(--pg2-gold);
}

.pg2-body {
	padding: 40px 0 80px;
}

.pg2-card {
	position: relative;
	max-width: 880px;
	margin: 0 auto;
	background: #fff;
	border: 1px solid var(--pg2-line);
	border-radius: 24px;
	box-shadow: 0 12px 40px -18px rgba(15, 18, 28, 0.22);
	padding: 36px 40px 44px;
	overflow: hidden;
	animation: pg2-rise 0.65s ease 0.12s both;
}

.pg2-card__bar {
	position: absolute;
	top: 0;
	inset-inline-start: 0;
	width: 100%;
	height: 4px;
	background: linear-gradient(90deg, var(--pg2-ink), var(--pg2-gold));
}

.pg2-card__media {
	display: block;
	width: 100%;
	max-height: 320px;
	object-fit: cover;
	border-radius: 16px;
	margin: 0 0 28px;
}

.pg2-content {
	font-size: 17px;
	line-height: 1.85;
	color: var(--pg2-ink);
}

.pg2-content h1,
.pg2-content h2,
.pg2-content h3,
.pg2-content h4 {
	margin: 1.6em 0 0.55em;
	font-weight: 800;
	line-height: 1.35;
	color: var(--pg2-ink);
}

.pg2-content h1:first-child,
.pg2-content h2:first-child,
.pg2-content h3:first-child {
	margin-top: 0;
}

.pg2-content h2 {
	font-size: 1.35em;
	padding-bottom: 0.35em;
	border-bottom: 1px solid var(--pg2-line);
}

.pg2-content h3 {
	font-size: 1.15em;
}

.pg2-content p {
	margin: 0 0 1em;
}

.pg2-content ul,
.pg2-content ol {
	margin: 0 0 1.1em;
	padding-inline-start: 1.35em;
}

.pg2-content li {
	margin: 0.35em 0;
}

.pg2-content a {
	color: #b45309;
	font-weight: 700;
	text-decoration: none;
	border-bottom: 1px solid rgba(255, 193, 7, 0.55);
}

.pg2-content a:hover {
	color: var(--pg2-ink);
}

.pg2-content strong,
.pg2-content b {
	font-weight: 800;
}

.pg2-content img {
	max-width: 100%;
	height: auto;
	border-radius: 12px;
}

.pg2-content table {
	width: 100%;
	border-collapse: collapse;
	margin: 0 0 1.25em;
	font-size: 0.95em;
}

.pg2-content th,
.pg2-content td {
	border: 1px solid var(--pg2-line);
	padding: 10px 12px;
	text-align: start;
}

.pg2-content th {
	background: #f8f9fb;
	font-weight: 700;
}

.pg2-foot {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 20px;
	justify-content: space-between;
	align-items: center;
	margin-top: 36px;
	padding-top: 22px;
	border-top: 1px solid var(--pg2-line);
}

.pg2-foot a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 15px;
	font-weight: 700;
	color: var(--pg2-ink);
	text-decoration: none;
	transition: color 0.15s;
}

.pg2-foot a:hover {
	color: #b45309;
}

@keyframes pg2-rise {
	from {
		opacity: 0;
		transform: translateY(14px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (max-width: 768px) {
	.pg2-hero {
		min-height: min(46vh, 380px);
	}

	.pg2-hero__inner {
		padding-top: 84px;
		padding-bottom: 36px;
	}

	.pg2-body {
		padding: 24px 0 56px;
	}

	.pg2-card {
		padding: 24px 18px 28px;
		border-radius: 18px;
	}

	.pg2-content {
		font-size: 16px;
		line-height: 1.75;
	}
}
