/* Legal page (Framer "POLITYKA PRYWATNOŚCI"): one 650px column. */
.legal {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	padding: 160px 80px 80px;
	overflow: clip;

	@media (min-width: 810px) and (max-width: 1199.98px) {
		padding: 180px 40px 40px;
	}

	@media (max-width: 809.98px) {
		padding: 120px 25px 25px;
	}
}

.legal__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 15px;
	width: 100%;
	max-width: 650px;

	@media (max-width: 809.98px) {
		max-width: none;
	}

	& > * {
		width: 100%;
	}
}

/*
 * Rich text with Framer's preset spacing: each block gets its preset's
 * paragraph spacing above it (h2 and h4: 40px, paragraphs: 20px, lists: 0).
 * The intro uses the 16px body preset, the rest the 14px small preset.
 */
.legal__text {
	font-family: var(--font-inter);
	font-size: var(--fs-14);
	line-height: var(--lh-140);
	color: var(--color-ink-70);

	& * + p {
		margin-top: 20px;
	}

	& * + h2,
	& * + h3,
	& * + h4 {
		margin-top: 40px;
	}

	& h2 {
		font-family: var(--font-figtree);
		font-size: var(--fs-40);
		font-weight: var(--fw-light);
		line-height: var(--lh-140);
		letter-spacing: var(--ls-tight);
		color: var(--color-ink);
	}

	& h3,
	& h4 {
		font-family: var(--font-cormorant);
		font-size: var(--fs-20);
		font-weight: var(--fw-semibold);
		line-height: var(--lh-140);
		letter-spacing: var(--ls-tight);
		color: var(--color-ink);
	}

	& ul,
	& ol {
		margin-top: 0;
	}

	& li {
		position: relative;
		padding-inline-start: 2ch;

		&::before {
			position: absolute;
			inset-inline-start: 0;
			content: "•";
		}
	}

	& ol {
		counter-reset: legal;

		& li {
			counter-increment: legal;

			&::before {
				content: counter(legal) ".";
				font-variant-numeric: tabular-nums;
			}
		}
	}

	& a {
		color: #09f;
	}

	& figure {
		margin: 0;
		overflow-x: auto;
	}

	/* Table preset 1s2n5fb. */
	& table {
		width: 100%;
		border-spacing: 0;
		border-collapse: separate;
		overflow: hidden;
		border: 1px solid rgb(153 153 153 / 0.25);
		border-radius: 8px;
	}

	& th,
	& td {
		padding: 10px;
		text-align: start;
		vertical-align: top;
	}

	& th {
		background: rgb(153 153 153 / 0.1);
	}

	& tr + tr > * {
		border-top: 1px solid rgb(153 153 153 / 0.25);
	}

	& :is(td, th) + :is(td, th) {
		border-left: 1px solid rgb(153 153 153 / 0.25);
	}
}

.legal__text--intro {
	font-size: var(--fs-16);
	line-height: var(--lh-160);
	color: var(--color-ink);
}
