/* ─────────────────────────────────────────────────────────
   Términos y Condiciones — Royal Chic Lingerie
   Depende de: royal-chic.css (variables globales)
   ───────────────────────────────────────────────────────── */

/* ── BREADCRUMB ─────────────────────────────────────── */
.rc-breadcrumb {
	background: var(--rc-cream);
	border-bottom: 1px solid var(--rc-cream-border);
    border-top: 1px solid var(--rc-cream-border);
	padding: 16px 60px;
}
.rc-breadcrumb-inner {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 11px;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: var(--rc-muted);
}
.rc-breadcrumb a {
	color: var(--rc-muted);
	text-decoration: none;
	transition: color 0.2s;
}
.rc-breadcrumb a:hover {
	color: var(--rc-gold);
}
.rc-bc-sep {
	color: var(--rc-cream-border);
}
.rc-bc-current {
	color: var(--rc-ink);
}

/* ── HERO ────────────────────────────────────────────── */
.legal-hero {
	background: var(--rc-cream-dk);
	padding: 64px 60px 56px;
	border-bottom: 1px solid var(--rc-cream-border);
	position: relative;
	overflow: hidden;
}
.legal-hero::before {
	content: "§";
	position: absolute;
	top: -40px;
	right: 4%;
	font-family: "Playfair Display", serif;
	font-size: 320px;
	color: rgba(184, 150, 90, 0.07);
	line-height: 1;
	font-style: italic;
	pointer-events: none;
}
.legal-hero-inner {
	max-width: 1400px;
	margin: 0 auto;
	position: relative;
	z-index: 1;
}
.legal-hero .rc-eyebrow {
	margin-bottom: 14px;
}
.legal-hero h1 {
	font-family: "Playfair Display", serif;
	font-size: 52px;
	font-weight: 400;
	line-height: 1.08;
	margin-bottom: 18px;
	max-width: 720px;
}
.legal-hero h1 em {
	font-style: italic;
	color: var(--rc-gold);
}
.legal-hero-meta {
	display: flex;
	gap: 28px;
	flex-wrap: wrap;
	margin-top: 24px;
	padding-top: 24px;
	border-top: 1px solid var(--rc-cream-border);
	max-width: 640px;
}
.legal-hero-meta .item {
	display: flex;
	flex-direction: column;
	gap: 3px;
}
.legal-hero-meta .lbl {
	font-size: var(--rc-fs-tag);
	letter-spacing: 2.5px;
	text-transform: uppercase;
	color: var(--rc-muted);
}
.legal-hero-meta .val {
	font-size: 12px;
	color: var(--rc-ink);
	font-weight: 500;
}
.legal-hero-meta .val b {
	color: var(--rc-gold);
	font-weight: 500;
}

/* Print btn */
.hero-actions {
	position: absolute;
	top: 28px;
	right: 60px;
	display: flex;
	gap: 10px;
	z-index: 2;
}
.hero-action {
	background: #fff;
	border: 1px solid var(--rc-cream-border);
	padding: 10px 16px;
	font-size: var(--rc-fs-btn);
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--rc-ink);
	cursor: pointer;
	font-family: "Inter", sans-serif;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	transition:
		border-color 0.2s,
		color 0.2s;
}
.hero-action:hover {
	border-color: var(--rc-gold);
	color: var(--rc-gold);
}
.hero-action svg {
	width: 13px;
	height: 13px;
	stroke: currentColor;
	fill: none;
	stroke-width: 1.5;
}

/* ── MAIN LAYOUT ─────────────────────────────────────── */
.legal-main {
	display: grid;
	grid-template-columns: 280px 1fr;
	gap: 56px;
	padding: 64px 60px 80px;
	max-width: 1400px;
	margin: 0 auto;
	align-items: start;
	background: var(--rc-cream);
}

/* ── TOC SIDEBAR ─────────────────────────────────────── */
.legal-toc {
	position: sticky;
	top: 90px;
	border-right: 1px solid var(--rc-cream-border);
	padding-right: 24px;
}
.legal-toc-label {
	font-size: var(--rc-fs-tag);
	letter-spacing: 3px;
	text-transform: uppercase;
	color: var(--rc-gold);
	margin-bottom: 20px;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--rc-cream-border);
}
.legal-toc ol {
	list-style: none;
	padding: 0;
	margin: 0;
	counter-reset: toc;
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.legal-toc a {
	display: flex;
	gap: 12px;
	padding: 10px 14px;
	font-size: 12px;
	color: var(--rc-ink);
	text-decoration: none;
	border-left: 2px solid transparent;
	line-height: 1.4;
	transition: all 0.2s;
	counter-increment: toc;
	align-items: baseline;
}
.legal-toc a::before {
	content: counter(toc, decimal-leading-zero);
	font-family: "Playfair Display", serif;
	font-style: italic;
	color: var(--rc-cream-border);
	font-size: var(--rc-fs-reading);
	flex-shrink: 0;
	transition: color 0.2s;
}
.legal-toc a:hover {
	color: var(--rc-gold);
	background: rgba(184, 150, 90, 0.03);
}
.legal-toc a:hover::before {
	color: var(--rc-gold);
}
.legal-toc a.active {
	color: var(--rc-ink);
	border-left-color: var(--rc-gold);
	font-weight: 500;
	background: rgba(184, 150, 90, 0.05);
}
.legal-toc a.active::before {
	color: var(--rc-gold);
}
.legal-toc-progress {
	margin-top: 20px;
	padding-top: 20px;
	border-top: 1px solid var(--rc-cream-border);
	font-size: var(--rc-fs-btn);
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: var(--rc-muted);
}
.legal-toc-bar {
	height: 3px;
	background: var(--rc-cream-border);
	margin-top: 10px;
	position: relative;
	overflow: hidden;
}
.legal-toc-bar-fill {
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	background: var(--rc-gold);
	width: 0%;
	transition: width 0.15s;
}

/* ── CONTENT ─────────────────────────────────────────── */
.legal-content {
	min-width: 0;
	max-width: 760px;
}

/* Drop cap intro */
.legal-intro {
	font-size: 15px;
	line-height: 1.95;
	color: #3c3a35;
	margin-bottom: 44px;
	padding-bottom: 32px;
	border-bottom: 1px solid var(--rc-cream-border);
	font-family: "Playfair Display", serif;
	font-style: italic;
}
.legal-intro::first-letter {
	font-size: 52px;
	float: left;
	line-height: 0.9;
	padding: 6px 12px 0 0;
	color: var(--rc-gold);
	font-family: "Playfair Display", serif;
	font-weight: 400;
	font-style: normal;
}

/* Sections */
.legal-section {
	margin-bottom: 52px;
	scroll-margin-top: 90px;
}
.legal-section-head {
	display: flex;
	align-items: flex-start;
	gap: 20px;
	margin-bottom: 20px;
}
.legal-section-num {
	font-family: "Playfair Display", serif;
	font-size: 44px;
	color: var(--rc-gold);
	line-height: 0.9;
	font-style: italic;
	flex-shrink: 0;
	width: 72px;
}
.legal-section-title {
	font-family: "Playfair Display", serif;
	font-size: 28px;
	font-weight: 400;
	line-height: 1.2;
	padding-top: 4px;
	color: var(--rc-ink);
}
.legal-body {
	padding-left: 92px;
	font-size: 14px;
	line-height: 1.95;
	color: #3c3a35;
}
.legal-body p {
	margin-bottom: 14px;
}
.legal-body strong {
	color: var(--rc-ink);
	font-weight: 500;
}
.legal-body a {
	color: var(--rc-gold);
	text-decoration: underline;
	text-underline-offset: 2px;
	text-decoration-color: rgba(184, 150, 90, 0.4);
}
.legal-body a:hover {
	text-decoration-color: var(--rc-gold);
}

/* Subsection label */
.legal-sub {
	margin-top: 24px;
	margin-bottom: 16px;
	font-size: 11px;
	letter-spacing: 3px;
	text-transform: uppercase;
	color: var(--rc-ink);
	font-weight: 500;
	display: flex;
	align-items: center;
	gap: 14px;
}
.legal-sub::before {
	content: "";
	width: 22px;
	height: 1px;
	background: var(--rc-gold);
	flex-shrink: 0;
}

/* Lists */
.legal-body ul,
.legal-body ol {
	list-style: none;
	margin: 10px 0 16px;
	padding-left: 0;
}
.legal-body ul li {
	padding: 6px 0 6px 22px;
	position: relative;
}
.legal-body ul li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 15px;
	width: 8px;
	height: 1px;
	background: var(--rc-gold);
}
.legal-body ol {
	counter-reset: lst;
}
.legal-body ol li {
	padding: 6px 0 6px 34px;
	position: relative;
	counter-increment: lst;
}
.legal-body ol li::before {
	content: counter(lst, decimal-leading-zero);
	position: absolute;
	left: 0;
	top: 6px;
	font-family: "Playfair Display", serif;
	font-style: italic;
	color: var(--rc-gold);
	font-size: var(--rc-fs-reading);
}

/* Callout */
.legal-callout {
	background: var(--rc-cream-dk);
	border-left: 2px solid var(--rc-gold);
	padding: 18px 22px;
	margin: 20px 0;
	font-size: var(--rc-fs-reading);
	line-height: 1.8;
}
.legal-callout b {
	color: var(--rc-ink);
	font-weight: 500;
	letter-spacing: 0.3px;
}
.legal-callout--warn {
	background: #fff6e6;
}

/* Definitions list */
.legal-defs {
	margin: 16px 0;
	border-top: 1px solid var(--rc-cream-border);
}
.legal-defs dt {
	font-size: 11px;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--rc-gold);
	font-weight: 500;
	padding-top: 14px;
}
.legal-defs dd {
	font-size: 13.5px;
	line-height: 1.85;
	color: #3c3a35;
	padding: 4px 0 14px;
	border-bottom: 1px solid var(--rc-cream-border);
	margin-left: 0;
}

/* Section divider */
.legal-divider {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 32px 0 24px;
	color: var(--rc-cream-border);
}
.legal-divider::before,
.legal-divider::after {
	content: "";
	flex: 1;
	height: 1px;
	background: var(--rc-cream-border);
}
.legal-divider span {
	font-family: "Playfair Display", serif;
	font-style: italic;
	color: var(--rc-gold);
	font-size: 14px;
}

/* Agreement box */
.legal-agreement {
	margin-top: 64px;
	padding: 36px;
	background: var(--rc-ink);
	color: var(--rc-cream);
	border-left: 3px solid var(--rc-gold);
}
.legal-agreement .rc-eyebrow {
	color: var(--rc-gold);
	margin-bottom: 12px;
}
.legal-agreement h3 {
	font-family: "Playfair Display", serif;
	font-size: 22px;
	font-weight: 400;
	margin-bottom: 14px;
	line-height: 1.3;
	color: var(--rc-cream);
}
.legal-agreement p {
	font-size: var(--rc-fs-reading);
	line-height: 1.85;
	color: #a09880;
	margin-bottom: 18px;
}
.legal-agreement p strong {
	color: var(--rc-cream);
	font-weight: 500;
}
.legal-agreement-actions {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	padding-top: 18px;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Back to top */
.legal-back-top {
	position: fixed;
	bottom: 28px;
	right: 28px;
	width: 44px;
	height: 44px;
	background: var(--rc-ink);
	color: var(--rc-gold-lt);
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 400;
	opacity: 0;
	transform: translateY(10px);
	transition: all 0.25s;
	border-radius: 50%;
}
.legal-back-top.show {
	opacity: 1;
	transform: translateY(0);
}
.legal-back-top:hover {
	background: var(--rc-gold);
	color: #fff;
}
.legal-back-top svg {
	width: 14px;
	height: 14px;
	stroke: currentColor;
	fill: none;
	stroke-width: 2;
}

/* ── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 1000px) {
	.legal-main {
		grid-template-columns: 1fr;
		gap: 36px;
		padding: 48px 28px 56px;
	}
	.legal-toc {
		position: static;
		border-right: none;
		padding-right: 0;
		padding-bottom: 4px;
		border-bottom: 1px solid var(--rc-cream-border);
		margin-bottom: 8px;
		overflow-x: auto;
	}
	.legal-toc ol {
		flex-direction: row;
		overflow-x: auto;
		gap: 0;
		padding-bottom: 6px;
		flex-wrap: nowrap;
		width: max-content;
		-webkit-overflow-scrolling: touch;
	}
	.legal-toc a {
		border-left: none;
		border-bottom: 2px solid transparent;
		padding: 8px 14px;
		white-space: nowrap;
		flex-shrink: 0;
		font-size: 11px;
	}
	.legal-toc a:hover,
	.legal-toc a.active {
		border-left-color: transparent;
		border-bottom-color: var(--rc-gold);
		background: none;
	}
	.legal-toc-progress {
		display: none;
	}
	.legal-body {
		padding-left: 0;
	}
	.legal-section-num {
		font-size: 32px;
		width: 50px;
	}
	.legal-section-title {
		font-size: 22px;
	}
}
@media (max-width: 900px) {
	.legal-hero {
		padding: 48px 28px;
	}
	.legal-hero h1 {
		font-size: 36px;
	}
	.hero-actions {
		position: static;
		margin-top: 24px;
	}
	.rc-breadcrumb {
		padding: 14px 20px;
		font-size: var(--rc-fs-btn);
	}
}
@media (max-width: 480px) {
	.legal-hero h1 {
		font-size: 28px;
	}
	.legal-intro {
		font-size: var(--rc-fs-reading);
	}
	.legal-intro::first-letter {
		font-size: 38px;
	}
	.legal-section-title {
		font-size: 20px;
	}
	.legal-agreement {
		padding: 24px;
	}
}

/* ── PRINT ───────────────────────────────────────────── */
@media print {
	.legal-toc,
	.hero-actions,
	.legal-back-top {
		display: none !important;
	}
	.legal-main {
		grid-template-columns: 1fr;
		padding: 0;
	}
	.legal-hero {
		padding: 32px 0;
	}
	.legal-hero::before {
		display: none;
	}
	.legal-body {
		padding-left: 60px;
	}
	.legal-section {
		page-break-inside: avoid;
	}
}
