:root {
	--primary-color: #4a6cf7;
	--secondary-color: #6f42c1;
	--accent-color: #0d6efd;
	--light-bg: #f8f9fa;
	--dark-text: #212529;
	--light-text: #6c757d;
	--border-color: #dee2e6;
}

body {
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	color: var(--dark-text);
	line-height: 1.6;
	background-color: #fff;
}

.terms-hero {
	background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
	color: white;
	padding: 7rem 0 3rem;
	margin-bottom: 40px;
}

.terms-hero h1 {
	font-size: 2.5rem;
	font-weight: 700;
	margin-bottom: 20px;
}

.terms-hero p {
	font-size: 1.1rem;
	opacity: 0.9;
	max-width: 700px;
	margin: 0 auto;
}

.terms-container {
	padding: 0 15px;
	max-width: 1200px;
	margin: 0 auto;
}

.terms-content {
	background: white;
	border-radius: 12px;
	box-shadow: 0 5px 25px rgba(0, 0, 0, 0.06);
	padding: 40px;
	margin-bottom: 60px;
}

.terms-section {
	margin-bottom: 40px;
	padding-bottom: 30px;
	border-bottom: 1px solid var(--border-color);
}

.terms-section:last-child {
	border-bottom: none;
	margin-bottom: 0;
	padding-bottom: 0;
}

.terms-section h2 {
	color: var(--primary-color);
	font-size: 1.8rem;
	margin-bottom: 20px;
	font-weight: 600;
	position: relative;
	padding-bottom: 10px;
}

.terms-section h2:after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 60px;
	height: 3px;
	background: var(--primary-color);
	border-radius: 3px;
}

.terms-section h4 {
	color: var(--secondary-color);
	font-size: 1.3rem;
	margin: 15px 0 15px;
	font-weight: 600;
}

.terms-section p {
	margin-bottom: 15px;
	color: #495057;
}

.terms-section ul {
	padding-left: 20px;
	margin-bottom: 20px;
}

.terms-section ul li {
	margin-bottom: 8px;
	position: relative;
}

.terms-section ul li:before {
	content: "•";
	color: var(--primary-color);
	font-weight: bold;
	display: inline-block;
	width: 1em;
	margin-left: -1em;
}

.highlight-box {
	background-color: var(--light-bg);
	border-left: 4px solid var(--primary-color);
	padding: 20px;
	border-radius: 4px;
	margin: 25px 0;
}

.back-to-top {
	position: fixed;
	bottom: 30px;
	right: 30px;
	background: var(--primary-color);
	color: white;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
	opacity: 0;
	transition: all 0.3s ease;
	z-index: 1000;
}

.back-to-top.show {
	opacity: 1;
}

.back-to-top:hover {
	background: var(--secondary-color);
	transform: translateY(-3px);
}

.toc-container {
	background: var(--light-bg);
	border-radius: 8px;
	padding: 25px;
	margin-bottom: 40px;
}

.toc-title {
	font-size: 1.3rem;
	margin-bottom: 15px;
	color: var(--primary-color);
	font-weight: 600;
}

.toc-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.toc-list li {
	margin-bottom: 10px;
	position: relative;
	padding-left: 20px;
}

.toc-list li:before {
	content: "→";
	position: absolute;
	left: 0;
	color: var(--primary-color);
}

.toc-list a {
	color: var(--dark-text);
	text-decoration: none;
	transition: all 0.2s ease;
}

.toc-list a:hover {
	color: var(--primary-color);
	text-decoration: underline;
}

@media (max-width: 768px) {
	.terms-hero {
		padding: 7rem 0 3rem;
	}

	.terms-hero h1 {
		font-size: 2rem;
	}

	.terms-content {
		padding: 25px;
	}

	.terms-section h2 {
		font-size: 1.5rem;
	}

	.terms-section h4 {
		font-size: 1.2rem;
	}
}