/* ============================================================
 * Rechtstext-Seiten (page-rechtstext.php)
 * Gleicher Rahmen wie die Kontaktseite (.ec-kontakt in style.css).
 * ============================================================ */

.ec-legal {
	background: var(--ec-page-bg, #fdfcf9);
	padding: clamp(56px, 9vw, 120px) clamp(20px, 6vw, 80px) clamp(80px, 12vw, 160px);
	color: #1c1c1a;
	font-family: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.ec-legal__inner {
	max-width: 760px;
	margin: 0 auto;
}

.ec-legal__title {
	margin: 0 0 40px;
	font-family: inherit;
	font-size: clamp(28px, 4vw, 48px);
	line-height: 1.15;
	font-weight: 400;
	color: inherit;
	overflow-wrap: anywhere;
	hyphens: auto;
}

.ec-legal__content {
	font-size: 16px;
	line-height: 1.7;
	color: #3a3a38;
	overflow-wrap: break-word;
	hyphens: auto;
}

.ec-legal__content > *:first-child {
	margin-top: 0;
}

.ec-legal__content p,
.ec-legal__content ul,
.ec-legal__content ol,
.ec-legal__content table {
	margin: 0 0 1.1em;
}

.ec-legal__content ul,
.ec-legal__content ol {
	padding-left: 1.4em;
}

.ec-legal__content li + li {
	margin-top: .35em;
}

.ec-legal__content h2,
.ec-legal__content h3,
.ec-legal__content h4 {
	font-family: inherit;
	font-weight: 500;
	line-height: 1.3;
	color: #1c1c1a;
	letter-spacing: 0;
	text-transform: none;
}

.ec-legal__content h2 {
	margin: 2em 0 .6em;
	font-size: clamp(20px, 2.4vw, 26px);
}

.ec-legal__content h3 {
	margin: 1.6em 0 .5em;
	font-size: 18px;
}

.ec-legal__content h4 {
	margin: 1.4em 0 .4em;
	font-size: 16px;
}

/* Elementor-Kit färbt Links schwarz, daher höhere Spezifität. */
.ec-legal .ec-legal__content a {
	color: #1c1c1a;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.ec-legal .ec-legal__content a:hover {
	text-decoration-thickness: 2px;
}

.ec-legal__content table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
	display: block;
	overflow-x: auto;
}

.ec-legal__content th,
.ec-legal__content td {
	padding: 8px 12px 8px 0;
	border-bottom: 1px solid #e4e0d8;
	text-align: left;
	vertical-align: top;
}

.ec-legal__content img {
	max-width: 100%;
	height: auto;
}
