/* ============================================================================
   Saransh Dainik — Privacy Policy legal page (page-specific, loaded only on
   /privacy-policy). Professional, readable, accessible. No heavy global assets.
   Accent uses the existing site brand red (--sd-header-red) with fallback.
   ============================================================================ */

.pp-page {
	background: #f3f4f6; /* subtle light-grey page background */
	min-height: 70vh;
}

.pp-page .container {
	max-width: 1080px;
}

/* breadcrumb (reuses theme styles; calm spacing) */
.pp-breadcrumb {
	margin-top: 18px;
}
.pp-breadcrumb-spacer {
	margin-top: 46px;
}

.pp-layout {
	padding-bottom: 40px;
}

/* centered content wrapper with a readable measure */
.pp-wrap {
	max-width: 980px;
	margin: 0 auto;
	width: 100%;
}

/* ---- header card ---- */
.pp-header {
	background: #ffffff;
	border: 1px solid #e4e7eb;
	border-radius: 8px;
	border-top: 4px solid var(--sd-header-red, #b6090f);
	padding: 28px 30px 24px;
	margin-bottom: 22px;
	box-shadow: 0 1px 3px rgba(16, 24, 40, 0.06);
}

.pp-title {
	margin: 0 0 6px;
	font-size: 30px;
	line-height: 1.25;
	color: #111827;
	font-weight: 700;
}
.pp-title-hi {
	display: block;
	font-size: 19px;
	font-weight: 600;
	color: #4b5563;
	margin-top: 4px;
}

.pp-dates {
	margin: 12px 0 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px 22px;
	font-size: 14px;
	color: #6b7280;
}
.pp-date strong {
	color: #374151;
	font-weight: 600;
}

.pp-intro {
	margin-top: 16px;
	padding: 14px 16px;
	background: #f8fafc;
	border-left: 3px solid var(--sd-header-red, #b6090f);
	border-radius: 4px;
	color: #374151;
	font-size: 16px;
	line-height: 1.7;
}
.pp-intro p:last-child {
	margin-bottom: 0;
}

/* ---- body: TOC + content grid ---- */
.pp-body {
	display: grid;
	grid-template-columns: 250px minmax(0, 1fr);
	gap: 22px;
	align-items: start;
}

/* table of contents (sticky on wide screens) */
.pp-toc {
	position: sticky;
	top: 96px;
	max-height: calc(100vh - 120px);
	overflow: auto;
	background: #ffffff;
	border: 1px solid #e4e7eb;
	border-radius: 8px;
	padding: 14px;
	box-shadow: 0 1px 3px rgba(16, 24, 40, 0.06);
}
.pp-toc-details[open] .pp-toc-list {
	display: block;
}
.pp-toc-toggle {
	display: none;
	cursor: pointer;
	list-style: none;
}
.pp-toc-toggle::-webkit-details-marker {
	display: none;
}
.pp-toc-list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.pp-toc-list li {
	margin: 0;
	padding: 0;
}
.pp-toc-list a {
	display: block;
	padding: 7px 8px;
	border-radius: 5px;
	color: #374151;
	font-size: 13.5px;
	line-height: 1.4;
	text-decoration: none;
	border-left: 2px solid transparent;
}
.pp-toc-list a:hover,
.pp-toc-list a:focus {
	background: #f3f4f6;
	color: var(--sd-header-red, #b6090f);
	border-left-color: var(--sd-header-red, #b6090f);
	text-decoration: none;
}

/* ---- main content card ---- */
.pp-content-card {
	background: #ffffff;
	border: 1px solid #e4e7eb;
	border-radius: 8px;
	padding: 30px 34px 34px;
	min-width: 0;
	box-shadow: 0 1px 3px rgba(16, 24, 40, 0.06);
}

.pp-content.text-style {
	font-size: 17px !important;
	line-height: 1.7 !important;
	color: #1f2937;
	/* wide tables / pre scroll inside this container (no page-level overflow) */
	overflow-x: auto;
}

.pp-content.text-style h2 {
	font-size: 22px;
	line-height: 1.3;
	color: #111827;
	font-weight: 700;
	margin: 32px 0 12px;
	padding: 0 0 8px 12px;
	border-left: 4px solid var(--sd-header-red, #b6090f);
	scroll-margin-top: 110px;
}
.pp-content.text-style h3 {
	font-size: 18px;
	line-height: 1.35;
	color: #111827;
	font-weight: 600;
	margin: 24px 0 10px;
	scroll-margin-top: 110px;
}
.pp-content.text-style h4 {
	font-size: 16px;
	color: #111827;
	margin: 18px 0 8px;
}
.pp-content.text-style p {
	margin: 0 0 16px;
}
.pp-content.text-style ul,
.pp-content.text-style ol {
	margin: 0 0 18px;
	padding-left: 26px;
}
.pp-content.text-style ul li,
.pp-content.text-style ol li {
	margin-bottom: 8px;
}
.pp-content.text-style ul ul,
.pp-content.text-style ol ol,
.pp-content.text-style ul ol,
.pp-content.text-style ol ul {
	margin-top: 8px;
	margin-bottom: 0;
}
.pp-content.text-style strong {
	color: #111827;
	font-weight: 600;
}
.pp-content.text-style a {
	color: #1d4ed8;
	text-decoration: underline;
	text-underline-offset: 2px;
	/* long URLs and email addresses must wrap */
	overflow-wrap: anywhere;
	word-break: break-word;
}
.pp-content.text-style a:hover {
	color: var(--sd-header-red, #b6090f);
}
.pp-content.text-style blockquote {
	margin: 0 0 18px;
	padding: 12px 16px;
	background: #f8fafc;
	border-left: 3px solid #d1d5db;
	color: #4b5563;
}
.pp-content.text-style pre {
	background: #111827;
	color: #e5e7eb;
	padding: 14px;
	border-radius: 6px;
	overflow-x: auto;
	font-size: 14px;
}
.pp-content.text-style code {
	background: #f3f4f6;
	color: #be123c;
	padding: 1px 5px;
	border-radius: 4px;
	font-size: 0.92em;
}
.pp-content.text-style pre code {
	background: transparent;
	color: inherit;
	padding: 0;
}
.pp-content.text-style table {
	border-collapse: collapse;
	min-width: 100%;
	margin: 0 0 18px;
	font-size: 15px;
}
.pp-content.text-style th,
.pp-content.text-style td {
	border: 1px solid #d1d5db;
	padding: 9px 12px;
	text-align: left;
	vertical-align: top;
}
.pp-content.text-style th {
	background: #f3f4f6;
	font-weight: 600;
	color: #111827;
}
.pp-content.text-style img {
	max-width: 100%;
	height: auto;
	border-radius: 6px;
}
.pp-content.text-style hr {
	border: 0;
	border-top: 1px solid #e4e7eb;
	margin: 24px 0;
}

/* ---- contact box ---- */
.pp-contact {
	margin-top: 30px;
	padding: 22px 24px;
	background: #fef2f2;
	border: 1px solid #fecaca;
	border-radius: 8px;
	border-left: 5px solid var(--sd-header-red, #b6090f);
}
.pp-contact-title {
	margin: 0 0 10px;
	font-size: 19px;
	font-weight: 700;
	color: #111827;
}
.pp-contact p {
	margin: 0 0 10px;
	color: #374151;
	font-size: 15.5px;
	line-height: 1.65;
}
.pp-contact .pp-contact-email {
	margin-bottom: 14px;
}
.pp-contact .pp-contact-email a {
	font-weight: 600;
	color: var(--sd-header-red, #b6090f);
	text-decoration: underline;
	overflow-wrap: anywhere;
	word-break: break-word;
}
.pp-contact-actions {
	margin: 0;
}
.pp-btn {
	display: inline-block;
	padding: 10px 18px;
	border-radius: 6px;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	line-height: 1.2;
}
.pp-btn-primary {
	background: var(--sd-header-red, #b6090f);
	color: #ffffff;
}
.pp-btn-primary:hover,
.pp-btn-primary:focus {
	background: #8f060b;
	color: #ffffff;
	text-decoration: none;
}

/* ---- back to top ---- */
.pp-back-to-top {
	position: fixed;
	right: 18px;
	bottom: 76px;
	z-index: 500;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-width: 44px;
	min-height: 44px;
	padding: 8px 14px;
	background: #ffffff;
	color: #111827;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	box-shadow: 0 2px 6px rgba(16, 24, 40, 0.12);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s ease;
}
.pp-page.pp-scrolled .pp-back-to-top {
	opacity: 1;
	pointer-events: auto;
}
.pp-back-to-top:hover,
.pp-back-to-top:focus {
	color: var(--sd-header-red, #b6090f);
	border-color: var(--sd-header-red, #b6090f);
}

/* visible focus states */
.pp-toc a:focus-visible,
.pp-content.text-style a:focus-visible,
.pp-contact a:focus-visible,
.pp-back-to-top:focus-visible,
.pp-btn:focus-visible,
.pp-toc-toggle:focus-visible {
	outline: 3px solid #1d4ed8;
	outline-offset: 2px;
}

/* respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
	.pp-back-to-top {
		transition: none;
	}
	.pp-toc,
	.pp-toc-list a,
	.pp-content.text-style * {
		scroll-behavior: auto !important;
	}
}

/* ============================ responsive ============================ */
@media (max-width: 991px) {
	.pp-body {
		grid-template-columns: 1fr;
		gap: 18px;
	}
	.pp-toc {
		position: static;
		max-height: none;
		overflow: visible;
	}
	.pp-toc-toggle {
		display: flex;
		align-items: center;
		justify-content: space-between;
		min-height: 44px;
		padding: 10px 12px;
		background: #f8fafc;
		border: 1px solid #e4e7eb;
		border-radius: 6px;
		font-size: 15px;
		font-weight: 600;
		color: #111827;
	}
	.pp-toc-toggle-icon {
		width: 10px;
		height: 10px;
		border-right: 2px solid #374151;
		border-bottom: 2px solid #374151;
		transform: rotate(45deg);
		transition: transform 0.15s ease;
		margin-right: 6px;
	}
	.pp-toc-details:not([open]) .pp-toc-toggle-icon {
		transform: rotate(-45deg);
	}
	.pp-toc-list {
		padding: 8px 4px 0;
		display: none;
	}
	.pp-toc-details[open] .pp-toc-list {
		display: block;
	}
	.pp-toc-list a {
		padding: 10px 8px; /* 44px+ touch targets */
	}
}

@media (max-width: 767px) {
	.pp-header {
		padding: 20px 18px 18px;
	}
	.pp-title {
		font-size: 25px;
	}
	.pp-title-hi {
		font-size: 17px;
	}
	.pp-content-card {
		padding: 22px 18px 26px;
	}
	.pp-content.text-style {
		font-size: 16px !important; /* 16-17px readable body text */
		line-height: 1.7 !important;
	}
	.pp-content.text-style h2 {
		font-size: 20px;
		scroll-margin-top: 130px;
	}
	.pp-content.text-style h3 {
		font-size: 17px;
		scroll-margin-top: 130px;
	}
	.pp-back-to-top {
		bottom: 70px;
		right: 12px;
		padding: 10px;
	}
	.pp-back-to-top-label {
		display: none; /* compact square control on small screens */
	}
}

/* no horizontal overflow at 320 / 360 / 390 px */
@media (max-width: 400px) {
	.pp-page {
		overflow-x: hidden;
	}
	.pp-content-card {
		padding-left: 14px;
		padding-right: 14px;
	}
	.pp-content.text-style table {
		font-size: 14px;
	}
}
