/* ===========================================================
   TextCRM — Privacy Policy (textcrm-privacy)
   Long-form legal page widget. Centered hero (eyebrow badge +
   two-tone title + "last updated" pill + intro) over a single
   glass content card with a brand-green top strip, dotted corner
   halo, optional TOC and numbered policy sections.
   Palette / type / radii / shadows / hover mirror the Inner Hero,
   Contact and Value Props widgets (#0b1326 surface, #00f5a0 accent,
   teal heading glow, glass cards, white-tinted borders, Inter type)
   so /privacy reads as part of the same TextCRM design system.
   =========================================================== */

.textcrm-privacy {
	--tcp-accent:        #00f5a0;
	--tcp-accent-hover:  #5effc4;
	--tcp-accent-teal:   #44e2cd;

	--tcp-heading:       #ffffff;
	--tcp-text:          #d1d5db;
	--tcp-muted:         #9ca3af;
	--tcp-subtle:        #6b7280;

	--tcp-card-bg:       rgba(255, 255, 255, 0.03);
	--tcp-card-border:   rgba(255, 255, 255, 0.07);
	--tcp-card-shadow:   inset 1px 1px 0 rgba(255, 255, 255, 0.06), 0 24px 60px -24px rgba(0, 0, 0, 0.6);
	--tcp-divider:       rgba(255, 255, 255, 0.08);

	/* Signature teal heading halo — same as Inner Hero / Contact ::before. */
	--tcp-glow:          rgba(68, 226, 205, 0.19);
	/* Faint side dot-grid decoration in brand green. */
	--tcp-dot:           rgba(0, 245, 160, 0.13);

	/* Eyebrow badge — white-tinted glass pill, green text. */
	--tcp-badge-bg:      rgba(255, 255, 255, 0.05);
	--tcp-badge-border:  rgba(255, 255, 255, 0.1);

	/* Brand-green accent strip / number chips. */
	--tcp-brand-gradient: linear-gradient(90deg, #00f5a0 0%, #44e2cd 100%);
	--tcp-chip-bg:       rgba(0, 245, 160, 0.1);

	/* "Last updated" pill + TOC surface. */
	--tcp-updated-bg:    rgba(0, 245, 160, 0.08);
	--tcp-toc-bg:        rgba(255, 255, 255, 0.02);
	--tcp-toc-border:    rgba(255, 255, 255, 0.07);

	--tcp-radius-pill:   9999px;
	--tcp-radius-card:   20px;
	--tcp-radius-lg:     16px;
	--tcp-radius-md:     12px;
	--tcp-radius-sm:     8px;

	position: relative;
	font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	color: var(--tcp-text);
	background-color: #0b1326;
	-webkit-font-smoothing: antialiased;
	overflow: hidden;
	box-sizing: border-box;
	/* Kill any global section divider so the panel sits flush. */
	border-top: 0 !important;
}
.textcrm-privacy *,
.textcrm-privacy *::before,
.textcrm-privacy *::after { box-sizing: border-box; }

/* ===========================================================
   Decorations — teal heading halo + side dot-grid
   =========================================================== */

/* Signature teal halo behind the heading (mirrors Inner Hero / Contact). */
.textcrm-privacy--glow::before {
	content: "";
	position: absolute;
	top: -70px;
	left: 50%;
	transform: translateX(-50%);
	width: min(920px, 100%);
	height: 560px;
	background: var(--tcp-glow);
	filter: blur(130px);
	border-radius: 9999px;
	pointer-events: none;
	z-index: 0;
}

.textcrm-privacy__dots {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	overflow: hidden;
}
.textcrm-privacy__dotField {
	position: absolute;
	top: 0;
	bottom: 0;
	width: clamp(80px, 13vw, 220px);
	background-image: radial-gradient(var(--tcp-dot) 1.4px, transparent 1.6px);
	background-size: 24px 24px;
}
.textcrm-privacy__dotField--left {
	left: 0;
	-webkit-mask-image: linear-gradient(90deg, #000 0%, transparent 100%);
	        mask-image: linear-gradient(90deg, #000 0%, transparent 100%);
}
.textcrm-privacy__dotField--right {
	right: 0;
	-webkit-mask-image: linear-gradient(270deg, #000 0%, transparent 100%);
	        mask-image: linear-gradient(270deg, #000 0%, transparent 100%);
}

/* ===========================================================
   Layout
   =========================================================== */
.textcrm-privacy__inner {
	position: relative;
	z-index: 1;
	max-width: 1200px;
	margin: 0 auto;
	/* Top padding clears the fixed site header at the same distance as the
	   Inner Hero / Contact pages (pt-32). */
	padding: 128px clamp(1.25rem, 3vw, 2.5rem) clamp(4rem, 7vw, 7rem);
	display: flex;
	flex-direction: column;
	align-items: center;
}

/* ===========================================================
   Header — centered (badge + title + updated pill + intro)
   =========================================================== */
.textcrm-privacy__head {
	max-width: 800px;
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	margin-bottom: clamp(2.5rem, 4vw, 4rem);
}

/* Eyebrow badge — mirrors the Inner Hero / Contact pill. */
.textcrm-privacy .textcrm-privacy__badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 16px 6px 14px;
	background-color: var(--tcp-badge-bg);
	border: 1px solid var(--tcp-badge-border);
	border-radius: var(--tcp-radius-pill);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--tcp-accent);
	margin-bottom: clamp(1.25rem, 2vw, 1.75rem);
	line-height: 1;
}
.textcrm-privacy__badgeIcon {
	display: inline-flex;
	width: 15px;
	height: 15px;
	align-items: center;
	justify-content: center;
	color: var(--tcp-accent);
	flex-shrink: 0;
	line-height: 0;
}
.textcrm-privacy__badgeIcon svg { display: block; width: 15px; height: 15px; }
.textcrm-privacy__badgeText {
	font: inherit;
	color: inherit;
	line-height: 1;
}

/* Title — two-tone, accent line in brand green (mirrors Inner Hero). */
.textcrm-privacy .textcrm-privacy__heading {
	font-size: clamp(2.25rem, 1rem + 4.2vw, 4rem);   /* 36 → 64px */
	line-height: 1.1;
	font-weight: 700;
	letter-spacing: -0.03em;
	margin: 0 0 clamp(1rem, 1.6vw, 1.5rem);
	color: var(--tcp-heading);
	text-wrap: balance;
}
.textcrm-privacy .textcrm-privacy__headingAccent {
	color: var(--tcp-accent) !important;
	font-weight: 700 !important;
}

/* "Last updated" pill */
.textcrm-privacy__updated {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 14px 6px 11px;
	background-color: var(--tcp-updated-bg);
	color: var(--tcp-accent);
	border: 1px solid rgba(0, 245, 160, 0.18);
	border-radius: var(--tcp-radius-pill);
	font-size: 12.5px;
	font-weight: 600;
	letter-spacing: 0.005em;
	line-height: 1;
	margin-bottom: clamp(1.25rem, 2vw, 1.75rem);
}
.textcrm-privacy__updatedDot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--tcp-accent);
	box-shadow: 0 0 0 3px rgba(0, 245, 160, 0.2);
	flex-shrink: 0;
}
.textcrm-privacy__updatedLabel { opacity: .85; font-weight: 600; }
.textcrm-privacy__updatedDate  { font-weight: 700; }

/* Intro paragraphs — body-lg like the inner-page subtitles. */
.textcrm-privacy .textcrm-privacy__intro {
	font-size: clamp(1rem, .92rem + .4vw, 1.125rem);
	line-height: 1.6;
	letter-spacing: 0.01em;
	color: var(--tcp-muted);
	max-width: 720px;
	margin: 0 0 1rem;
	font-weight: 400;
}
.textcrm-privacy .textcrm-privacy__intro--secondary { color: var(--tcp-subtle); margin-bottom: 0; }

/* ===========================================================
   Card panel — brand-green top strip + dotted corner halo
   =========================================================== */
.textcrm-privacy__card {
	position: relative;
	width: 100%;
	max-width: 920px;
	background-color: var(--tcp-card-bg);
	border: 1px solid var(--tcp-card-border);
	border-radius: var(--tcp-radius-card);
	padding: clamp(1.75rem, 3.5vw, 3.25rem);
	box-shadow: var(--tcp-card-shadow);
	-webkit-backdrop-filter: blur(10px);
	        backdrop-filter: blur(10px);
	overflow: hidden;
}
.textcrm-privacy--accent .textcrm-privacy__card::before {
	content: "";
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 3px;
	background: var(--tcp-brand-gradient);
	z-index: 1;
	border-radius: var(--tcp-radius-card) var(--tcp-radius-card) 0 0;
}
.textcrm-privacy__card::after {
	content: "";
	position: absolute;
	top: 3px;
	right: 0;
	width: 220px;
	height: 220px;
	background-image: radial-gradient(circle at 1.5px 1.5px, rgba(0, 245, 160, 0.16) 1px, transparent 0);
	background-size: 18px 18px;
	-webkit-mask-image: linear-gradient(225deg, #000 0%, transparent 70%);
	        mask-image: linear-gradient(225deg, #000 0%, transparent 70%);
	pointer-events: none;
	opacity: .6;
	z-index: 0;
}

/* ===========================================================
   Table of Contents
   =========================================================== */
.textcrm-privacy__toc {
	position: relative;
	z-index: 1;
	background-color: var(--tcp-toc-bg);
	border: 1px solid var(--tcp-toc-border);
	border-radius: var(--tcp-radius-lg);
	padding: 1.25rem 1.5rem;
	margin-bottom: clamp(2rem, 3vw, 3rem);
}
.textcrm-privacy__toc::before {
	content: "";
	position: absolute;
	top: 14px;
	left: -1px;
	width: 3px;
	height: 28px;
	background: var(--tcp-brand-gradient);
	border-radius: 0 2px 2px 0;
}
.textcrm-privacy .textcrm-privacy__tocTitle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 12px;
	font-weight: 800;
	color: var(--tcp-heading);
	margin: 0 0 1rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}
.textcrm-privacy__tocTitleIcon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	color: #04130d;
	background: var(--tcp-brand-gradient);
	border-radius: var(--tcp-radius-sm);
	flex-shrink: 0;
	box-shadow: 0 4px 12px -4px rgba(0, 245, 160, 0.5);
}
.textcrm-privacy__tocTitleIcon svg { width: 13px; height: 13px; }

.textcrm-privacy__tocList {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px 24px;
}
.textcrm-privacy__tocItem { font-size: 14px; }
.textcrm-privacy .textcrm-privacy__tocLink,
.textcrm-privacy a.textcrm-privacy__tocLink {
	display: inline-flex;
	align-items: baseline;
	gap: 10px;
	padding: 4px 0;
	color: var(--tcp-text);
	text-decoration: none;
	font-weight: 500;
	transition: color 0.2s ease, transform 0.2s ease;
}
.textcrm-privacy .textcrm-privacy__tocLink:hover {
	color: var(--tcp-accent);
	transform: translateX(2px);
}
.textcrm-privacy .textcrm-privacy__tocLink:hover .textcrm-privacy__tocLabel {
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
}
.textcrm-privacy__tocNum {
	color: var(--tcp-accent);
	font-variant-numeric: tabular-nums;
	font-weight: 800;
	font-size: 12px;
	letter-spacing: -.01em;
	flex-shrink: 0;
}

/* ===========================================================
   Sections — numbered articles
   =========================================================== */
.textcrm-privacy__content {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	gap: clamp(1.75rem, 3vw, 2.75rem);
}
.textcrm-privacy__section { scroll-margin-top: 100px; }
.textcrm-privacy__section + .textcrm-privacy__section {
	padding-top: clamp(1.75rem, 3vw, 2.75rem);
	border-top: 1px dashed var(--tcp-divider);
}

/* Section header */
.textcrm-privacy__secHead {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 1.25rem;
}
.textcrm-privacy__num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 28px;
	padding: 0 10px;
	background: var(--tcp-brand-gradient);
	color: #04130d;
	border-radius: var(--tcp-radius-pill);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .04em;
	font-variant-numeric: tabular-nums;
	box-shadow: 0 4px 12px -4px rgba(0, 245, 160, 0.5);
	flex-shrink: 0;
}
.textcrm-privacy__secIcon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	color: var(--tcp-accent);
	background-color: var(--tcp-chip-bg);
	border-radius: var(--tcp-radius-md);
	flex-shrink: 0;
	transition: transform 0.25s cubic-bezier(.16, 1, .3, 1);
}
.textcrm-privacy__secIcon svg { width: 18px; height: 18px; }
.textcrm-privacy__section:hover .textcrm-privacy__secIcon {
	transform: scale(1.05) rotate(-3deg);
}

.textcrm-privacy .textcrm-privacy__secTitle {
	font-size: 1.375rem;            /* 22px */
	font-weight: 700;
	letter-spacing: -0.02em;
	color: var(--tcp-heading);
	margin: 0;
	line-height: 1.3;
	flex: 1 1 280px;
	min-width: 0;
}

/* ===========================================================
   Body content (prose)
   =========================================================== */
.textcrm-privacy__body {
	color: var(--tcp-text);
	font-size: 16px;
	line-height: 1.7;
	min-width: 0;
	overflow-wrap: break-word;
	word-break: break-word;
}
.textcrm-privacy__body > *            { max-width: 100%; }
.textcrm-privacy__body > *:first-child { margin-top: 0; }
.textcrm-privacy__body > *:last-child  { margin-bottom: 0; }
.textcrm-privacy__body p {
	margin: 0 0 1rem;
	color: var(--tcp-text);
}

/* In-body headings (h3 = "Account Information" / "Usage Information" / etc.) */
.textcrm-privacy__body h2,
.textcrm-privacy__body h3,
.textcrm-privacy__body h4 {
	color: var(--tcp-heading);
	font-weight: 700;
	margin: 1.5rem 0 .75rem;
	line-height: 1.3;
	letter-spacing: -0.01em;
}
.textcrm-privacy__body h2 { font-size: 1.25rem; }
.textcrm-privacy__body h3 {
	font-size: 1.0625rem;
	display: inline-flex;
	align-items: center;
	gap: 10px;
}
.textcrm-privacy__body h3::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--tcp-brand-gradient);
	box-shadow: 0 0 0 3px rgba(0, 245, 160, 0.14);
	flex-shrink: 0;
}
.textcrm-privacy__body h4 { font-size: 1rem; }

/* Lists — brand-green custom bullets */
.textcrm-privacy__body ul,
.textcrm-privacy__body ol {
	margin: 0 0 1rem;
	padding-left: 1.5rem;
}
.textcrm-privacy__body ul {
	list-style: none;
	padding-left: 0;
}
.textcrm-privacy__body ul li {
	position: relative;
	padding-left: 1.5rem;
	margin: 6px 0;
	color: var(--tcp-text);
}
.textcrm-privacy__body ul li::before {
	content: "";
	position: absolute;
	left: 2px;
	top: 0.65em;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--tcp-brand-gradient);
}
.textcrm-privacy__body ol li {
	margin: 6px 0;
	color: var(--tcp-text);
	padding-left: 4px;
}
.textcrm-privacy__body ol li::marker {
	color: var(--tcp-accent);
	font-weight: 800;
}

.textcrm-privacy__body strong {
	color: var(--tcp-heading);
	font-weight: 700;
}

/* Inline links — animated brand-green underline. */
.textcrm-privacy__body a {
	color: var(--tcp-accent);
	text-decoration: none;
	background-image: linear-gradient(to right, var(--tcp-accent), var(--tcp-accent));
	background-size: 100% 1px;
	background-position: 0 100%;
	background-repeat: no-repeat;
	transition: background-size 0.2s ease, color 0.2s ease;
	font-weight: 600;
	padding-bottom: 1px;
}
.textcrm-privacy__body a:hover {
	background-size: 100% 2px;
	color: var(--tcp-accent-hover);
}

/* ===========================================================
   Responsive
   =========================================================== */
@media (max-width: 900px) {
	.textcrm-privacy__tocList { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
	.textcrm-privacy__card { border-radius: var(--tcp-radius-lg); }
	.textcrm-privacy__card::after { width: 160px; height: 160px; }
	.textcrm-privacy .textcrm-privacy__secTitle { font-size: 1.25rem; flex-basis: 100%; }
	.textcrm-privacy__secIcon { width: 34px; height: 34px; }
	.textcrm-privacy__secIcon svg { width: 16px; height: 16px; }
}
@media (max-width: 600px) {
	.textcrm-privacy__inner {
		padding: 112px clamp(1rem, 5vw, 1.5rem) clamp(2.5rem, 8vw, 4rem);
	}
}
@media (max-width: 480px) {
	.textcrm-privacy .textcrm-privacy__heading { font-size: clamp(2rem, 8vw, 2.5rem); }
	.textcrm-privacy__updated { font-size: 11.5px; padding: 5px 12px 5px 10px; }
	.textcrm-privacy__updatedLabel { display: none; }
	.textcrm-privacy__card { padding: 1.25rem; }
	.textcrm-privacy__toc { padding: 1rem; }
	.textcrm-privacy__num { min-width: 34px; height: 26px; font-size: 11px; }
	.textcrm-privacy__secHead { gap: 10px; }
	.textcrm-privacy__body { font-size: 15px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
	.textcrm-privacy .textcrm-privacy__tocLink:hover { transform: none; }
	.textcrm-privacy__section:hover .textcrm-privacy__secIcon { transform: none; }
	.textcrm-privacy__secIcon,
	.textcrm-privacy .textcrm-privacy__tocLink,
	.textcrm-privacy__body a { transition: none; }
}
