/* FlyOra legal pages (Privacy Policy, Terms & Conditions) and the 404 page.
   Uses the site tokens from the Elementor kit (--fy-*). */

/* ---------- Layout slot from the "Article Page Layout" template ---------- */
.elementor .elementor-element-f0b10c0d.elementor-element-f0b10c0d {
	padding: 0;
	gap: 0;
	min-height: 0;
	width: 100%;
}

.lg {
	--lg-read: 760px;
	width: 100%;
	font-family: var(--fy-font-body), sans-serif;
	color: var(--fy-text);
}
.lg *,
.lg *::before,
.lg *::after {
	box-sizing: border-box;
}
.lg svg {
	flex: 0 0 auto;
}
.lg a:focus-visible {
	outline: 3px solid rgba(241, 90, 34, .45);
	outline-offset: 3px;
	border-radius: 4px;
}
.lg-wrap {
	width: 100%;
	max-width: 1240px;
	margin: 0 auto;
}

/* ==========================================================
   Legal page header (compact)
   ========================================================== */
.lg-hero {
	margin-top: -84px; /* sit under the sticky header, like every FlyOra hero */
	padding: 116px 32px 56px;
	background:
		radial-gradient(circle at 8% 18%, rgba(241, 90, 34, .1) 0%, rgba(241, 90, 34, 0) 30%),
		radial-gradient(circle at 92% 70%, rgba(44, 43, 124, .08) 0%, rgba(44, 43, 124, 0) 34%),
		linear-gradient(180deg, #E6EDF9 0%, #F3F6FC 55%, #fff 100%);
}
.lg-crumbs ol {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 0;
	margin: 0 0 40px;
	padding: 0;
	list-style: none;
	font-size: 13px;
	font-weight: 600;
	color: var(--fy-muted);
}
.lg-crumbs li {
	display: inline-flex;
	align-items: center;
	min-width: 0;
}
.lg-crumbs li + li::before {
	content: "";
	width: 5px;
	height: 5px;
	margin: 0 10px;
	border-top: 1.5px solid currentColor;
	border-right: 1.5px solid currentColor;
	transform: rotate(45deg);
	opacity: .6;
}
.lg-crumbs a {
	color: var(--fy-muted);
	text-decoration: none;
	transition: color .2s;
}
.lg-crumbs a:hover {
	color: var(--fy-orange);
}
.lg-crumbs [aria-current] {
	color: var(--fy-blue);
}
.lg-head {
	max-width: 880px;
	margin: 0 auto;
	text-align: center;
}
.lg-eyebrow {
	margin: 0 0 16px;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--fy-orange);
}
.lg-title {
	margin: 0;
	font-family: var(--fy-font-heading), sans-serif;
	font-size: 52px;
	font-weight: 700;
	line-height: 1.08;
	letter-spacing: -.02em;
	color: var(--fy-blue);
	overflow-wrap: break-word;
}
.lg-title span {
	display: block;
	color: var(--fy-orange);
}
.lg-meta {
	margin: 22px 0 0;
	font-size: 14px;
	font-weight: 600;
	color: var(--fy-muted);
}

/* ==========================================================
   Legal text: native blocks from the page editor
   ========================================================== */
.lg-article {
	padding: 8px 32px 96px;
}
.lg-content {
	max-width: var(--lg-read);
	margin: 0 auto;
	font-size: 17px;
	line-height: 1.8;
	color: var(--fy-text);
	overflow-wrap: break-word;
}
.lg-content > * {
	max-width: 100%;
	margin-top: 0;
	margin-bottom: 20px;
}
.lg-content > :last-child {
	margin-bottom: 0;
}
.lg-content h2,
.lg-content h3,
.lg-content h4 {
	font-family: var(--fy-font-heading), sans-serif;
	font-weight: 700;
	letter-spacing: -.01em;
	color: var(--fy-blue);
}
.lg-content h2 {
	margin-top: 52px;
	margin-bottom: 14px;
	padding-top: 28px;
	border-top: 1px solid var(--fy-border);
	font-size: 28px;
	line-height: 1.2;
	scroll-margin-top: 110px;
}
.lg-content h3 {
	margin-top: 32px;
	margin-bottom: 10px;
	font-size: 21px;
	line-height: 1.3;
	color: var(--fy-ink);
}
.lg-content h4 {
	margin-top: 24px;
	margin-bottom: 8px;
	font-size: 18px;
	line-height: 1.35;
	color: var(--fy-ink);
}
.lg-content > h2:first-child,
.lg-content > h3:first-child {
	margin-top: 0;
	padding-top: 0;
	border-top: 0;
}
.lg-content p {
	margin-top: 0;
}
.lg-content strong {
	color: var(--fy-ink);
}
.lg-content a {
	color: var(--fy-blue);
	font-weight: 600;
	text-decoration: underline;
	text-decoration-color: rgba(241, 90, 34, .6);
	text-decoration-thickness: 1.5px;
	text-underline-offset: 3px;
	overflow-wrap: anywhere;
	transition: color .2s, text-decoration-color .2s;
}
.lg-content a:hover {
	color: var(--fy-orange-dark);
	text-decoration-color: var(--fy-orange);
}

/* Lists */
.lg-content ul,
.lg-content ol {
	padding-left: 0;
	list-style: none;
}
.lg-content li {
	position: relative;
	margin-bottom: 8px;
	padding-left: 30px;
}
.lg-content li:last-child {
	margin-bottom: 0;
}
.lg-content ul > li::before {
	content: "";
	position: absolute;
	left: 8px;
	top: .72em;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--fy-orange);
}
.lg-content ol {
	counter-reset: lg-ol;
}
.lg-content ol > li {
	counter-increment: lg-ol;
}
.lg-content ol > li::before {
	content: counter(lg-ol);
	position: absolute;
	left: 0;
	top: .35em;
	display: grid;
	place-items: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--fy-blue);
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
	color: #fff;
}
.lg-content li > ul,
.lg-content li > ol {
	margin: 8px 0 0;
}

/* Tables (if ever added) scroll inside their own box */
.lg-content .wp-block-table {
	overflow-x: auto;
}
.lg-content table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
}
.lg-content th,
.lg-content td {
	padding: 10px 12px;
	border: 1px solid var(--fy-border);
	text-align: left;
	vertical-align: top;
}

/* Provisional wording still to be confirmed by FlyOra (paragraph block → Advanced →
   Additional CSS class "lg-placeholder"). Delete the block once the real wording is in. */
.lg-content .lg-placeholder {
	padding: 14px 18px;
	border-left: 3px solid var(--fy-orange);
	border-radius: 0 12px 12px 0;
	background: var(--fy-orange-soft);
	font-size: 15px;
	line-height: 1.65;
	color: var(--fy-ink);
}

/* ==========================================================
   404
   ========================================================== */
.lg-404-hero {
	margin-top: -84px;
	padding: 150px 32px 120px;
	background:
		radial-gradient(circle at 10% 20%, rgba(241, 90, 34, .1) 0%, rgba(241, 90, 34, 0) 32%),
		radial-gradient(circle at 90% 75%, rgba(44, 43, 124, .09) 0%, rgba(44, 43, 124, 0) 36%),
		linear-gradient(180deg, #E6EDF9 0%, #F3F6FC 60%, #fff 100%);
	text-align: center;
}
.lg-404-inner {
	max-width: 720px;
	margin: 0 auto;
}
.lg-404-mark {
	position: relative;
	width: min(100%, 460px);
	margin: 0 auto 28px;
	padding-top: 56px;
}
.lg-404-route {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 110px;
	overflow: visible;
	color: var(--fy-blue);
	opacity: .55;
}
.lg-404-dot {
	fill: var(--fy-blue);
}
.lg-404-dot.is-end {
	fill: var(--fy-orange);
}
.lg-404-plane {
	position: absolute;
	top: 0;
	left: 50%;
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	margin-left: -26px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 14px 30px -14px rgba(29, 28, 90, .45);
	color: var(--fy-orange);
}
.lg-404-plane svg {
	width: 28px;
	height: 28px;
}
.lg-404-code {
	margin: 0;
	font-family: var(--fy-font-heading), sans-serif;
	font-size: 150px;
	font-weight: 800;
	line-height: 1;
	letter-spacing: -.04em;
	color: var(--fy-blue);
}
.lg-404-title {
	margin: 0;
	font-family: var(--fy-font-heading), sans-serif;
	font-size: 46px;
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -.02em;
	color: var(--fy-blue);
}
.lg-404-title span {
	display: block;
	color: var(--fy-orange);
}
.lg-404-lead {
	max-width: 520px;
	margin: 18px auto 0;
	font-size: 17px;
	line-height: 1.7;
	color: var(--fy-text);
}
.lg-404-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	margin-top: 34px;
}
.lg-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 52px;
	padding: 15px 26px;
	border: 1.5px solid transparent;
	border-radius: 12px;
	font-family: var(--fy-font-body), sans-serif;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color .25s, border-color .25s, color .25s, transform .25s;
}
.lg-btn svg {
	width: 18px;
	height: 18px;
}
.lg-btn-primary {
	background: var(--fy-orange);
	color: #fff;
	box-shadow: 0 12px 24px -12px rgba(241, 90, 34, .7);
}
.lg-btn-primary:hover {
	background: var(--fy-orange-dark);
	color: #fff;
	transform: translate3d(0, -2px, 0);
}
.lg-btn-outline {
	border-color: rgba(44, 43, 124, .25);
	background: #fff;
	color: var(--fy-blue);
}
.lg-btn-outline:hover {
	border-color: var(--fy-blue);
	color: var(--fy-blue);
	transform: translate3d(0, -2px, 0);
}
.lg-404-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px 28px;
	margin: 30px 0 0;
	padding: 0;
	list-style: none;
}
.lg-404-links a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 0;
	font-size: 15px;
	font-weight: 700;
	color: var(--fy-blue);
	text-decoration: none;
	transition: color .2s;
}
.lg-404-links a:hover {
	color: var(--fy-orange);
}
.lg-404-links svg {
	width: 16px;
	height: 16px;
}

/* ==========================================================
   Tablet
   ========================================================== */
@media (max-width: 1024px) {
	.lg-hero {
		padding: 112px 28px 48px;
	}
	.lg-article {
		padding: 8px 28px 80px;
	}
	.lg-title {
		font-size: 44px;
	}
	.lg-404-hero {
		padding: 136px 28px 100px;
	}
	.lg-404-code {
		font-size: 128px;
	}
	.lg-404-title {
		font-size: 40px;
	}
}

/* ==========================================================
   Mobile
   ========================================================== */
@media (max-width: 767px) {
	.lg-hero {
		margin-top: -68px;
		padding: 88px 18px 36px;
	}
	.lg-crumbs ol {
		margin-bottom: 28px;
		font-size: 12px;
	}
	.lg-head {
		text-align: left;
	}
	.lg-title {
		font-size: 34px;
	}
	.lg-article {
		padding: 4px 18px 64px;
	}
	.lg-content {
		font-size: 16px;
		line-height: 1.75;
	}
	.lg-content h2 {
		margin-top: 40px;
		padding-top: 22px;
		font-size: 24px;
	}
	.lg-content h3 {
		margin-top: 28px;
		font-size: 19px;
	}
	.lg-404-hero {
		margin-top: -68px;
		padding: 112px 18px 72px;
	}
	.lg-404-mark {
		padding-top: 44px;
		margin-bottom: 22px;
	}
	.lg-404-route {
		height: 90px;
	}
	.lg-404-plane {
		width: 44px;
		height: 44px;
		margin-left: -22px;
	}
	.lg-404-plane svg {
		width: 24px;
		height: 24px;
	}
	.lg-404-code {
		font-size: 104px;
	}
	.lg-404-title {
		font-size: 32px;
	}
	.lg-404-lead {
		font-size: 16px;
	}
	.lg-404-actions {
		flex-direction: column;
	}
	.lg-404-actions .lg-btn {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.lg-btn,
	.lg-content a,
	.lg-crumbs a,
	.lg-404-links a {
		transition: none !important;
	}
	.lg-btn:hover {
		transform: none;
	}
}
