/* ============================================
   Sainik Auto Deals - Legal Pages Styles
   ============================================ */

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

/* Color Variables */
:root {
	--sa-primary: #d62127;
	--sa-primary-dark: #b82026;
	--sa-secondary: #1a1a1a;
	--sa-light-bg: #f8f8f8;
	--sa-grey-light: #e8e8e8;
	--sa-text-dark: #333333;
	--sa-text-light: #666666;
	--sa-white: #ffffff;
	--sa-border: #dddddd;
	--sa-warning: #f39c12;
}

/* ============================================
   GLOBAL STYLES
   ============================================ */

.sa-container {
	max-width: 900px;
	margin: 0 auto;
	padding: 0 20px;
}

html {
	scroll-behavior: smooth;
}


/* ============================================
   LEGAL SECTION
   ============================================ */

.sa-legal-section {
	padding: 80px 20px;
	background: var(--sa-light-bg);
	min-height: calc(100vh - 300px);
}

.sa-legal-content {
	background: var(--sa-white);
	padding: 50px;
	border-radius: 15px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

/* ============================================
   LEGAL HEADER
   ============================================ */

.sa-legal-header {
	margin-bottom: 50px;
	animation: fadeInUp 0.8s ease-out;
}

.sa-legal-title {
	font-size: 42px;
	font-weight: 700;
	color: var(--sa-text-dark);
	margin-bottom: 15px;
	line-height: 1.2;
	letter-spacing: 1px;
}

.sa-legal-title .sa-highlight {
	color: var(--sa-primary);
}

.sa-legal-subtitle {
	font-size: 14px;
	color: var(--sa-text-light);
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 1px;
	margin-bottom: 20px;
}

.sa-legal-intro {
	font-size: 16px;
	color: var(--sa-text-light);
	line-height: 1.8;
	border-left: 4px solid var(--sa-primary);
	padding-left: 20px;
	padding-top: 5px;
	letter-spacing: 1px;
	padding-bottom: 5px;
}

/* ============================================
   TABLE OF CONTENTS
   ============================================ */

.sa-toc-box {
	background: linear-gradient(135deg, rgba(255, 114, 56, 0.05), rgba(255, 107, 32, 0.02));
	border: 2px solid var(--sa-border);
	border-radius: 12px;
	padding: 30px;
	margin-bottom: 50px;
	animation: slideInUp 0.8s ease-out;
}

.sa-toc-title {
	font-size: 20px;
	font-weight: 700;
	color: var(--sa-text-dark);
	margin-bottom: 20px;
	letter-spacing: 1px;
}

.sa-toc-list {
	list-style: none;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 15px;
}

@media (max-width: 768px) {
	.sa-toc-list {
		grid-template-columns: 1fr;
	}
}

.sa-toc-list li {
	font-size: 14px;
	letter-spacing: 1px;
}

.sa-toc-list a {
	color: var(--sa-primary);
	text-decoration: none;
	font-weight: 500;
	transition: all 0.3s ease;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.sa-toc-list a::before {
	content: '▸';
	display: inline-block;
}

.sa-toc-list a:hover {
	color: var(--sa-primary-dark);
	text-decoration: underline;
	transform: translateX(5px);
}

/* ============================================
   SECTION CONTENT
   ============================================ */

.sa-legal-section-content {
	margin-bottom: 30px;
	padding-bottom: 20px;
	border-bottom: 1px solid var(--sa-grey-light);
	scroll-margin-top: 20px;
	animation: fadeInUp 0.6s ease-out;
}

.sa-legal-section-content:last-of-type {
	border-bottom: none;
	margin-bottom: 0;
	padding-bottom: 0;
}

.sa-section-title {
	font-size: 24px;
	font-weight: 500;
	color: var(--sa-text-dark);
	margin-bottom: 20px;
	display: flex;
	align-items: center;
	gap: 10px;
	letter-spacing: 1px;
}

.sa-section-title::before {
	content: '◆';
	color: var(--sa-primary);
	font-size: 18px;
}

.sa-section-text {
	font-size: 15px;
	color: var(--sa-text-light);
	line-height: 1.8;
	margin-bottom: 16px;
	letter-spacing: 1px;
}

.sa-section-text:last-of-type {
	margin-bottom: 0;
}

.sa-section-text strong {
	color: var(--sa-text-dark);
	font-weight: 600;
}

/* ============================================
   BULLET LISTS
   ============================================ */

.sa-bullet-list {
	list-style: none;
	margin-bottom: 20px;
	margin-left: 0;
	padding-left: 0;
	margin-top: 20px;
}

.sa-bullet-list li {
	font-size: 15px;
	color: var(--sa-text-light);
	line-height: 1.8;
	margin-bottom: 12px;
	letter-spacing: 1px;
	padding-left: 30px;
	position: relative;
}

.sa-bullet-list li::before {
	content: '✓';
	position: absolute;
	left: 0;
	color: var(--sa-primary);
	font-weight: 700;
	display: inline-block;
	width: 20px;
	text-align: center;
}

.sa-bullet-list li strong {
	color: var(--sa-text-dark);
	font-weight: 600;
}

/* ============================================
   CONTACT DETAILS
   ============================================ */

.sa-contact-details {
	background: linear-gradient(135deg, rgba(255, 114, 56, 0.08), rgba(255, 107, 32, 0.04));
	border: 2px solid var(--sa-border);
	border-radius: 8px;
	padding: 25px;
	margin-top: 15px;
	margin-bottom: 0;
}

.sa-contact-details p {
	font-size: 15px;
	color: var(--sa-text-light);
	margin-bottom: 10px;
	line-height: 1.6;
	letter-spacing: 1px;
}

.sa-contact-details p:last-child {
	margin-bottom: 0;
}

.sa-contact-details strong {
	color: var(--sa-text-dark);
	font-weight: 700;
}

.sa-contact-details a {
	color: var(--sa-primary);
	text-decoration: none;
	font-weight: 600;
	transition: all 0.3s ease;
}

.sa-contact-details a:hover {
	color: var(--sa-primary-dark);
	text-decoration: underline;
}

/* ============================================
   NOTICE BOX
   ============================================ */

.sa-notice-box {
	background: linear-gradient(135deg, rgba(243, 156, 18, 0.08), rgba(230, 126, 34, 0.04));
	border: 3px solid var(--sa-warning);
	border-radius: 12px;
	padding: 30px;
	margin-top: 50px;
	animation: slideInUp 0.8s ease-out;
}

.sa-notice-title {
	font-size: 20px;
	font-weight: 700;
	color: var(--sa-warning);
	margin-bottom: 15px;
	letter-spacing: 1px;
	display: flex;
	align-items: center;
	gap: 10px;
}

.sa-notice-text {
	font-size: 15px;
	color: var(--sa-text-dark);
	line-height: 1.8;
	margin-bottom: 12px;
	letter-spacing: 1px;
}

.sa-notice-text:last-child {
	margin-bottom: 0;
}

.sa-notice-text strong {
	color: var(--sa-primary);
	font-weight: 700;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.sa-highlight {
	color: var(--sa-primary);
	font-weight: 700;
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes slideInUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
	.sa-legal-section {
		padding: 50px 20px;
	}

	.sa-legal-content {
		padding: 30px 20px;
		border-radius: 12px;
	}

	.sa-legal-title {
		font-size: 32px;
	}

	.sa-legal-intro {
		padding-left: 15px;
		font-size: 15px;
	}

	.sa-toc-box {
		padding: 20px;
	}

	.sa-section-title {
		font-size: 20px;
	}

	.sa-section-text {
		font-size: 14px;
		text-align: left;
	}

	.sa-contact-details {
		padding: 20px;
	}

	.sa-notice-box {
		padding: 20px;
	}
}

@media (max-width: 576px) {
	.sa-legal-section {
		padding: 30px 15px;
	}

	.sa-legal-content {
		padding: 20px 15px;
		border-radius: 10px;
	}

	.sa-legal-title {
		font-size: 24px;
	}

	.sa-legal-intro {
		padding-left: 12px;
		font-size: 14px;
	}

	.sa-toc-box {
		padding: 15px;
		margin-bottom: 30px;
	}

	.sa-toc-title {
		font-size: 18px;
	}

	.sa-toc-list li {
		font-size: 13px;
	}

	.sa-section-title {
		font-size: 18px;
	}

	.sa-section-text {
		font-size: 13px;
		line-height: 1.7;
		margin-bottom: 14px;
	}

	.sa-bullet-list li {
		font-size: 13px;
		padding-left: 25px;
		margin-bottom: 10px;
	}

	.sa-contact-details {
		padding: 15px;
	}

	.sa-contact-details p {
		font-size: 13px;
	}

	.sa-notice-box {
		padding: 15px;
		margin-top: 30px;
	}

	.sa-notice-title {
		font-size: 16px;
	}

	.sa-notice-text {
		font-size: 13px;
	}
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
	.sa-legal-section-content {
		page-break-inside: avoid;
	}

	.sa-toc-box {
		page-break-inside: avoid;
	}

	a {
		text-decoration: none;
	}

	.sa-legal-content {
		box-shadow: none;
		border: 1px solid #ccc;
	}
}

/* ============================================
   SCROLL TO TOP BUTTON
   ============================================ */

::-webkit-scrollbar {
	width: 10px;
}

::-webkit-scrollbar-track {
	background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
	background: var(--sa-primary);
	border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
	background: var(--sa-primary-dark);
}
