/**
 * Юридичні / технічні сторінки (шаблон legal-page).
 */

.fazis-legal-page,
.fazis-legal-shell {
	--fazis-hero-navy: rgb(0 16 53);
	--fazis-hero-blue: rgb(35 101 255);
}

.fazis-legal-page {
	color: rgb(8 31 69);
	background-color: rgb(255 255 255);
}

.fazis-legal-shell {
	position: relative;
	z-index: 10;
	background-color: rgb(255 255 255);
}

.fazis-legal-shell .fazis-hero__header {
	background-color: rgb(255 255 255);
	flex-wrap: nowrap !important;
	max-width: 1610px;
	margin-left: auto;
	margin-right: auto;
	align-items: center;
	min-width: 0;
	overflow: visible;
}

.fazis-legal-shell .fazis-hero__actions--desktop {
	display: flex !important;
	flex-shrink: 0;
	align-items: center;
}

.fazis-legal-shell .fazis-hero__nav--desktop {
	order: 0 !important;
	flex-basis: auto !important;
	flex: 1 1 auto;
	min-width: 0;
}

.fazis-legal-shell .fazis-hero__nav-link {
	color: rgb(0 16 53);
}

.fazis-legal-shell .fazis-hero__nav-link:hover,
.fazis-legal-shell .fazis-hero__nav-link:focus-visible {
	color: rgb(35 101 255);
}

.fazis-legal-shell .fazis-hero__menu-toggle-lines,
.fazis-legal-shell .fazis-hero__menu-toggle-lines::before,
.fazis-legal-shell .fazis-hero__menu-toggle-lines::after {
	background-color: rgb(0 16 53);
	box-shadow:
		0 -6px 0 0 rgb(0 16 53),
		0 6px 0 0 rgb(0 16 53);
}

.fazis-legal-shell .fazis-hero__menu-toggle {
	color: rgb(0 16 53);
}

.fazis-legal-shell .fazis-hero__menu-toggle:focus-visible {
	outline: 2px solid rgb(0 16 53);
	outline-offset: 3px;
}

.fazis-doc-page {
	max-width: 1610px;
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--fazis-section-px);
	padding-right: var(--fazis-section-px);
	padding-top: clamp(2rem, 5vw, 4rem);
	padding-bottom: clamp(3rem, 6vw, 6rem);
	box-sizing: border-box;
}

.fazis-doc-page__article {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: clamp(2.25rem, 4vw, 4rem);
	width: 100%;
	max-width: var(--fazis-section-inner-max);
	margin-left: auto;
	margin-right: auto;
}

.fazis-doc-page__header {
	width: 100%;
}

.fazis-doc-page__title {
	margin: 0;
	color: rgb(0 16 53);
	font-size: clamp(2.25rem, 5vw + 1rem, 6.25rem);
	font-weight: 700;
	line-height: 1.1;
}

.fazis-doc-page__content {
	width: 100%;
	font-size: clamp(1rem, 0.2vw + 0.9rem, 1.25rem);
	line-height: 1.5;
	color: rgb(8 31 69);
}

.fazis-doc-page__content > *:first-child {
	margin-top: 0;
}

.fazis-doc-page__content > *:last-child {
	margin-bottom: 0;
}

.fazis-doc-page__content h2,
.fazis-doc-page__content h3 {
	margin: 0 0 1rem;
	color: rgb(0 16 53);
	font-size: clamp(1.5rem, 1.2vw + 1rem, 2rem);
	font-weight: 700;
	line-height: 1.25;
}

.fazis-doc-page__content h2:not(:first-child),
.fazis-doc-page__content h3:not(:first-child) {
	margin-top: clamp(2rem, 3vw, 3rem);
}

.fazis-doc-page__content p {
	margin: 0 0 0.5rem;
	color: rgb(8 31 69);
}

.fazis-doc-page__content p:last-child {
	margin-bottom: 0;
}

.fazis-doc-page__content ul,
.fazis-doc-page__content ol {
	margin: 0 0 1rem 1.25rem;
	padding: 0;
	color: rgb(8 31 69);
}

.fazis-doc-page__content li {
	margin-bottom: 0.35rem;
}

.fazis-doc-page__content a {
	color: rgb(35 101 255);
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

.fazis-doc-page__content a:hover,
.fazis-doc-page__content a:focus-visible {
	color: rgb(29 84 214);
}

.fazis-doc-page__content .wp-block-group,
.fazis-doc-page__content .wp-block-columns {
	margin-bottom: clamp(1.5rem, 2vw, 2rem);
}

@media (max-width: 550px) {
	.fazis-legal-shell .fazis-hero__nav--desktop,
	.fazis-legal-shell .fazis-hero__actions--desktop {
		display: none !important;
	}

	.fazis-doc-page {
		padding-left: var(--fazis-section-px-sm);
		padding-right: var(--fazis-section-px-sm);
		padding-top: 1.5rem;
		background-color: rgb(249 250 251);
	}

	.fazis-legal-page {
		background-color: rgb(249 250 251);
	}

	.fazis-legal-shell {
		background-color: rgb(249 250 251);
	}

	.fazis-doc-page__title {
		text-align: left;
		font-size: 2.25rem;
	}

	.fazis-doc-page__content h2,
	.fazis-doc-page__content h3 {
		text-align: left;
		font-size: 1.5rem;
	}

	.fazis-doc-page__content {
		font-size: 1rem;
	}
}
