/* Legal Page Styles */

.legal-wrap {
	margin-top: 108px;
	margin-bottom: 108px;
	width: 100%;
	box-sizing: border-box;
}

.legal-title {
	color: var(--Black, #171717);
	font-size: 50px;
	font-weight: 400;
	line-height: 104%;
	letter-spacing: -1.3px;
	margin-bottom: 102px;
}

.legal-content-wrapper {
	display: flex;
	gap: 128px;
	align-items: flex-start;
	width: 100%;
	max-width: 1167px;
	margin: 0 auto;
	box-sizing: border-box;
	position: relative;
}

.legal-toc-column {
	flex: 0 0 300px;
	position: sticky;
	top: 130px;
	max-width: 300px;
	box-sizing: border-box;
	align-self: flex-start;
	height: fit-content;
}

.legal-content-column {
	flex: 0 1 739px;
	max-width: 739px;
	box-sizing: border-box;
}

.legal-content-wrapper:not(:has(.legal-toc-column)) {
	max-width: 739px;
}

.legal-content-wrapper:not(:has(.legal-toc-column)) .legal-content-column {
	flex: 1;
	max-width: none;
}

@media all and (max-width: 1024px) {
	.legal-content-wrapper {
		gap: 30px;
		max-width: 100%;
	}
	
	.legal-toc-column {
		flex: 0 0 250px;
		max-width: 250px;
	}
	
	.legal-content-column {
		flex: 1;
		max-width: none;
	}
}

.legal-wrap h2 {
	color: var(--Black, #171717);
	font-size: 26px;
	font-weight: 400;
	line-height: 110%;
	letter-spacing: -0.52px;
	margin-bottom: 24px;
}

.legal-wrap h2:not(:first-child) {
	margin-top: 60px;
}

.legal-wrap h3,
.legal-wrap h4 {
	margin-top: 46px;
	margin-bottom: 46px;
}

.legal-wrap .wp-block-table {
	border-radius: 24px;
	background: var(--Light-Grey, #EFEFEF);
	margin-bottom: 24px;
}

.legal-wrap .wp-block-table table {
	background: transparent;
	border-radius: 24px;
	margin: 0;
	padding: 0;
	border: none;
	border-collapse: separate;
	border-spacing: 0;
	width: 100%;
	overflow: hidden;
}

.legal-wrap .wp-block-table table td,
.legal-wrap .wp-block-table table th {
	border: none;
	border-bottom: 1px solid var(--Dark-Grey, #D4D4D4);
	padding: 14px 30px;
	vertical-align: top;
	background: #fff;
	font-size: 14px;
	min-width: 94px;
}

.legal-wrap .wp-block-table table tr:first-child td,
.legal-wrap .wp-block-table table tr:first-child th {
	padding-top: 16px;
	padding-bottom: 14px;
	padding-left: 30px;
	padding-right: 30px;
}

.legal-wrap .wp-block-table table tr:last-child td,
.legal-wrap .wp-block-table table tr:last-child th {
	padding-top: 14px;
	padding-bottom: 16px;
	padding-left: 30px;
	padding-right: 30px;
	border-bottom: none;
}

.legal-wrap p {
	margin-bottom: 24px;
	font-size: 16px;
}

.legal-wrap .wp-block-list {
	font-size: 16px;
}

.legal-wrap .wp-block-list li {
	font-size: 16px;
	margin-bottom: 8px;
}

.legal-wrap a {
	word-wrap: break-word;
	overflow-wrap: break-word;
}

.legal-wrap ol,
.legal-wrap ul {
	font-style: normal;
	font-weight: 400;
	line-height: 110%;
	display: flex;
	flex-direction: column;
	padding-inline-start: 25px;
}

.legal-wrap .wp-block-table table td {
	line-height: 1.6;
}

@media all and (max-width: 768px) {
	.legal-title {
		margin-bottom: 25px;
		font-size: 36px;
		letter-spacing: -0.9px;
	}
	
	.legal-content-wrapper {
		flex-direction: column;
		gap: 30px;
		width: 100%;
	}
	
	.legal-toc-column {
		flex: none;
		position: static;
		order: 1;
		max-width: 100%;
		width: 100%;
		height: auto;
		align-self: stretch;
	}
	
	.legal-content-column {
		order: 2;
		width: 100%;
	}
	
	.legal-wrap .wp-block-table table {
		display: block;
		border-collapse: separate;
		border-spacing: 0;
	}
	
	.legal-wrap .wp-block-table table thead,
	.legal-wrap .wp-block-table table tbody,
	.legal-wrap .wp-block-table table tr {
		display: block;
	}
	
	.legal-wrap .wp-block-table table td,
	.legal-wrap .wp-block-table table th {
		display: block;
		width: 100%;
		border-bottom: 1px solid var(--Dark-Grey, #D4D4D4);
		padding: 14px 20px;
		box-sizing: border-box;
	}
	
	.legal-wrap .wp-block-table table td:nth-child(1),
	.legal-wrap .wp-block-table table th:nth-child(1) {
		border-bottom: none;
		padding-bottom: 10px;
	}
	
	.legal-wrap .wp-block-table table td:nth-child(2),
	.legal-wrap .wp-block-table table th:nth-child(2) {
		padding-top: 10px;
	}
	
	.legal-wrap .wp-block-table table tr:last-child td,
	.legal-wrap .wp-block-table table tr:last-child th {
		border-bottom: none;
	}
	
	.legal-wrap .wp-block-table table tr:first-child td:nth-child(1),
	.legal-wrap .wp-block-table table tr:first-child th:nth-child(1) {
		padding: 16px 20px 10px 20px !important;
	}
	
	.legal-wrap .wp-block-table table tr:first-child td:nth-child(2),
	.legal-wrap .wp-block-table table tr:first-child th:nth-child(2) {
		padding: 10px 20px 14px 20px !important;
	}
	
	.legal-wrap .wp-block-table table tr:last-child td:nth-child(1),
	.legal-wrap .wp-block-table table tr:last-child th:nth-child(1) {
		padding: 14px 20px 10px 20px !important;
	}
	
	.legal-wrap .wp-block-table table tr:last-child td:nth-child(2),
	.legal-wrap .wp-block-table table tr:last-child th:nth-child(2) {
		padding: 10px 20px 16px 20px !important;
	}
}

@media (min-width: 768px) and (max-width: 1024px) {
	.legal-content-column {
		max-width: calc(100% - 280px);
	}
}
