/* ── Tiny Maket Terms & Conditions Stylesheet ─────────────────────────── */

.terms-wrap {
	padding-top: 18px;
	padding-bottom: 80px;
}

/* ── Hero Header ───────────────────────────────────────────────────────── */
.terms-hero {
	padding: 42px 32px 34px;
	background: radial-gradient(120% 140% at 50% 0%, #2A303A 0%, #1A1E24 55%, #13161A 100%);
	border-radius: var(--r4, 30px);
	color: #ffffff;
	margin-bottom: 36px;
	position: relative;
	overflow: hidden;
	box-shadow: 0 16px 36px -12px rgba(0,0,0,.35);
}

.terms-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background: repeating-linear-gradient(118deg, rgba(255,255,255,.02) 0 1px, transparent 1px 32px);
	pointer-events: none;
}

.terms-hero-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: rgba(236, 28, 36, 0.18);
	border: 1px solid rgba(236, 28, 36, 0.4);
	color: #FF7B80;
	padding: 6px 16px;
	border-radius: 999px;
	font-size: .82rem;
	font-weight: 800;
	margin-bottom: 16px;
	position: relative;
	z-index: 1;
}

.terms-hero-badge svg {
	width: 14px;
	height: 14px;
	fill: currentColor;
}

.terms-title {
	font-size: clamp(1.8rem, 3.6vw, 2.4rem);
	font-weight: 900;
	letter-spacing: -0.6px;
	margin: 0 0 14px;
	color: #ffffff;
	position: relative;
	z-index: 1;
}

.terms-subtitle {
	font-size: .95rem;
	color: rgba(255, 255, 255, 0.82);
	line-height: 1.95;
	max-width: 680px;
	margin: 0 0 24px;
	position: relative;
	z-index: 1;
}

.terms-meta-bar {
	display: flex;
	flex-wrap: wrap;
	gap: 16px 28px;
	padding-top: 18px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	position: relative;
	z-index: 1;
}

.tm-meta-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: .78rem;
	color: rgba(255, 255, 255, 0.75);
}

.tm-meta-item svg {
	width: 14px;
	height: 14px;
	color: #FF6B72;
}

.tm-meta-item b {
	color: #ffffff;
	font-weight: 800;
}

/* ── 2-Column Layout: Sidebar TOC + Content Area ───────────────────────── */
.terms-grid {
	display: grid;
	grid-template-columns: 310px 1fr;
	gap: 32px;
	align-items: start;
}

/* ── Sticky Sidebar TOC ────────────────────────────────────────────────── */
.terms-sidebar {
	position: sticky;
	top: 96px;
}

.terms-toc {
	background: var(--sf, #ffffff);
	border: 1px solid var(--line, #E2E8F0);
	border-radius: var(--r3, 22px);
	padding: 24px 20px;
	box-shadow: 0 4px 18px -4px rgba(0,0,0,.05);
}

.terms-toc-title {
	font-size: 1rem;
	font-weight: 900;
	color: var(--ink, #111418);
	margin: 0 0 16px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--line, #F1F5F9);
}

.terms-toc-nav {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.terms-toc-link {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	border-radius: var(--r1, 10px);
	font-size: .84rem;
	font-weight: 700;
	color: var(--ink2, #4A5568);
	text-decoration: none;
	transition: all .2s ease;
	line-height: 1.4;
}

.terms-toc-link:hover {
	background: var(--sf2, #F8FAFC);
	color: var(--red, #EC1C24);
}

.terms-toc-link.active {
	background: rgba(236, 28, 36, 0.08);
	color: var(--red, #EC1C24);
	font-weight: 800;
}

.terms-toc-link.highlight {
	color: #C2151C;
}

.toc-num {
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--sf2, #F1F5F9);
	color: var(--ink2, #64748B);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: .7rem;
	font-weight: 800;
	flex-shrink: 0;
	transition: background .2s, color .2s;
}

.terms-toc-link.active .toc-num {
	background: var(--red, #EC1C24);
	color: #ffffff;
}

/* Sidebar Quick Support */
.terms-support-card {
	margin-top: 22px;
	padding: 18px 16px;
	background: var(--sf2, #F8FAFC);
	border: 1px solid var(--line, #E2E8F0);
	border-radius: var(--r2, 14px);
}

.terms-support-card h4 {
	font-size: .86rem;
	font-weight: 800;
	margin: 0 0 4px;
	color: var(--ink, #111418);
}

.terms-support-card p {
	font-size: .76rem;
	color: var(--ink3, #6B7280);
	margin: 0 0 12px;
	line-height: 1.65;
}

.terms-support-card .btn {
	width: 100%;
	justify-content: center;
	margin-bottom: 6px;
	font-size: .78rem;
	padding: 8px 14px;
}

.btn-outline-dark {
	background: #ffffff;
	border: 1px solid var(--line, #E2E8F0);
	color: var(--ink, #111418) !important;
}

.btn-outline-dark:hover {
	border-color: var(--ink, #111418);
}

.btn-outline-wa {
	background: rgba(37, 211, 102, 0.1);
	border: 1px solid rgba(37, 211, 102, 0.35);
	color: #128C7E !important;
	font-weight: 800;
}

.btn-outline-wa:hover {
	background: #25D366;
	color: #fff !important;
}

/* ── Terms Content Sections ────────────────────────────────────────────── */
.terms-content {
	display: flex;
	flex-direction: column;
	gap: 28px;
}

.terms-section {
	background: var(--sf, #ffffff);
	border: 1px solid var(--line, #E2E8F0);
	border-radius: var(--r3, 24px);
	padding: 32px 36px;
	box-shadow: 0 4px 14px -4px rgba(0,0,0,.04);
	scroll-margin-top: 100px;
}

.ts-header {
	margin-bottom: 20px;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--line, #F1F5F9);
}

.ts-badge {
	display: inline-block;
	background: var(--sf2, #F1F5F9);
	color: var(--ink3, #64748B);
	font-size: .72rem;
	font-weight: 800;
	padding: 3px 10px;
	border-radius: 999px;
	margin-bottom: 8px;
}

.ts-badge-red {
	background: rgba(236, 28, 36, 0.1);
	color: var(--red, #EC1C24);
}

.ts-header h2 {
	font-size: 1.32rem;
	font-weight: 900;
	color: var(--ink, #111418);
	line-height: 1.45;
	margin: 0;
	letter-spacing: -0.3px;
}

.ts-body {
	font-size: .94rem;
	line-height: 2.15;
	color: var(--ink2, #374151);
}

.ts-body p {
	margin: 0 0 16px;
	line-height: 2.15;
}

.ts-body p:last-child {
	margin-bottom: 0;
}

.ts-body ul,
.ts-body ol {
	padding-inline-start: 22px;
	margin: 16px 0 20px;
}

.ts-body ul li,
.ts-body ol li {
	margin-bottom: 10px;
	line-height: 2.1;
}

.ts-body ul li::marker {
	color: var(--red, #EC1C24);
}

.ts-body ol li::marker {
	color: var(--red, #EC1C24);
	font-weight: 800;
}

/* Callout Alert Boxes */
.ts-callout {
	display: flex;
	gap: 16px;
	padding: 20px 22px;
	border-radius: var(--r2, 16px);
	margin: 20px 0;
}

.ts-callout-info {
	background: #F0F7FF;
	border: 1px solid #BAE0FD;
}

.ts-callout-info .tsc-icon {
	color: #0284C7;
}

.ts-callout-alert {
	background: #FFF5F5;
	border: 1px solid #FED7D7;
}

.ts-callout-alert .tsc-icon {
	color: var(--red, #EC1C24);
}

.tsc-icon {
	flex-shrink: 0;
	width: 28px;
	height: 28px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.tsc-icon svg {
	width: 24px;
	height: 24px;
}

.tsc-content h4 {
	font-size: 1rem;
	font-weight: 900;
	margin: 0 0 6px;
	color: var(--ink, #111418);
}

.tsc-content p {
	font-size: .9rem;
	line-height: 1.95;
	margin: 0;
	color: var(--ink2, #4A5568);
}

/* Numbered Steps for Return Policy */
.ts-steps {
	list-style: none !important;
	padding: 0 !important;
	margin: 22px 0 !important;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.ts-steps li {
	background: var(--sf2, #F8FAFC);
	border: 1px solid var(--line, #E2E8F0);
	border-radius: var(--r2, 14px);
	padding: 16px 20px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.ts-steps li b {
	font-size: .92rem;
	font-weight: 800;
	color: var(--ink, #111418);
}

.ts-steps li span {
	font-size: .88rem;
	color: var(--ink2, #4B5563);
	line-height: 1.95;
}

.ts-note {
	background: #FFFBEB;
	border: 1px solid #FDE68A;
	border-radius: var(--r2, 12px);
	padding: 14px 18px;
	font-size: .88rem;
	color: #92400E;
	line-height: 1.9;
}

.ts-note b {
	color: #78350F;
}

.terms-custom-editor-content {
	background: var(--sf, #ffffff);
	border: 1px solid var(--line, #E2E8F0);
	border-radius: var(--r3, 24px);
	padding: 32px;
	line-height: 2.1;
	font-size: .94rem;
}

/* ── Responsive Media Queries ──────────────────────────────────────────── */
@media (max-width: 900px) {
	.terms-grid {
		grid-template-columns: 1fr;
	}
	.terms-sidebar {
		position: static;
		margin-bottom: 20px;
	}
	.terms-section {
		padding: 24px 20px;
	}
	.terms-hero {
		padding: 32px 20px;
	}
}

@media (max-width: 600px) {
	.ts-callout {
		flex-direction: column;
		gap: 10px;
		padding: 16px;
	}
	.terms-section {
		padding: 20px 16px;
		border-radius: var(--r2, 18px);
	}
	.ts-header h2 {
		font-size: 1.15rem;
	}
}
