/**
 * Legal pages on live epayhub.in — styles only the document content.
 * Does not restyle the global header/footer (same UI as Services).
 */

/* Live site uses float:.clear everywhere; that breaks CSS grid + sticky TOC. */
.faq-blk.clear,
.info-hero.clear,
.legal-body.clear,
.legal-layout,
.legal-nav-panel,
.legal-body {
	float: none !important;
}

.faq-blk > .container,
.info-hero > .container {
	float: none !important;
	overflow: visible;
}

/* —— Starting section only (previous info-hero UI) —— */
.info-hero {
	padding: 36px 0 28px;
	background: #f5f8fb;
	border-bottom: 1px solid #e6eef5;
	width: 100%;
	box-sizing: border-box;
}

.info-hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr);
	gap: 36px;
	align-items: center;
	width: 100%;
	box-sizing: border-box;
}

.info-hero-copy {
	min-width: 0;
}

.faq-head-eyebrow {
	display: inline-block;
	margin: 0 0 12px;
	padding: 6px 12px;
	border-radius: 999px;
	background: #e8f6fc;
	color: #009cdd;
	font-family: circular_medium, sans-serif;
	font-size: 12px;
	line-height: 1;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.info-hero-copy h1 {
	margin: 0 0 14px;
	font-family: circular_bold, sans-serif;
	font-size: 34px;
	line-height: 42px;
	color: #223146;
	text-transform: uppercase;
}

.info-hero-copy > p {
	margin: 0;
	max-width: 540px;
	font-family: circular_book, sans-serif;
	font-size: 16px;
	line-height: 26px;
	color: #5a6a7a;
}

.legal-hero-meta {
	margin-top: 18px;
}

.legal-hero-meta p {
	margin: 0;
	font-family: circular_book, sans-serif;
	font-size: 15px;
	line-height: 24px;
	color: #5a6a7a;
}

.legal-hero-meta strong {
	color: #223146;
	font-family: circular_medium, sans-serif;
}

.info-hero-art {
	width: 100%;
	max-width: 360px;
	margin-left: auto;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	border-radius: 16px;
	border: 1px solid #e6eef5;
	background: #fff;
	box-sizing: border-box;
}

.info-hero-art img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: right center;
}

.faq-blk {
	padding-top: 28px;
}

.legal-layout {
	display: grid;
	grid-template-columns: 280px minmax(0, 1fr);
	gap: 36px;
	align-items: start;
	padding-bottom: 40px;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	float: none !important;
}

.legal-nav-panel {
	position: sticky;
	top: 110px;
	z-index: 2;
	align-self: start;
}

.legal-nav-heading {
	margin: 0 0 12px;
	font-family: circular_bold, sans-serif;
	font-size: 13px;
	line-height: 1.2;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #009cdd;
}

.legal-nav-toggle {
	display: none;
	width: 100%;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 16px;
	border-radius: 8px;
	border: 1px solid #d9e2ec;
	background: #fff;
	color: #223146;
	font-family: circular_medium, sans-serif;
	font-size: 15px;
	cursor: pointer;
}

.legal-nav {
	max-height: calc(100vh - 130px);
	overflow: auto;
	padding: 14px 12px;
	border: 1px solid #e6eef5;
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 6px 18px rgba(34, 49, 70, 0.06);
}

.legal-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.legal-nav li {
	margin: 0 0 4px;
}

.legal-nav-link {
	display: flex;
	gap: 8px;
	align-items: flex-start;
	padding: 8px 10px;
	border-radius: 8px;
	color: #5a6a7a !important;
	text-decoration: none !important;
	font-family: circular_book, sans-serif;
	font-size: 13px;
	line-height: 18px;
}

.legal-nav-link:hover,
.legal-nav-link.is-active {
	background: #eef8fd;
	color: #009cdd !important;
}

.legal-nav-num {
	flex: 0 0 auto;
	color: #223146;
	font-family: circular_medium, sans-serif;
}

.legal-nav-title {
	min-width: 0;
}

.legal-nav-part .legal-nav-link {
	margin-top: 8px;
	font-family: circular_bold, sans-serif;
	font-size: 12px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #223146 !important;
}

.legal-nav-indent .legal-nav-link {
	padding-left: 22px;
}

.legal-body {
	min-width: 0;
}

.legal-section {
	margin: 0 0 28px;
	padding-bottom: 8px;
}

.legal-section[id],
.legal-body [id] {
	scroll-margin-top: 120px;
}

.legal-section h2,
.legal-section h3 {
	margin: 0 0 12px;
	font-family: circular_bold, sans-serif;
	color: #223146;
}

.legal-section h2 {
	font-size: 24px;
	line-height: 32px;
}

.legal-section h3 {
	font-size: 18px;
	line-height: 26px;
}

.legal-section-num {
	color: #223146;
	margin-right: 6px;
}

.legal-section p,
.legal-section li {
	font-family: circular_book, sans-serif;
	font-size: 15px;
	line-height: 26px;
	color: #5a6a7a;
}

.legal-section p {
	margin: 0 0 12px;
}

.legal-section ul,
.legal-section ol {
	margin: 0 0 14px;
	padding-left: 22px;
}

.legal-section li {
	margin-bottom: 8px;
}

.legal-section-part > h2,
.legal-section-titleonly > h2 {
	margin-top: 18px;
	padding-top: 10px;
	border-top: 1px solid #e6eef5;
	color: #009cdd;
	font-size: 20px;
	letter-spacing: 0.04em;
}

.legal-table-wrap {
	width: 100%;
	overflow-x: auto;
	margin: 12px 0 18px;
}

.legal-table {
	width: 100%;
	border-collapse: collapse;
	font-family: circular_book, sans-serif;
	font-size: 14px;
}

.legal-table th,
.legal-table td {
	border: 1px solid #e6eef5;
	padding: 10px 12px;
	text-align: left;
	vertical-align: top;
	color: #5a6a7a;
}

.legal-table th {
	background: #f5f8fb;
	color: #223146;
	font-family: circular_medium, sans-serif;
}

.contact-no-copy,
.contact-no-copy-inline {
	user-select: none;
	-webkit-user-select: none;
}

@media (max-width: 991px) {
	.info-hero {
		padding: 24px 0 20px;
	}

	.info-hero-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 18px;
	}

	.info-hero-copy h1 {
		font-size: 26px;
		line-height: 34px;
	}

	.info-hero-art {
		max-width: 100%;
		margin: 0;
		aspect-ratio: 16 / 9;
	}

	.legal-intro h1 {
		font-size: 26px;
		line-height: 34px;
	}

	.legal-layout {
		display: block;
		gap: 0;
	}

	.legal-nav-panel {
		position: static;
		margin-bottom: 18px;
	}

	.legal-nav-heading {
		display: none;
	}

	.legal-nav-toggle {
		display: inline-flex;
	}

	.legal-nav {
		display: none;
		max-height: none;
		margin-top: 10px;
	}

	.legal-nav.is-open {
		display: block;
	}

	.legal-section h2 {
		font-size: 20px;
		line-height: 28px;
	}
}
