/* ============================================================
   Terms & Conditions page — uaep-theme
   Scoped under .uaep-tc-main so it cannot bleed into the rest
   of the site (header/footer are unaffected).
   Brand colour: #AE8219
   ============================================================ */

.uaep-tc-main {
	--uaep-tc-primary: #8A6614;
	--uaep-tc-secondary: #AE8219;
	--uaep-tc-accent: #D4A53F;
	--uaep-tc-text-dark: #1a1a1a;
	--uaep-tc-text-light: #5d5d5d;
	--uaep-tc-bg-light: #faf6eb;
	--uaep-tc-border: #ead9b3;
	--uaep-tc-success: #27ae60;

	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	line-height: 1.6;
	color: var(--uaep-tc-text-dark);
	background-color: #fff;
}

.uaep-tc-main *,
.uaep-tc-main *::before,
.uaep-tc-main *::after {
	box-sizing: border-box;
}

/* -------- Hero -------- */
.uaep-tc-hero {
	background: linear-gradient(135deg, var(--uaep-tc-primary) 0%, var(--uaep-tc-secondary) 100%);
	color: #fff;
	padding: 80px 20px;
	text-align: center;
}

.uaep-tc-hero-inner {
	max-width: 900px;
	margin: 0 auto;
}

.uaep-tc-hero h1 {
	font-size: 48px;
	margin: 0 0 20px;
	font-weight: 700;
	line-height: 1.2;
	color: #fff;
}

.uaep-tc-hero p {
	font-size: 18px;
	opacity: 0.95;
	margin: 0 0 10px;
}

.uaep-tc-hero-meta {
	font-size: 14px;
	margin-top: 15px !important;
}

/* -------- Breadcrumb -------- */
.uaep-tc-breadcrumb {
	font-size: 14px;
	color: var(--uaep-tc-text-light);
	margin: 20px 0;
}

.uaep-tc-breadcrumb .uaep-tc-container {
	padding-top: 0;
	padding-bottom: 0;
}

.uaep-tc-breadcrumb a {
	color: var(--uaep-tc-secondary);
	text-decoration: none;
}

.uaep-tc-breadcrumb a:hover,
.uaep-tc-breadcrumb a:focus {
	text-decoration: underline;
}

/* -------- Container -------- */
.uaep-tc-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 40px 20px;
}

/* -------- Tabs -------- */
.uaep-tc-tabs {
	display: flex;
	gap: 10px;
	border-bottom: 2px solid var(--uaep-tc-border);
	margin-bottom: 40px;
	flex-wrap: wrap;
}

.uaep-tc-tab-btn {
	padding: 15px 25px;
	background: none;
	border: 0;
	border-bottom: 3px solid transparent;
	cursor: pointer;
	font: inherit;
	font-size: 16px;
	font-weight: 600;
	color: var(--uaep-tc-text-light);
	transition: color 0.3s, border-color 0.3s;
}

.uaep-tc-tab-btn:hover,
.uaep-tc-tab-btn:focus,
.uaep-tc-tab-btn:focus-visible {
	color: var(--uaep-tc-secondary);
	background-color: var(--uaep-tc-bg-light);
	border-bottom-color: var(--uaep-tc-secondary);
	outline: none;
	box-shadow: none;
}

.uaep-tc-tab-btn.is-active {
	color: var(--uaep-tc-primary);
	border-bottom-color: var(--uaep-tc-secondary);
}

/* -------- Panels -------- */
.uaep-tc-panel {
	display: none;
	animation: uaep-tc-fade 0.3s ease;
}

.uaep-tc-panel.is-active {
	display: block;
}

@keyframes uaep-tc-fade {
	from { opacity: 0; }
	to   { opacity: 1; }
}

/* -------- Sections -------- */
.uaep-tc-section {
	margin-bottom: 40px;
	padding: 30px;
	background-color: var(--uaep-tc-bg-light);
	border-left: 4px solid var(--uaep-tc-secondary);
}

.uaep-tc-section h2 {
	color: var(--uaep-tc-primary);
	font-size: 28px;
	margin: 0 0 20px;
	display: flex;
	align-items: center;
	gap: 10px;
	line-height: 1.3;
}

.uaep-tc-num {
	background-color: var(--uaep-tc-secondary);
	color: #fff;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 18px;
	flex: 0 0 auto;
}

.uaep-tc-section h3 {
	color: var(--uaep-tc-primary);
	font-size: 18px;
	margin: 25px 0 12px;
	font-weight: 600;
}

.uaep-tc-section p {
	color: var(--uaep-tc-text-light);
	margin: 0 0 15px;
	line-height: 1.8;
}

.uaep-tc-section ul {
	margin: 0 0 15px 25px;
	padding: 0;
}

.uaep-tc-section ul li {
	margin-bottom: 10px;
	color: var(--uaep-tc-text-light);
	line-height: 1.8;
}

.uaep-tc-section ul li strong {
	color: var(--uaep-tc-primary);
}

.uaep-tc-mt {
	margin-top: 20px;
}

/* -------- Highlight box -------- */
.uaep-tc-highlight {
	background-color: #fff7e2;
	border-left: 4px solid var(--uaep-tc-accent);
	padding: 20px;
	margin: 20px 0;
	border-radius: 4px;
	color: var(--uaep-tc-text-light);
	line-height: 1.7;
}

.uaep-tc-highlight strong {
	color: var(--uaep-tc-primary);
}

/* -------- Important notice -------- */
.uaep-tc-notice {
	background-color: #fff3cd;
	border-left: 4px solid #ff9800;
	padding: 20px;
	margin: 20px 0;
	border-radius: 4px;
	color: var(--uaep-tc-text-light);
	line-height: 1.7;
}

.uaep-tc-notice strong {
	color: #e65100;
}

/* -------- Contact section -------- */
.uaep-tc-contact {
	background-color: #fff7e2;
	padding: 30px;
	border-radius: 8px;
	margin-top: 40px;
	text-align: center;
}

.uaep-tc-contact h3 {
	color: var(--uaep-tc-primary);
	margin: 0 0 15px;
}

.uaep-tc-contact-line {
	font-size: 18px;
	margin: 10px 0;
	color: var(--uaep-tc-text-dark);
}

.uaep-tc-contact-line a {
	color: var(--uaep-tc-secondary);
	text-decoration: none;
	font-weight: 600;
}

.uaep-tc-contact-line a:hover,
.uaep-tc-contact-line a:focus {
	text-decoration: underline;
}

.uaep-tc-contact-note {
	font-size: 14px;
	margin-top: 20px;
	opacity: 0.9;
	color: var(--uaep-tc-text-light);
}

/* -------- Back to top -------- */
.uaep-tc-back-to-top {
	position: fixed;
	bottom: 30px;
	right: 30px;
	background-color: var(--uaep-tc-secondary);
	color: #fff;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
	transition: background-color 0.3s, transform 0.3s;
	border: 0;
	font-size: 24px;
	line-height: 1;
	z-index: 50;
}

.uaep-tc-back-to-top[hidden] {
	display: none;
}

.uaep-tc-back-to-top:hover,
.uaep-tc-back-to-top:focus-visible {
	background-color: var(--uaep-tc-primary);
	transform: translateY(-5px);
	outline: none;
}

/* -------- Responsive -------- */
@media (max-width: 768px) {
	.uaep-tc-hero {
		padding: 56px 20px;
	}

	.uaep-tc-hero h1 {
		font-size: 32px;
	}

	.uaep-tc-hero p {
		font-size: 16px;
	}

	.uaep-tc-tabs {
		flex-direction: column;
	}

	.uaep-tc-tab-btn {
		border-bottom: 0;
		border-left: 3px solid transparent;
		text-align: left;
		padding: 12px 20px;
	}

	.uaep-tc-tab-btn.is-active {
		border-bottom: 0;
		border-left-color: var(--uaep-tc-secondary);
	}

	.uaep-tc-section {
		padding: 20px;
	}

	.uaep-tc-section h2 {
		font-size: 22px;
	}
}

/* -------- Print -------- */
@media print {
	.uaep-tc-tabs,
	.uaep-tc-back-to-top {
		display: none !important;
	}

	.uaep-tc-panel {
		display: block !important;
	}
}

/* -------- RTL -------- */
.rtl .uaep-tc-section {
	border-left: 0;
	border-right: 4px solid var(--uaep-tc-secondary);
}

.rtl .uaep-tc-highlight,
.rtl .uaep-tc-notice {
	border-left: 0;
	border-right: 4px solid var(--uaep-tc-accent);
}

.rtl .uaep-tc-notice {
	border-right-color: #ff9800;
}

.rtl .uaep-tc-section ul {
	margin: 0 25px 15px 0;
}

.rtl .uaep-tc-back-to-top {
	right: auto;
	left: 30px;
}

@media (max-width: 768px) {
	.rtl .uaep-tc-tab-btn {
		border-left: 0;
		border-right: 3px solid transparent;
		text-align: right;
	}

	.rtl .uaep-tc-tab-btn.is-active {
		border-right-color: var(--uaep-tc-secondary);
	}
}
