/*
 * The theme sets font-size:0 on .row (a standard trick to remove the
 * whitespace gap between inline-block grid columns). Gridder's own text
 * blocks override it per-element (_Lead, _H1, _H2, _H3, _Absatz), but the
 * privacy policy/imprint text that Legal Butler's texte-v1.js fetches and
 * injects into [data-dt-text] divs is plain, unclassed HTML (h1/h2/p/...) -
 * it inherits that 0 and renders completely invisible unless given its own
 * sizing. Rather than just restoring a generic base size, every value below
 * (colour, font-family, letter-spacing, line-height, the three breakpoints)
 * is copied from the theme's own _Lead/_H1/_H2/_H3/_Absatz utility classes
 * and the a:hover accent colour, so this reads as the same typographic
 * system as the rest of the site instead of a generic article style.
 */
[data-dt-text] {
	max-width: 960px;
	font-family: MuseoSansRounded300;
	color: #001e62;
	letter-spacing: 0.01em;
	line-height: 1.4;
	font-weight: 300;
	font-size: 20px;
}
@media (max-width: 960px) {
	[data-dt-text] {
		font-size: 16px;
	}
}

/*
 * Only the privacy pages have their own separate hero h1 ("Datenschutz auf
 * einen Blick" / "Data privacy at a glance") above this block, so Legal
 * Butler's in-document <h1> there is a duplicate - hidden (not removed,
 * still needed as Legal Butler's own required heading marker). Impressum/
 * Imprint have no other h1 on the page, so theirs stays visible as the
 * page's only H1 - hiding it site-wide left those pages with zero H1 tags.
 */

[data-dt-text] h2 {
	font-family: MuseoSansRounded300;
	color: #001e62;
	font-weight: 600;
	letter-spacing: -0.01em;
	line-height: 1.2;
	font-size: 28px;
	margin: 30px 0 15px 0;
}
@media (max-width: 960px) {
	[data-dt-text] h2 {
		font-size: 20px;
		margin: 25px 0 10px 0;
	}
}

[data-dt-text] h3,
[data-dt-text] h4,
[data-dt-text] h5,
[data-dt-text] h6 {
	font-family: MuseoSansRounded300;
	color: #001e62;
	font-weight: 600;
	letter-spacing: -0.01em;
	line-height: 1.3;
	font-size: 22px;
	margin: 20px 0 10px 0;
}
@media (max-width: 960px) {
	[data-dt-text] h3,
	[data-dt-text] h4,
	[data-dt-text] h5,
	[data-dt-text] h6 {
		font-size: 18px;
	}
}

[data-dt-text] p,
[data-dt-text] li,
[data-dt-text] dd,
[data-dt-text] dt,
[data-dt-text] td,
[data-dt-text] th {
	font-family: MuseoSansRounded300;
	color: #001e62;
	letter-spacing: 0.01em;
	line-height: 1.4;
	font-weight: 400;
	font-size: 20px;
}
[data-dt-text] dd{
	margin-bottom: 15px;
}
@media (max-width: 960px) {
	[data-dt-text] p,
	[data-dt-text] li,
	[data-dt-text] dd,
	[data-dt-text] dt,
	[data-dt-text] td,
	[data-dt-text] th {
		font-size: 16px;
	}
}
[data-dt-text] p {
	margin: 0 0 20px 0;
}
[data-dt-text] .subtitle {
	font-size: 0.7em;
	opacity: 0.7;
	margin: 0 0 20px 0;
}

[data-dt-text] ul,
[data-dt-text] ol {
	padding-left: 1.25em;
	margin: 0 0 20px 0;
}
[data-dt-text] li {
	margin: 0 0 8px 0;
}

[data-dt-text] a {
	color: #001e62;
	text-decoration: underline;
	transition: opacity 0.2s ease, color 0.2s ease;
}
[data-dt-text] a:hover {
	opacity: 0.6;
	color: #7bafd4;
}

[data-dt-text] table {
	border-collapse: collapse;
	width: 100%;
	margin: 0 0 20px 0;
	table-layout: fixed; /* keeps columns within viewport instead of overflowing */
}
[data-dt-text] td,
[data-dt-text] th {
	border: 1px solid rgba(0, 30, 98, 0.2);
	padding: 0.5em 0.75em;
	text-align: left;
	vertical-align: top;
	word-wrap: break-word;
	overflow-wrap: break-word;
}
@media (max-width: 960px) {
	[data-dt-text] table {
		font-size: 13px;
	}
	[data-dt-text] td,
	[data-dt-text] th {
		padding: 0.4em 0.5em;
	}
}

[data-dt-text] nav.toc {
	border: 1px solid rgba(0, 30, 98, 0.15);
	border-radius: 8px;
	padding: 1em 1.5em;
	margin: 0 0 30px 0;
	background: rgba(0, 30, 98, 0.03);
}
[data-dt-text] nav.toc h2 {
	margin-top: 0;
	font-size: 20px;
}
[data-dt-text] nav.toc ol {
	margin-bottom: 0;
}
