/* Simple Text Page template (Terms of Service, Privacy Policy).
   Loaded only when templates/template-simple-text.php is active.
   Widens the reading column (theme default is the 650px blog width) and
   scales headings to document size instead of marketing display size. */

.simple-page .content-single {
	max-width: 880px;
	font-size: 17px;
	line-height: 1.65;
	padding-top: 24px;
}

/* Heading hierarchy: h1 = agreement title, h2 = second agreement title, h3 = section */
.simple-page .is-wysiwyg h1 {
	font-size: 40px;
	line-height: 1.15;
	margin: 0 0 0.5em;
}

.simple-page .is-wysiwyg h2 {
	font-size: 32px;
	line-height: 1.2;
	margin: 0 0 0.5em;
}

.simple-page .is-wysiwyg h3 {
	font-size: 22px;
	line-height: 1.3;
	margin: 1.8em 0 0.5em;
}

.simple-page .is-wysiwyg h1 + h3,
.simple-page .is-wysiwyg h2 + h3 {
	margin-top: 0.6em;
}

.simple-page .is-wysiwyg h4 {
	font-size: 18px;
	line-height: 1.3;
	margin: 1.5em 0 0.5em;
}

.simple-page .is-wysiwyg p:not(:last-child),
.simple-page .is-wysiwyg ul:not(:last-child),
.simple-page .is-wysiwyg ol:not(:last-child) {
	margin-bottom: 1em;
}

/* Divider between the two agreements */
.simple-page .wp-block-separator {
	width: 100%;
	max-width: none;
	margin: 4em auto;
}

/* Anchored headings land below the fixed header */
.simple-page [id] {
	scroll-margin-top: 140px;
}

@media (max-width: 767px) {
	.simple-page .content-single {
		font-size: 16px;
	}

	.simple-page .is-wysiwyg h1 {
		font-size: 30px;
	}

	.simple-page .is-wysiwyg h2 {
		font-size: 26px;
	}

	.simple-page .is-wysiwyg h3 {
		font-size: 20px;
	}
}

/* ---- Table of contents: sticky sidebar on desktop, collapsible list above the text below 1113px ---- */
.simple-page__toc {
	font-size: 14px;
	line-height: 1.4;
	margin-bottom: 24px;
}

.simple-page__toc-toggle {
	display: flex;
	align-items: center;
	width: 100%;
	padding: 12px 16px;
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 8px;
	background: #fff;
	color: inherit;
	font: inherit;
	font-weight: 700;
	text-align: left;
	cursor: pointer;
}

.simple-page__toc-toggle::after {
	content: "";
	width: 9px;
	height: 9px;
	margin-left: auto;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg) translateY(-3px);
	transition: transform 0.2s;
}

.simple-page__toc-toggle[aria-expanded="true"]::after {
	transform: rotate(-135deg) translateY(2px);
}

.simple-page__toc-list {
	display: none;
	padding: 8px 16px 4px;
}

.simple-page__toc.is-open .simple-page__toc-list {
	display: block;
}

.simple-page__toc-group {
	margin: 14px 0 6px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #6b6b6b;
}

.simple-page__toc-group:first-child {
	margin-top: 0;
}

.simple-page__toc ol {
	list-style: none;
	margin: 0;
	padding: 0;
}

.simple-page__toc li {
	margin: 0;
}

.simple-page__toc a {
	display: block;
	padding: 5px 0 5px 12px;
	border-left: 2px solid transparent;
	color: inherit;
	text-decoration: none;
}

.simple-page__toc a:hover {
	color: var(--primary-color1, #d93a01);
}

.simple-page__toc a.is-current {
	color: var(--primary-color1, #d93a01);
	border-left-color: var(--primary-color1, #d93a01);
	font-weight: 600;
}

@media (min-width: 1113px) {
	.simple-page.has-toc {
		display: grid;
		grid-template-columns: 240px minmax(0, 880px);
		column-gap: 56px;
		justify-content: center;
		align-items: start;
	}

	.simple-page.has-toc .content-single {
		margin: 0;
		max-width: none;
	}

	.simple-page__toc {
		position: sticky;
		top: 140px;
		max-height: calc(100vh - 170px);
		overflow-y: auto;
		margin: 24px 0 0;
		padding-right: 8px;
	}

	.simple-page__toc-toggle {
		display: none;
	}

	.simple-page__toc-list {
		display: block;
		padding: 0;
	}
}
