/**
 * SleepOps Terms, Privacy and Refund Policy Styles
 */

/* -------------------------------------------------------------------------
   Page wrapper
   ------------------------------------------------------------------------- */
.sleepops-terms-page {
	max-width: 800px;
	margin: 0 auto;
	padding: 3rem 1.5rem 5rem;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	color: #1a1a1a;
}

/* -------------------------------------------------------------------------
   Header
   ------------------------------------------------------------------------- */
.terms-header {
	margin-bottom: 3rem;
	padding-bottom: 2rem;
	border-bottom: 2px solid #e6eaea;
}

.terms-header__title {
	font-size: 2.25rem;
	font-weight: 700;
	color: #1a1a1a;
	margin-bottom: 0.5rem;
	line-height: 1.2;
}

.terms-header__meta {
	font-size: 0.85rem;
	color: #6b7c80;
	margin-bottom: 1.25rem;
	font-weight: 500;
}

.terms-header__lead {
	font-size: 1.05rem;
	color: #3d5054;
	line-height: 1.7;
	max-width: 680px;
	margin: 0;
}

/* -------------------------------------------------------------------------
   Table of Contents
   ------------------------------------------------------------------------- */
.terms-toc {
	background: #f7f9fa;
	border: 1px solid #e6eaea;
	border-radius: 10px;
	padding: 1.5rem 2rem;
	margin-bottom: 3rem;
}

.terms-toc__title {
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #6b7c80;
	margin-bottom: 1rem;
}

.terms-toc__list {
	list-style: none;
	padding: 0;
	margin: 0;
	columns: 2;
	column-gap: 2rem;
}

@media (max-width: 600px) {
	.terms-toc__list {
		columns: 1;
	}
}

.terms-toc__item {
	margin-bottom: 0.55rem;
	break-inside: avoid;
}

.terms-toc__link {
	font-size: 0.9rem;
	color: #2e3a3f;
	text-decoration: none;
	font-weight: 500;
	transition: color 0.15s;
}

.terms-toc__link:hover {
	color: #5a8a8f;
	text-decoration: underline;
}

/* Sub-list inside TOC (for Privacy Policy subsections) */
.terms-toc__sublist {
	list-style: none;
	padding: 0;
	margin: 0.35rem 0 0 1rem;
}

.terms-toc__subitem {
	margin-bottom: 0.3rem;
}

.terms-toc__sublink {
	font-size: 0.82rem;
	color: #6b7c80;
	text-decoration: none;
	transition: color 0.15s;
}

.terms-toc__sublink:hover {
	color: #2e3a3f;
	text-decoration: underline;
}

/* -------------------------------------------------------------------------
   Section
   ------------------------------------------------------------------------- */
.terms-section {
	margin-bottom: 2.75rem;
	padding-bottom: 2.75rem;
	border-bottom: 1px solid #e6eaea;
}

.terms-section:last-child {
	border-bottom: none;
}

.terms-section__heading {
	font-size: 1.2rem;
	font-weight: 700;
	color: #1a1a1a;
	margin-bottom: 1.1rem;
	display: flex;
	align-items: center;
	gap: 0.6rem;
}

.terms-section__number {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1.75rem;
	height: 1.75rem;
	background: #2e3a3f;
	color: #ffffff;
	font-size: 0.72rem;
	font-weight: 700;
	border-radius: 50%;
	flex-shrink: 0;
	line-height: 1;
	padding: 0 0.3rem;
}

/* -------------------------------------------------------------------------
   Section body content
   ------------------------------------------------------------------------- */
.terms-section__body {
	font-size: 0.97rem;
	line-height: 1.75;
	color: #3d5054;
}

.terms-lead {
	margin-bottom: 0.85rem;
	font-size: 0.97rem;
	color: #3d5054;
}

.terms-text {
	margin-top: 0.85rem;
	margin-bottom: 0.35rem;
	font-size: 0.95rem;
	color: #3d5054;
}

.terms-text:first-child {
	margin-top: 0;
}

.terms-text--warning {
	color: #7a4a20;
	font-weight: 500;
}

/* Highlighted callout (refund deadline, risk notice) */
.terms-highlight {
	margin-top: 1rem;
	margin-bottom: 0.5rem;
	padding: 0.75rem 1rem;
	background: #f7f9fa;
	border-left: 3px solid #2e3a3f;
	border-radius: 0 6px 6px 0;
	font-size: 0.95rem;
	font-weight: 600;
	color: #2e3a3f;
}

.terms-highlight--warning {
	background: #fff8f0;
	border-left-color: #b45309;
	color: #7a4a20;
}

/* Lists */
.terms-list {
	list-style: none;
	padding: 0;
	margin: 0.35rem 0 0.5rem 0;
}

.terms-list li {
	padding: 0.3rem 0 0.3rem 1.5rem;
	position: relative;
	font-size: 0.95rem;
	color: #3d5054;
}

.terms-list li::before {
	content: '–';
	position: absolute;
	left: 0.4rem;
	color: #6b7c80;
	font-weight: 600;
}

.terms-list--warning li::before {
	color: #b45309;
}

/* Inline code */
.terms-text code,
.terms-subsection__body code {
	background: #f0f4f5;
	padding: 2px 6px;
	border-radius: 4px;
	font-size: 0.85rem;
	font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
	color: #2e3a3f;
	border: 1px solid #d6e0e2;
}

/* -------------------------------------------------------------------------
   Subsections (Privacy Policy 10.x)
   ------------------------------------------------------------------------- */
.terms-subsections {
	margin-top: 1.25rem;
}

.terms-subsection {
	margin-bottom: 1.75rem;
	padding: 1.25rem 1.5rem;
	background: #f7f9fa;
	border: 1px solid #e6eaea;
	border-radius: 8px;
}

.terms-subsection:last-child {
	margin-bottom: 0;
}

.terms-subsection__heading {
	font-size: 1rem;
	font-weight: 700;
	color: #1a1a1a;
	margin-bottom: 0.85rem;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.terms-subsection__number {
	font-size: 0.75rem;
	font-weight: 700;
	color: #6b7c80;
	background: #e6eaea;
	padding: 2px 8px;
	border-radius: 20px;
	flex-shrink: 0;
}

.terms-subsection__body {
	font-size: 0.93rem;
	line-height: 1.7;
	color: #3d5054;
}

.terms-subsection__body .terms-text {
	font-size: 0.93rem;
}

.terms-subsection__body .terms-list li {
	font-size: 0.93rem;
}

/* -------------------------------------------------------------------------
   Contact link
   ------------------------------------------------------------------------- */
.terms-contact {
	margin-top: 0.5rem;
}

.terms-contact a {
	color: #2e3a3f;
	font-weight: 600;
	text-decoration: none;
	border-bottom: 1px solid #2e3a3f;
	transition: color 0.15s, border-color 0.15s;
}

.terms-contact a:hover {
	color: #5a8a8f;
	border-color: #5a8a8f;
}

/* -------------------------------------------------------------------------
   Footer note
   ------------------------------------------------------------------------- */
.terms-footer-note {
	margin-top: 3rem;
	padding: 1.5rem 2rem;
	background: #f7f9fa;
	border-radius: 10px;
	border: 1px solid #e6eaea;
	text-align: center;
}

.terms-footer-note p {
	margin: 0;
	font-size: 0.9rem;
	color: #6b7c80;
}

.terms-footer-note a {
	color: #2e3a3f;
	font-weight: 600;
	text-decoration: none;
}

.terms-footer-note a:hover {
	color: #5a8a8f;
	text-decoration: underline;
}

/* -------------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------------- */
@media (max-width: 640px) {
	.sleepops-terms-page {
		padding: 2rem 1.25rem 3rem;
	}

	.terms-header__title {
		font-size: 1.6rem;
	}

	.terms-toc {
		padding: 1.25rem;
	}

	.terms-section__heading {
		font-size: 1.05rem;
	}

	.terms-subsection {
		padding: 1rem 1.1rem;
	}
}
