/* Terms of use page, /tingimused (issue #308): long Estonian words and the
   privacy notice's table must not widen the page on a phone. */
.terms-document,
#terms h1 {
	overflow-wrap: break-word;
	word-wrap: break-word;
}

@media (max-width: 767px) {
	#terms h1 {
		font-size: 26px;
	}
}

/* Headings, list items and tables in the same font and colour as the
   paragraphs: the public theme gives h4 and li Arial and a lighter grey. */
.terms-document h3,
.terms-document h4,
.terms-document li,
.terms-document th,
.terms-document td,
#terms .alert {
	font-family: "Open Sans", sans-serif;
}

.terms-document li,
.terms-document td {
	color: #444;
}

.terms-document hr {
	margin: 30px 0 10px;
}

#terms .terms-document h3 {
	font-size: 22px;
}

#terms .terms-document h4 {
	font-size: 18px;
	font-weight: 600;
	margin-top: 25px;
}

/* Tables (the privacy notice's, the DPA's Lisa 2) wrap their text on a phone:
   inside the app private.css fixes the layout and Bootstrap makes the cells
   nowrap under 768px, which made the columns overlap. */
.terms-document .table-responsive .table {
	table-layout: auto;
}

.terms-document .table-responsive > .table > thead > tr > th,
.terms-document .table-responsive > .table > tbody > tr > td {
	white-space: normal;
	vertical-align: top;
}
