/* KK Compliance – minimal base styling for rendered legal documents.
   Deliberately restrained: it constrains the measure and normalises heading
   sizes so a block theme's hero typography does not take over. Switch it off
   under Banner design → Documents if the theme should win. */

.kkc-document {
	max-width: var(--kkc-doc-width, 800px);
	margin-inline: auto;
	line-height: 1.65;
	overflow-wrap: break-word;
}

.kkc-document > h2 {
	font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.6rem);
	line-height: 1.25;
	margin: 2em 0 0.5em;
	padding: 0;
}
.kkc-document > h2:first-child { margin-top: 0; }

.kkc-document > h3 {
	font-size: clamp(1.05rem, 0.98rem + 0.4vw, 1.2rem);
	line-height: 1.3;
	margin: 1.6em 0 0.4em;
	padding: 0;
}

.kkc-document p { margin: 0 0 1em; }
.kkc-document ul,
.kkc-document ol { margin: 0 0 1em 1.25em; padding: 0; }
.kkc-document li { margin-bottom: 0.35em; }
.kkc-document a { overflow-wrap: anywhere; }

/* the cookie table must never break the layout on a phone */
.kkc-document .kkc-table-wrap {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	margin: 1.5em 0;
}
.kkc-document .kkc-cookie-table { min-width: 32rem; }

.kkc-document .kkc-manage { margin-top: 0.5em; }

@media (max-width: 782px) {
	.kkc-document > h2 { margin-top: 1.6em; }
}
