/**
 * Iniyam Gifts — Custom Legal & Policy Master Stylesheet
 * File: assets/css/legal.css
 */

.ig-legal-page {
	max-width: 1200px;
	margin: 0 auto 64px;
	padding: 0 20px;
}

/* ── 1. Split Layout (Sidebar Nav + Policy Card) ── */
.ig-legal-grid {
	display: grid;
	grid-template-columns: 280px 1fr;
	gap: 40px;
	align-items: start;
}

/* Sticky Policy Sidebar Nav */
.ig-legal-sidebar {
	position: sticky;
	top: 100px;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 20px;
	padding: 24px 20px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.ig-legal-sidebar__title {
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--ig-muted, #64748b);
	margin-bottom: 14px;
	padding-bottom: 10px;
	border-bottom: 1px solid #f1f5f9;
}

.ig-legal-sidebar-menu {
	list-style: none !important;
	padding: 0 !important;
	margin: 0 !important;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.ig-legal-sidebar-menu li a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 14px;
	border-radius: 12px;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--ig-body, #334155);
	text-decoration: none !important;
	transition: all 0.2s ease;
}

.ig-legal-sidebar-menu li a:hover {
	background: var(--ig-primary-light, #e8f4f5);
	color: var(--ig-primary, #2d6970);
}

.ig-legal-sidebar-menu li.is-current a {
	background: var(--ig-primary, #2d6970);
	color: #ffffff;
	box-shadow: 0 4px 14px rgba(45, 105, 112, 0.22);
}

/* Policy Content Container Card */
.ig-legal-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 24px;
	padding: 44px 48px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

/* ── 2. Gutenberg Block Typography Overrides ── */
.ig-legal-content {
	font-family: var(--ig-font, 'Outfit', sans-serif);
	font-size: 15px;
	line-height: 1.75;
	color: #334155;
}

.ig-legal-content h1,
.ig-legal-content h2,
.ig-legal-content h3,
.ig-legal-content h4 {
	font-family: var(--ig-font-heading, 'Playfair Display', serif);
	color: var(--ig-dark, #1a1a2e);
	font-weight: 800;
	line-height: 1.3;
	margin-top: 36px;
	margin-bottom: 16px;
	text-transform: none !important;
}

.ig-legal-content h1:first-child,
.ig-legal-content h2:first-child {
	margin-top: 0;
}

.ig-legal-content h2 {
	font-size: 24px;
	padding-bottom: 8px;
	border-bottom: 1px solid #f1f5f9;
}

.ig-legal-content h3 {
	font-size: 19px;
}

.ig-legal-content p {
	margin-bottom: 18px;
	color: #334155;
	text-transform: none !important;
}

.ig-legal-content ul,
.ig-legal-content ol {
	margin-bottom: 22px;
	padding-left: 24px;
}

.ig-legal-content li {
	margin-bottom: 8px;
	line-height: 1.65;
}

.ig-legal-content blockquote {
	background: var(--ig-primary-light, #e8f4f5);
	border-left: 4px solid var(--ig-primary, #2d6970);
	padding: 16px 20px;
	border-radius: 0 12px 12px 0;
	margin: 24px 0;
	font-size: 14.5px;
	color: var(--ig-dark, #1a1a2e);
	font-style: italic;
}

.ig-legal-content table {
	width: 100%;
	border-collapse: collapse;
	margin: 24px 0;
	font-size: 14px;
}

.ig-legal-content th,
.ig-legal-content td {
	padding: 12px 16px;
	border: 1px solid #e2e8f0;
	text-align: left;
}

.ig-legal-content th {
	background: #f8fafc;
	font-weight: 700;
	color: var(--ig-dark, #1a1a2e);
}

.ig-legal-content hr {
	border: none;
	border-top: 1px solid #e2e8f0;
	margin: 36px 0;
}

/* ── 3. Light Emerald WhatsApp Support Box ── */
.ig-legal-support-box {
	background: linear-gradient(135deg, #f0fdf4 0%, #e8f5e9 100%) !important;
	color: #0f172a !important;
	border-radius: 24px;
	padding: 36px 28px;
	text-align: center;
	box-shadow: 0 8px 30px rgba(31, 122, 70, 0.08);
	border: 1.5px solid #c8e6c9 !important;
	margin-top: 36px;
}

.ig-legal-support-box__title {
	font-family: var(--ig-font-heading, 'Playfair Display', serif);
	font-size: 26px;
	font-weight: 800;
	color: #0f172a !important;
	margin-bottom: 8px;
	text-transform: none !important;
}

.ig-legal-support-box__desc {
	font-size: 14.5px;
	color: #334155 !important;
	line-height: 1.6;
	margin-bottom: 22px;
	max-width: 560px;
	margin-left: auto;
	margin-right: auto;
	text-transform: none !important;
}

.ig-legal-support-box .ig-btn-whatsapp-bulk {
	max-width: 300px;
	margin: 0 auto;
}

/* WhatsApp Action Button Component */
.ig-btn-whatsapp-bulk {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 10px !important;
	background: linear-gradient(135deg, #1f7a46 0%, #155731 100%) !important;
	color: #ffffff !important;
	font-weight: 700 !important;
	font-size: 15px !important;
	padding: 14px 28px !important;
	border-radius: 100px !important;
	text-decoration: none !important;
	box-shadow: 0 6px 20px rgba(21, 87, 49, 0.3) !important;
	transition: all 0.3s ease !important;
	width: 100% !important;
	white-space: nowrap !important;
	position: relative !important;
	overflow: hidden !important;
	border: 1px solid rgba(255, 255, 255, 0.15) !important;
	text-transform: none !important;
}

.ig-btn-whatsapp-bulk:hover {
	background: linear-gradient(135deg, #248a50 0%, #186438 100%) !important;
	transform: translateY(-2px) !important;
	box-shadow: 0 8px 26px rgba(21, 87, 49, 0.45) !important;
	color: #ffffff !important;
}

/* ── 3. Responsive Breakpoints ── */
@media (max-width: 992px) {
	.ig-legal-grid {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	.ig-legal-sidebar {
		position: static;
	}

	.ig-legal-card {
		padding: 32px 24px;
	}
}

@media (max-width: 580px) {
	.ig-legal-card {
		padding: 24px 18px;
	}
}

/* ── 4. Complete Animation & Transition Suppression Engine ── */
.ig-policy-page,
.ig-policy-page *,
body.page-template-page-legal,
body.page-template-page-legal *,
body.privacy-policy,
body.privacy-policy *,
.ig-legal-page-main,
.ig-legal-page-main *,
.ig-legal-page,
.ig-legal-page * {
	animation: none !important;
	transition: none !important;
	transform: none !important;
	scroll-behavior: auto !important;
}

.ig-policy-page .ig-scroll-reveal,
body.page-template-page-legal .ig-scroll-reveal,
body.privacy-policy .ig-scroll-reveal,
.ig-legal-page-main .ig-scroll-reveal,
.ig-legal-page .ig-scroll-reveal {
	opacity: 1 !important;
	transform: none !important;
	transition: none !important;
	animation: none !important;
}

