/* Terms Page Template Styles */
.terms-page {
	background-color: #F5F5F5;
	min-height: 100vh;
	padding: 40px 0;
	font-family: 'Montserrat', sans-serif;
	margin: 0;
	left: 0;
	right: 0;
}

/* Ensure body and html don't interfere */
body.page-template-terms {
	background-color: #F5F5F5 !important;
	margin: 0 !important;
	padding: 0 !important;
}

html {
	background-color: #F5F5F5;
}

/* Remove any default WordPress body margin */
body {
	margin: 0;
	padding: 0;
}

/* Ensure all parent elements allow full width */
main#primary {
	margin: 20px auto;
	padding: 0;
	width: 100%;
}

#page {
	margin: 0;
	padding: 0;
	width: 100%;
}

.terms-container {
	max-width: 1040px;
	margin: 0 auto;
	padding: 60px 80px;
}

.terms-header {
	text-align: center;
	margin-bottom: 40px;
}

.terms-title {
	font-family: "TOP_LUXURY-Regular", serif;
	font-style: normal;
	font-weight: 400;
	font-size: 48px;
	line-height: 28px;
	color: #000000;
	margin: 0;
}

.terms-content {
	font-size: 15px;
	line-height: 28px; /* 187% as specified */
	color: #000000;
	font-weight: 300;
	font-family: 'Montserrat', sans-serif;
}

/* Prose styling for optimal readability */
.terms-content h1,
.terms-content h2,
.terms-content h3,
.terms-content h4,
.terms-content h5,
.terms-content h6 {
	font-weight: 400;
	color: #000000;
	margin-top: 2.5em;
	margin-bottom: 1.2em;
	line-height: 1.4;
	font-family: 'Montserrat', sans-serif;
}

.terms-content h1 {
	font-size: 26px;
	font-weight: 400;
}

.terms-content h2 {
	font-size: 20px;
	font-weight: 400;
}

.terms-content h3 {
	font-size: 18px;
	font-weight: 400;
}

.terms-content h4 {
	font-size: 16px;
	font-weight: 500;
}

.terms-content p {
	margin-bottom: 1.5em;
}

.terms-content ul,
.terms-content ol {
	margin-bottom: 1.5em;
	padding-left: 30px;
	list-style: disc;
}

.terms-content li {
	margin-bottom: 0.8em;
	line-height: 28px;
}

.terms-content a {
	color: #000000;
	text-decoration: underline;
	transition: opacity 0.3s ease;
}

.terms-content a:hover {
	opacity: 0.7;
}

.terms-content strong,
.terms-content b {
	font-weight: 500;
	color: #000000;
	font-size: 20px;
}

.terms-content blockquote {
	margin: 2em 0;
	padding: 20px 30px;
	background-color: #F9F9F9;
	border-left: 4px solid #000000;
	font-style: normal;
	line-height: 28px;
}

.terms-content hr {
	border: none;
	height: 1px;
	background-color: #E0E0E0;
	margin: 3em 0;
}

.terms-content code {
	background-color: #F5F5F5;
	padding: 2px 6px;
	border-radius: 3px;
	font-family: 'Montserrat', monospace;
	font-size: 14px;
}

.terms-content pre {
	background-color: #F5F5F5;
	padding: 20px;
	border-radius: 5px;
	overflow-x: auto;
	margin: 1.5em 0;
	font-family: 'Montserrat', monospace;
	line-height: 24px;
}

.terms-content pre code {
	background: none;
	padding: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
	.terms-page {
		padding: 30px 0;
	}

	.terms-container {
		padding: 40px 30px;
		max-width: 100%;
		margin: 0 auto;
	}

	.terms-title {
		font-size: 36px;
		line-height: 40px;
	}

	.terms-content h1 {
		font-size: 24px;
	}

	.terms-content h2 {
		font-size: 20px;
	}

	.terms-content h3 {
		font-size: 18px;
	}

	.terms-content {
		font-size: 15px;
		line-height: 26px;
	}

	.terms-content li {
		line-height: 26px;
	}
}

@media (max-width: 480px) {
	.terms-page {
		padding: 20px 0;
	}

	.terms-container {
		padding: 30px 25px;
		margin: 0 auto;
	}

	.terms-title {
		font-size: 28px;
		line-height: 32px;
	}

	.terms-content h1 {
		font-size: 20px;
	}

	.terms-content h2 {
		font-size: 18px;
	}

	.terms-content h3 {
		font-size: 16px;
	}

	.terms-content {
		font-size: 14px;
		line-height: 24px;
	}

	.terms-content li {
		line-height: 24px;
	}

	.terms-content ul,
	.terms-content ol {
		padding-left: 20px;
	}
}