/**
 * DAF Marketplace — Privacy Policy Page
 * Location: /wp-content/plugins/daf-marketplace/assets/css/pages/privacy-policy.css
 *
 * Purpose:
 * - Premium responsive styling for the HyperDAF Privacy Policy page.
 * - Works with /templates/pages/privacy-policy.php.
 * - Fully responsive for desktop, tablet, and mobile.
 * - Updated: icons visually centered in all icon boxes.
 */

.daf-mp-privacy-page {
	--daf-privacy-green: #0f9f49;
	--daf-privacy-green-dark: #06653c;
	--daf-privacy-accent: #8bbe38;
	--daf-privacy-accent-soft: #dff3bf;
	--daf-privacy-ink: #0f172a;
	--daf-privacy-ink-soft: #1e293b;
	--daf-privacy-muted: #526277;
	--daf-privacy-muted-soft: #7a8797;
	--daf-privacy-soft: #f8fafc;
	--daf-privacy-bg: #f5f8fb;
	--daf-privacy-border: #e2e8f0;
	--daf-privacy-border-strong: #d7e0ea;
	--daf-privacy-card: rgba(255, 255, 255, 0.97);
	--daf-privacy-radius: 18px;
	--daf-privacy-shadow-sm: 0 12px 28px rgba(15, 23, 42, 0.045);
	--daf-privacy-shadow-md: 0 18px 44px rgba(15, 23, 42, 0.06);
	--daf-privacy-shadow-lg: 0 28px 70px rgba(15, 23, 42, 0.08);

	width: 100%;
	background:
		radial-gradient(circle at top left, rgba(15, 159, 73, 0.04), transparent 18%),
		linear-gradient(180deg, #ffffff 0%, #f8fafc 42%, #ffffff 100%);
	color: var(--daf-privacy-ink);
	overflow-x: hidden;
}

.daf-mp-privacy-page *,
.daf-mp-privacy-page *::before,
.daf-mp-privacy-page *::after {
	box-sizing: border-box;
}

.daf-mp-privacy-page a {
	color: var(--daf-privacy-green);
	text-decoration: none;
	transition: color 180ms ease, opacity 180ms ease;
}

.daf-mp-privacy-page a:hover,
.daf-mp-privacy-page a:focus {
	color: var(--daf-privacy-green-dark);
	text-decoration: none;
}

.daf-mp-privacy-page svg {
	display: block;
	flex: 0 0 auto;
}

.daf-mp-privacy-page svg * {
	vector-effect: non-scaling-stroke;
}

/* =========================================================
   HERO
========================================================= */
.daf-mp-privacy-hero {
	position: relative;
	width: 100%;
	padding: clamp(34px, 4.2vw, 58px) 0;
	background:
		radial-gradient(circle at 82% 44%, rgba(15, 159, 73, 0.32), transparent 32%),
		radial-gradient(circle at 18% 2%, rgba(16, 185, 129, 0.10), transparent 28%),
		linear-gradient(135deg, #061221 0%, #07192b 44%, #003d2f 100%);
	color: #ffffff;
	overflow: hidden;
}

.daf-mp-privacy-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
	background-size: 30px 30px;
	mask-image: linear-gradient(90deg, transparent 0%, #000 14%, #000 86%, transparent 100%);
	pointer-events: none;
}

.daf-mp-privacy-hero::after {
	content: "";
	position: absolute;
	inset: auto 0 0 0;
	height: 90px;
	background: linear-gradient(180deg, rgba(255,255,255,0), rgba(6,18,33,0.08));
	pointer-events: none;
}

.daf-mp-privacy-hero__inner {
	position: relative;
	z-index: 2;
	display: grid;
	grid-template-columns: minmax(0, 1.12fr) minmax(230px, 0.82fr);
	align-items: center;
	gap: clamp(22px, 3vw, 58px);
}

.daf-mp-privacy-hero__copy {
	max-width: 690px;
}

.daf-mp-privacy-kicker {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 30px;
	padding: 0 13px;
	border: 1px solid rgba(52, 211, 153, 0.36);
	border-radius: 999px;
	background: rgba(16, 185, 129, 0.11);
	color: #34d399;
	font-size: 10.8px;
	font-weight: 850;
	line-height: 1;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02);
}

.daf-mp-privacy-kicker svg,
.daf-mp-privacy-updated svg {
	width: 15px;
	height: 15px;
}

.daf-mp-privacy-hero h1 {
	margin: 16px 0 10px;
	color: #ffffff;
	font-size: clamp(38px, 4.4vw, 64px);
	font-weight: 900;
	line-height: 0.95;
	letter-spacing: -0.06em;
	text-wrap: balance;
}

.daf-mp-privacy-hero p {
	max-width: 600px;
	margin: 0;
	color: rgba(255, 255, 255, 0.85);
	font-size: clamp(14.5px, 1.05vw, 17px);
	font-weight: 500;
	line-height: 1.68;
	letter-spacing: -0.01em;
}

.daf-mp-privacy-updated {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin-top: 18px;
	color: rgba(255, 255, 255, 0.84);
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: -0.01em;
}

.daf-mp-privacy-updated span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #34d399;
}

/* Hero visual */
.daf-mp-privacy-hero__visual {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 190px;
}

.daf-mp-privacy-shield {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: clamp(170px, 22vw, 260px);
	height: clamp(170px, 22vw, 260px);
	border-radius: 50%;
	background:
		radial-gradient(circle at center, rgba(52, 211, 153, 0.17), rgba(52, 211, 153, 0.04) 44%, transparent 68%);
}

.daf-mp-privacy-shield::before,
.daf-mp-privacy-shield::after {
	content: "";
	position: absolute;
	border-radius: 50%;
	border: 1px solid rgba(52, 211, 153, 0.17);
}

.daf-mp-privacy-shield::before {
	inset: 12px;
}

.daf-mp-privacy-shield::after {
	inset: 30px;
	background: rgba(16, 185, 129, 0.04);
	box-shadow:
		0 0 56px rgba(52, 211, 153, 0.13),
		inset 0 0 28px rgba(255, 255, 255, 0.04);
}

.daf-mp-privacy-shield__icon {
	position: relative;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: clamp(96px, 10vw, 134px);
	height: clamp(96px, 10vw, 134px);
	border: 1px solid rgba(167, 243, 208, 0.28);
	border-radius: 50%;
	background:
		linear-gradient(160deg, rgba(167, 243, 208, 0.34), rgba(16, 185, 129, 0.15)),
		rgba(6, 95, 70, 0.24);
	color: #d1fae5;
	box-shadow:
		0 18px 48px rgba(16, 185, 129, 0.18),
		inset 0 0 24px rgba(255, 255, 255, 0.08);
	backdrop-filter: blur(6px);
	line-height: 0;
}

.daf-mp-privacy-shield__icon svg {
	width: 38%;
	height: 38%;
	margin: 0;
	filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.18));
}

/* =========================================================
   STICKY NAV TABS
========================================================= */
.daf-mp-privacy-tabs {
	position: sticky;
	top: 0;
	z-index: 50;
	width: 100%;
	background: rgba(255, 255, 255, 0.94);
	border-bottom: 1px solid var(--daf-privacy-border);
	box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
}

.admin-bar .daf-mp-privacy-tabs {
	top: 32px;
}

.daf-mp-privacy-tabs__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	min-height: 66px;
	overflow-x: auto;
	scrollbar-width: none;
}

.daf-mp-privacy-tabs__inner::-webkit-scrollbar {
	display: none;
}

.daf-mp-privacy-tabs__link {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	flex: 0 0 auto;
	min-height: 66px;
	padding: 0 6px;
	color: #334155;
	font-size: 13px;
	font-weight: 750;
	line-height: 1;
	white-space: nowrap;
	transition: color 180ms ease;
}

.daf-mp-privacy-tabs__link::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 2px;
	border-radius: 999px;
	background: var(--daf-privacy-accent);
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform 180ms ease;
}

.daf-mp-privacy-tabs__link:hover,
.daf-mp-privacy-tabs__link:focus {
	color: var(--daf-privacy-green);
	outline: none;
}

.daf-mp-privacy-tabs__link:hover::after,
.daf-mp-privacy-tabs__link:focus::after {
	transform: scaleX(1);
}

.daf-mp-privacy-tabs__icon {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 17px;
	height: 17px;
	color: currentColor;
	flex: 0 0 auto;
	line-height: 0;
	text-align: center;
	overflow: hidden;
}

.daf-mp-privacy-tabs__icon svg {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 16px;
	height: 16px;
	margin: 0;
	transform: translate(-50%, -50%);
	transform-origin: center center;
}

/* =========================================================
   CONTENT WRAP
========================================================= */
.daf-mp-privacy-content {
	padding-top: clamp(24px, 3.5vw, 42px);
	padding-bottom: clamp(52px, 6vw, 86px);
}

.daf-mp-privacy-panel,
.daf-mp-privacy-card,
.daf-mp-privacy-change,
.daf-mp-privacy-contact {
	border: 1px solid var(--daf-privacy-border);
	background: var(--daf-privacy-card);
	box-shadow: var(--daf-privacy-shadow-sm);
}

.daf-mp-privacy-overview {
	padding: clamp(22px, 2.8vw, 34px);
	border-radius: var(--daf-privacy-radius);
}

.daf-mp-privacy-overview h2,
.daf-mp-privacy-card h2,
.daf-mp-privacy-change h2,
.daf-mp-privacy-contact h2 {
	margin: 0 0 14px;
	color: var(--daf-privacy-ink);
	font-size: clamp(24px, 1.8vw, 34px);
	font-weight: 900;
	line-height: 1.12;
	letter-spacing: -0.045em;
	text-wrap: balance;
}

.daf-mp-privacy-overview p,
.daf-mp-privacy-card p,
.daf-mp-privacy-change p,
.daf-mp-privacy-contact p {
	margin: 0;
	color: var(--daf-privacy-muted);
	font-size: 15px;
	font-weight: 500;
	line-height: 1.68;
	letter-spacing: -0.01em;
}

/* Notice */
.daf-mp-privacy-notice {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 20px;
	padding: 15px 18px;
	border: 1px solid rgba(15, 159, 73, 0.14);
	border-radius: 14px;
	background:
		linear-gradient(135deg, rgba(15, 159, 73, 0.05), rgba(139, 190, 56, 0.055));
	color: var(--daf-privacy-green);
}

.daf-mp-privacy-notice span {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	flex: 0 0 auto;
	color: var(--daf-privacy-green);
	line-height: 0;
	text-align: center;
	overflow: hidden;
}

.daf-mp-privacy-notice svg {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 18px;
	height: 18px;
	margin: 0;
	transform: translate(-50%, -50%);
	transform-origin: center center;
}

.daf-mp-privacy-notice p {
	color: #14532d;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.5;
}

/* =========================================================
   CARDS GRID
========================================================= */
.daf-mp-privacy-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
	margin-top: 18px;
}

.daf-mp-privacy-card {
	position: relative;
	min-height: 100%;
	padding: clamp(22px, 2.2vw, 28px);
	border-radius: var(--daf-privacy-radius);
	overflow: hidden;
	transition:
		transform 180ms ease,
		box-shadow 180ms ease,
		border-color 180ms ease;
}

.daf-mp-privacy-card::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(circle at 18% 0%, rgba(15, 159, 73, 0.05), transparent 34%);
	pointer-events: none;
}

.daf-mp-privacy-card > * {
	position: relative;
	z-index: 1;
}

.daf-mp-privacy-card:hover {
	transform: translateY(-2px);
	border-color: rgba(15, 159, 73, 0.18);
	box-shadow: var(--daf-privacy-shadow-md);
}

.daf-mp-privacy-card__icon {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 50px;
	height: 50px;
	margin-bottom: 18px;
	border-radius: 14px;
	background: linear-gradient(135deg, rgba(15, 159, 73, 0.11), rgba(139, 190, 56, 0.10));
	color: var(--daf-privacy-green);
	box-shadow: inset 0 0 0 1px rgba(15, 159, 73, 0.08);
	text-align: center;
	line-height: 0;
	overflow: hidden;
}

.daf-mp-privacy-card__icon svg {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 21px;
	height: 21px;
	margin: 0;
	transform: translate(-50%, -50%);
	transform-origin: center center;
}

.daf-mp-privacy-card ul {
	position: relative;
	display: grid;
	gap: 10px;
	margin: 16px 0 0;
	padding: 0;
	list-style: none;
}

.daf-mp-privacy-card li {
	position: relative;
	padding-left: 24px;
	color: var(--daf-privacy-muted);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.6;
	letter-spacing: -0.01em;
}

.daf-mp-privacy-card li::before {
	content: "✓";
	position: absolute;
	left: 0;
	top: 0.1em;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 15px;
	height: 15px;
	border-radius: 999px;
	color: var(--daf-privacy-green);
	font-size: 12px;
	font-weight: 900;
}

.daf-mp-privacy-card strong {
	color: var(--daf-privacy-ink);
	font-weight: 850;
}

/* =========================================================
   CHANGE NOTICE
========================================================= */
.daf-mp-privacy-change {
	display: grid;
	grid-template-columns: 64px minmax(0, 1fr);
	align-items: center;
	gap: 18px;
	margin-top: 18px;
	padding: clamp(20px, 2.3vw, 28px);
	border-color: rgba(15, 159, 73, 0.14);
	border-radius: var(--daf-privacy-radius);
	background:
		linear-gradient(135deg, rgba(15, 159, 73, 0.06), rgba(139, 190, 56, 0.06)),
		#ffffff;
}

.daf-mp-privacy-change__icon {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	border-radius: 18px;
	background: rgba(15, 159, 73, 0.11);
	color: var(--daf-privacy-green);
	line-height: 0;
	text-align: center;
	overflow: hidden;
}

.daf-mp-privacy-change__icon svg {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 28px;
	height: 28px;
	margin: 0;
	transform: translate(-50%, -50%);
	transform-origin: center center;
}

.daf-mp-privacy-change h2 {
	margin-bottom: 8px;
	font-size: clamp(22px, 1.7vw, 28px);
}

/* =========================================================
   CONTACT SECTION
========================================================= */
.daf-mp-privacy-contact {
	display: grid;
	grid-template-columns: minmax(240px, 0.9fr) minmax(0, 1.6fr);
	gap: clamp(22px, 3vw, 38px);
	margin-top: 18px;
	padding: clamp(22px, 2.8vw, 34px);
	border-radius: var(--daf-privacy-radius);
}

.daf-mp-privacy-contact__intro {
	min-width: 0;
}

.daf-mp-privacy-contact__items {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	min-width: 0;
}

.daf-mp-privacy-contact__item {
	min-width: 0;
	padding: 18px;
	border: 1px solid rgba(226, 232, 240, 0.88);
	border-radius: 15px;
	background: #ffffff;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.03);
	transition:
		transform 180ms ease,
		border-color 180ms ease,
		box-shadow 180ms ease;
}

.daf-mp-privacy-contact__item:hover {
	transform: translateY(-2px);
	border-color: rgba(15, 159, 73, 0.16);
	box-shadow: 0 16px 34px rgba(15, 23, 42, 0.06);
}

.daf-mp-privacy-contact__item span {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	margin-bottom: 14px;
	border-radius: 12px;
	background: rgba(15, 159, 73, 0.10);
	color: var(--daf-privacy-green);
	line-height: 0;
	text-align: center;
	overflow: hidden;
}

.daf-mp-privacy-contact__item svg {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 18px;
	height: 18px;
	margin: 0;
	transform: translate(-50%, -50%);
	transform-origin: center center;
}

.daf-mp-privacy-contact__item strong {
	display: block;
	margin-bottom: 8px;
	color: var(--daf-privacy-ink);
	font-size: 14px;
	font-weight: 850;
}

.daf-mp-privacy-contact__item a,
.daf-mp-privacy-contact__item p {
	display: block;
	margin: 0;
	color: var(--daf-privacy-muted);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.55;
	word-break: break-word;
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 1180px) {
	.daf-mp-privacy-hero__inner {
		grid-template-columns: minmax(0, 1fr) minmax(210px, 0.6fr);
		gap: 28px;
	}

	.daf-mp-privacy-tabs__inner {
		justify-content: flex-start;
	}

	.daf-mp-privacy-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.daf-mp-privacy-contact {
		grid-template-columns: 1fr;
	}

	.daf-mp-privacy-contact__items {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 900px) {
	.daf-mp-privacy-hero {
		padding: 32px 0;
	}

	.daf-mp-privacy-hero__inner {
		grid-template-columns: 1fr;
	}

	.daf-mp-privacy-hero__visual {
		min-height: 160px;
	}

	.daf-mp-privacy-tabs {
		top: 0;
	}

	.admin-bar .daf-mp-privacy-tabs {
		top: 46px;
	}

	.daf-mp-privacy-tabs__inner {
		min-height: 60px;
		gap: 10px;
	}

	.daf-mp-privacy-tabs__link {
		min-height: 60px;
		padding-inline: 4px;
		font-size: 12.8px;
	}

	.daf-mp-privacy-grid,
	.daf-mp-privacy-contact__items {
		grid-template-columns: 1fr;
	}

	.daf-mp-privacy-change {
		grid-template-columns: 1fr;
	}

	.daf-mp-privacy-change__icon {
		width: 56px;
		height: 56px;
		border-radius: 16px;
	}

	.daf-mp-privacy-change__icon svg {
		width: 24px;
		height: 24px;
	}

	.daf-mp-privacy-tabs__icon {
		width: 16px;
		height: 16px;
	}

	.daf-mp-privacy-tabs__icon svg {
		width: 15px;
		height: 15px;
	}
}

@media (max-width: 640px) {
	.daf-mp-privacy-hero {
		padding: 28px 0;
	}

	.daf-mp-privacy-hero h1 {
		margin-top: 14px;
		font-size: clamp(33px, 11vw, 46px);
	}

	.daf-mp-privacy-hero p {
		font-size: 14.5px;
		line-height: 1.62;
	}

	.daf-mp-privacy-updated {
		margin-top: 16px;
		font-size: 12px;
	}

	.daf-mp-privacy-hero__visual {
		display: none;
	}

	.daf-mp-privacy-tabs__inner {
		width: 100%;
		padding-inline: 16px;
	}

	.daf-mp-privacy-content {
		padding-top: 22px;
		padding-bottom: 48px;
	}

	.daf-mp-privacy-overview,
	.daf-mp-privacy-card,
	.daf-mp-privacy-change,
	.daf-mp-privacy-contact {
		border-radius: 14px;
	}

	.daf-mp-privacy-overview,
	.daf-mp-privacy-card,
	.daf-mp-privacy-change,
	.daf-mp-privacy-contact {
		padding: 20px;
	}

	.daf-mp-privacy-overview h2,
	.daf-mp-privacy-card h2,
	.daf-mp-privacy-change h2,
	.daf-mp-privacy-contact h2 {
		font-size: 22px;
	}

	.daf-mp-privacy-card__icon {
		width: 46px;
		height: 46px;
		margin-bottom: 16px;
		border-radius: 14px;
	}

	.daf-mp-privacy-card__icon svg {
		width: 20px;
		height: 20px;
	}

	.daf-mp-privacy-card li {
		font-size: 13.5px;
	}

	.daf-mp-privacy-notice {
		align-items: flex-start;
		padding: 15px;
	}

	.daf-mp-privacy-contact__item {
		padding: 16px;
	}
}

@media (max-width: 420px) {
	.daf-mp-privacy-kicker {
		font-size: 10px;
		padding-inline: 12px;
	}

	.daf-mp-privacy-tabs__link {
		font-size: 12.3px;
	}

	.daf-mp-privacy-tabs__icon {
		width: 15px;
		height: 15px;
	}

	.daf-mp-privacy-tabs__icon svg {
		width: 14px;
		height: 14px;
	}
}