.legal-page .legal-main {
	position: relative;
	overflow: hidden;
	padding-top: 104px;
}

.legal-page .legal-main::before,
.legal-page .legal-main::after {
	position: absolute;
	z-index: 0;
	content: "";
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
	pointer-events: none;
}

.legal-page .legal-main::before {
	top: 80px;
	right: -42px;
	width: 220px;
	height: 220px;
	opacity: 0.045;
	background-image: url("/static/icons/handmade/global-handmade-symbol-svgrepo-com.svg");
	transform: rotate(8deg);
}

.legal-page .legal-main::after {
	bottom: 140px;
	left: -52px;
	width: 190px;
	height: 190px;
	opacity: 0.035;
	background-image: url("/static/icons/handmade/checklist-paper-sheet-handmade-symbol-svgrepo-com.svg");
	transform: rotate(-8deg);
}

.legal-page .legal-layout {
	position: relative;
	z-index: 1;
	grid-template-columns: minmax(270px, 0.72fr) minmax(0, 1.28fr);
	gap: 112px;
}

.legal-page .legal-sidebar {
	top: 122px;
}

.legal-page .legal-sidebar .kicker {
	margin-bottom: 18px;
}

.legal-page .legal-sidebar h1 {
	margin-bottom: 28px;
	font-weight: 560;
}

.legal-page .legal-sidebar h1 .marker {
	padding-right: 0.12em;
	padding-left: 0.08em;
}

.legal-page .legal-sidebar > p:last-child {
	max-width: 220px;
	line-height: 1.55;
}

.legal-page .legal-sidebar-note {
	margin-top: 34px;
	font-family: var(--handwritten, "Segoe Print", "Bradley Hand", "Comic Sans MS", cursive);
	font-size: 15px;
	line-height: 1.45;
	transform: rotate(-1.2deg);
}

.legal-page .legal-content {
	max-width: 820px;
}

.legal-page .legal-content section {
	padding-bottom: 42px;
	margin-bottom: 42px;
}

.legal-page .legal-content h2 {
	max-width: 720px;
	margin-bottom: 20px;
	font-size: clamp(26px, 2.4vw, 34px);
	font-weight: 580;
	line-height: 1.12;
}

.legal-page .legal-content h2 .marker {
	padding-right: 0.11em;
	padding-left: 0.08em;
}

.legal-page .legal-content p,
.legal-page .legal-content li {
	font-size: 16px;
	line-height: 1.78;
}

.legal-page .legal-content p + p {
	margin-top: 14px;
}

.legal-page .legal-content li + li {
	margin-top: 8px;
}

.legal-page .legal-callout {
	position: relative;
	margin: 26px 0 8px;
	padding: 24px 26px;
	background: rgba(183, 255, 50, 0.16);
}

.legal-page .legal-callout::before {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: 4px;
	content: "";
	background: var(--lime-strong);
}

.legal-page .legal-callout strong {
	color: var(--ink);
}

.legal-page .legal-integration-intro {
	max-width: 720px;
	margin-bottom: 28px;
}

.legal-page .legal-integration-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
	margin: 28px 0 8px;
}

.legal-page .legal-integration-card {
	min-height: 154px;
	padding: 22px 22px 20px;
	background: #eef1eb;
	transform: rotate(-0.25deg);
}

.legal-page .legal-integration-card:nth-child(even) {
	transform: rotate(0.25deg);
}

.legal-page .legal-integration-card--lime {
	background: rgba(183, 255, 50, 0.34);
}

.legal-page .legal-integration-card--orange {
	background: rgba(255, 159, 50, 0.28);
}

.legal-page .legal-integration-card--yellow {
	background: rgba(255, 228, 92, 0.32);
}

.legal-page .legal-integration-card--blue {
	background: rgba(125, 220, 255, 0.26);
}

.legal-page .legal-integration-card small,
.legal-page .legal-integration-card strong,
.legal-page .legal-integration-card span {
	display: block;
}

.legal-page .legal-integration-card small {
	margin-bottom: 28px;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.legal-page .legal-integration-card strong {
	margin-bottom: 8px;
	font-size: 21px;
	font-weight: 580;
	letter-spacing: -0.025em;
}

.legal-page .legal-integration-card span {
	color: #555d52;
	font-size: 13px;
	line-height: 1.5;
}

.legal-page .legal-provider-note {
	margin-top: 18px;
	color: #656d62;
	font-size: 13px;
}

.legal-page .legal-contact-block {
	margin-top: 20px;
	padding: 26px;
	background: var(--dark);
	color: #f5f7f2;
}

.legal-page .legal-contact-block p,
.legal-page .legal-contact-block a {
	color: #f5f7f2;
}

.legal-page .legal-contact-block p:last-child {
	margin-bottom: 0;
}

@media (max-width: 900px) {
	.legal-page .legal-main {
		padding-top: 70px;
	}

	.legal-page .legal-layout {
		gap: 58px;
	}

	.legal-page .legal-sidebar {
		position: static;
	}

	.legal-page .legal-sidebar-note {
		max-width: 360px;
	}

	.legal-page .legal-main::before {
		top: 48px;
		right: -70px;
	}
}

@media (max-width: 640px) {
	.legal-page .legal-integration-grid {
		grid-template-columns: 1fr;
	}

	.legal-page .legal-content section {
		padding-bottom: 34px;
		margin-bottom: 34px;
	}

	.legal-page .legal-content h2 {
		font-size: 27px;
	}

	.legal-page .legal-callout,
	.legal-page .legal-contact-block,
	.legal-page .legal-integration-card {
		padding-right: 20px;
		padding-left: 20px;
	}
}
