/* ===========================================================
   RewardRace — Privacy Policy (rrPriv)
   Long-form legal page widget. Centered hero (badge + title +
   updated pill + intro) over a single-column content card with
   a brand-gradient top strip, dotted corner halo, optional TOC
   and numbered policy sections.
   Pulls colour tokens, type weights, badge and shadows from
   base.css so it matches the Hero / How It Works / Pricing /
   Integrations Hero widgets 1:1.
   =========================================================== */

.rrPriv {
	--rrp-heading:        var(--rr-heading);
	--rrp-text:           var(--rr-text);
	--rrp-muted:          var(--rr-muted);
	--rrp-subtle:         var(--rr-subtle);
	--rrp-accent:         var(--rr-brand);
	--rrp-accent-soft:    var(--rr-brand-soft);
	--rrp-accent-tint:    var(--rr-brand-tint);
	--rrp-accent-ghost:   var(--rr-brand-ghost);
	--rrp-divider:        var(--rr-divider);
	--rrp-border:         var(--rr-border);
	--rrp-border-strong:  var(--rr-border-strong);

	/* Soft purple-tinted page background — matches the Integrations
	   Hero so /privacy reads as part of the same product surface. */
	--rrp-section-bg:     linear-gradient(180deg, #F6F4FE 0%, #FAF8FF 50%, #FFFFFF 100%);
	--rrp-glow1:          rgba(139, 115, 255, .26);
	--rrp-glow2:          rgba(233, 213, 255, .44);

	/* Faint side dot-grid decoration. */
	--rrp-dot:            rgba(87, 63, 211, .18);

	/* Badge — subtle white→lavender wash, brand-purple icon. */
	--rrp-badge-bg:       linear-gradient(135deg, rgba(255, 255, 255, .85) 0%, rgba(238, 234, 251, .85) 100%);
	--rrp-badge-border:   rgba(87, 63, 211, .15);
	--rrp-badge-color:    #573FD3;
	--rrp-badge-icon:     #573FD3;
	--rrp-badge-shadow:   0 1px 2px rgba(11, 10, 20, .04);

	/* Card panel. */
	--rrp-card-bg:        var(--rr-bg);
	--rrp-card-border:    var(--rr-border);
	--rrp-card-shadow:    var(--rr-shadow-lg);

	/* "Last updated" pill. */
	--rrp-updated-bg:     color-mix(in srgb, var(--rr-brand) 8%, #FFFFFF);
	--rrp-updated-color:  var(--rr-brand-hover);

	/* TOC. */
	--rrp-toc-bg:         color-mix(in srgb, var(--rr-brand) 4%, var(--rr-bg));
	--rrp-toc-border:     var(--rr-border);

	position: relative;
	font-family: var(--rr-font-sans);
	color: var(--rrp-text);
	background: var(--rrp-section-bg);
	overflow: hidden;
	box-sizing: border-box;
	/* Kill global section divider — same as Integrations Hero. */
	border-top: 0 !important;
}
.rrPriv *,
.rrPriv *::before,
.rrPriv *::after { box-sizing: border-box; }

/* ----- Dark mode ----- */
.rrPriv--dark,
html[data-theme="dark"] .rrPriv--auto {
	--rrp-section-bg:    linear-gradient(180deg, #14102B 0%, #0E0B22 50%, #0A0912 100%);
	--rrp-glow1:         rgba(139, 115, 255, .26);
	--rrp-glow2:         rgba(87, 63, 211, .20);
	--rrp-dot:           rgba(139, 115, 255, .22);

	--rrp-badge-bg:      linear-gradient(135deg, rgba(255, 255, 255, .08) 0%, rgba(139, 115, 255, .14) 100%);
	--rrp-badge-border:  rgba(255, 255, 255, .12);
	--rrp-badge-color:   #C9BCFF;
	--rrp-badge-icon:    #B8A6FF;
	--rrp-badge-shadow:  0 1px 2px rgba(0, 0, 0, .35);

	--rrp-card-bg:       var(--rr-surface);
	--rrp-card-border:   var(--rr-border);
	--rrp-card-shadow:   var(--rr-shadow-xl);

	--rrp-updated-bg:    rgba(139, 115, 255, .14);
	--rrp-updated-color: #C9BCFF;

	--rrp-toc-bg:        rgba(139, 115, 255, .07);
	--rrp-toc-border:    rgba(255, 255, 255, .10);
}

/* ===========================================================
   Decorations — side dot-grid + soft glows
   =========================================================== */
.rrPriv__dots {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	overflow: hidden;
}
.rrPriv__dotField {
	position: absolute;
	top: 0;
	bottom: 0;
	width: clamp(80px, 13vw, 220px);
	background-image: radial-gradient(var(--rrp-dot) 1.4px, transparent 1.6px);
	background-size: 24px 24px;
}
.rrPriv__dotField--left {
	left: 0;
	-webkit-mask-image: linear-gradient(90deg, #000 0%, transparent 100%);
	        mask-image: linear-gradient(90deg, #000 0%, transparent 100%);
}
.rrPriv__dotField--right {
	right: 0;
	-webkit-mask-image: linear-gradient(270deg, #000 0%, transparent 100%);
	        mask-image: linear-gradient(270deg, #000 0%, transparent 100%);
}

.rrPriv__bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	overflow: hidden;
}
.rrPriv__glow {
	position: absolute;
	border-radius: 50%;
	filter: blur(110px);
}
.rrPriv__glow--tl {
	width: 560px; height: 560px;
	top: -220px; left: -160px;
	background: radial-gradient(circle at center, var(--rrp-glow1) 0%, transparent 70%);
}
.rrPriv__glow--br {
	width: 520px; height: 520px;
	bottom: -200px; right: -140px;
	background: radial-gradient(circle at center, var(--rrp-glow2) 0%, transparent 70%);
}

/* ===========================================================
   Layout
   =========================================================== */
.rrPriv__inner {
	position: relative;
	z-index: 1;
	max-width: var(--rr-container);
	margin: 0 auto;
	padding: clamp(3.5rem, 6vw, 6rem) clamp(1.25rem, 3vw, 2.5rem) clamp(4rem, 7vw, 7rem);
	display: flex;
	flex-direction: column;
	align-items: center;
}

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

/* Badge */
.rrPriv .rrPriv__badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 7px 15px 7px 13px;
	background: var(--rrp-badge-bg);
	border: 1px solid var(--rrp-badge-border);
	border-radius: var(--rr-radius-pill);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .07em;
	text-transform: uppercase;
	color: var(--rrp-badge-color);
	margin-bottom: clamp(1.25rem, 2vw, 1.75rem);
	box-shadow: var(--rrp-badge-shadow);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	line-height: 1;
}
.rrPriv__badgeIcon {
	display: inline-flex;
	width: 15px;
	height: 15px;
	align-items: center;
	justify-content: center;
	color: var(--rrp-badge-icon);
	flex-shrink: 0;
	line-height: 0;
}
.rrPriv__badgeIcon svg { display: block; }
.rrPriv__badgeText {
	font: inherit;
	color: inherit;
	line-height: 1;
}

/* Heading */
.rrPriv .rrPriv__heading {
	font-size: clamp(2.25rem, 1rem + 4.2vw, 4.25rem);
	line-height: 1.08;
	font-weight: 800;
	letter-spacing: -.028em;
	margin: 0 0 clamp(1rem, 1.6vw, 1.5rem);
	color: var(--rrp-heading);
	text-wrap: balance;
}
.rrPriv .rrPriv__headingAccent {
	color: var(--rrp-accent) !important;
	font-weight: 800 !important;
}

/* "Last updated" pill */
.rrPriv__updated {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 14px 6px 11px;
	background-color: var(--rrp-updated-bg);
	color: var(--rrp-updated-color);
	border-radius: var(--rr-radius-pill);
	font-size: 12.5px;
	font-weight: 600;
	letter-spacing: -.005em;
	line-height: 1;
	margin-bottom: clamp(1.25rem, 2vw, 1.75rem);
}
.rrPriv__updatedDot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--rrp-accent);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--rrp-accent) 22%, transparent);
	flex-shrink: 0;
}
.rrPriv__updatedLabel { opacity: .85; font-weight: 600; }
.rrPriv__updatedDate  { font-weight: 700; }

/* Intro paragraphs */
.rrPriv .rrPriv__intro {
	font-size: clamp(1rem, .92rem + .4vw, 1.125rem);
	line-height: var(--rr-lh-relaxed);
	color: var(--rrp-muted);
	max-width: 720px;
	margin: 0 0 var(--rr-space-4);
	font-weight: 500;
}
.rrPriv .rrPriv__intro--secondary { color: var(--rrp-subtle); margin-bottom: 0; }

/* ===========================================================
   Card panel — brand top-accent + dotted corner halo
   =========================================================== */
.rrPriv__card {
	position: relative;
	width: 100%;
	max-width: 920px;
	background: var(--rrp-card-bg);
	border: 1px solid var(--rrp-card-border);
	border-radius: var(--rr-radius-2xl);
	padding: clamp(1.75rem, 3.5vw, 3.25rem);
	box-shadow: var(--rrp-card-shadow);
	overflow: hidden;
}
.rrPriv--accent .rrPriv__card::before {
	content: "";
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 4px;
	background: var(--rr-brand-gradient);
	z-index: 1;
	border-radius: var(--rr-radius-2xl) var(--rr-radius-2xl) 0 0;
}
.rrPriv__card::after {
	content: "";
	position: absolute;
	top: 4px;
	right: 0;
	width: 220px;
	height: 220px;
	background-image: radial-gradient(circle at 1.5px 1.5px, color-mix(in srgb, var(--rrp-accent) 14%, transparent) 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: .55;
	z-index: 0;
}

/* ===========================================================
   Table of Contents
   =========================================================== */
.rrPriv__toc {
	position: relative;
	z-index: 1;
	background: var(--rrp-toc-bg);
	border: 1px solid var(--rrp-toc-border);
	border-radius: var(--rr-radius-lg);
	padding: var(--rr-space-5) var(--rr-space-6);
	margin-bottom: clamp(2rem, 3vw, 3rem);
}
.rrPriv__toc::before {
	content: "";
	position: absolute;
	top: 14px;
	left: -1px;
	width: 3px;
	height: 28px;
	background: var(--rr-brand-gradient);
	border-radius: 0 2px 2px 0;
}
.rrPriv__tocTitle {
	display: inline-flex;
	align-items: center;
	gap: var(--rr-space-2);
	font-size: 12px;
	font-weight: 800;
	color: var(--rrp-heading);
	margin: 0 0 var(--rr-space-4);
	text-transform: uppercase;
	letter-spacing: var(--rr-tracking-wide);
}
.rrPriv__tocTitleIcon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	color: #FFFFFF;
	background: var(--rr-brand-gradient);
	border-radius: var(--rr-radius-sm);
	flex-shrink: 0;
	box-shadow: var(--rr-shadow-brand-sm);
}
.rrPriv__tocTitleIcon svg { width: 13px; height: 13px; }

.rrPriv__tocList {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px 24px;
}
.rrPriv__tocItem { font-size: var(--rr-fs-sm); }
.rrPriv .rrPriv__tocLink,
.rrPriv a.rrPriv__tocLink {
	display: inline-flex;
	align-items: baseline;
	gap: 10px;
	padding: 4px 0;
	color: var(--rrp-text);
	text-decoration: none;
	font-weight: 600;
	transition: color var(--rr-dur-fast) var(--rr-ease-out),
	            transform var(--rr-dur-fast) var(--rr-ease-out);
}
.rrPriv .rrPriv__tocLink:hover {
	color: var(--rrp-accent);
	transform: translateX(2px);
}
.rrPriv .rrPriv__tocLink:hover .rrPriv__tocLabel {
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
}
.rrPriv__tocNum {
	color: var(--rrp-accent);
	font-variant-numeric: tabular-nums;
	font-weight: 800;
	font-size: var(--rr-fs-xs);
	letter-spacing: -.01em;
	flex-shrink: 0;
}

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

/* Section header */
.rrPriv__secHead {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: var(--rr-space-3);
	margin-bottom: var(--rr-space-5);
}
.rrPriv__num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 28px;
	padding: 0 10px;
	background: var(--rr-brand-gradient);
	color: #FFFFFF;
	border-radius: var(--rr-radius-pill);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .04em;
	font-variant-numeric: tabular-nums;
	box-shadow: var(--rr-shadow-brand-sm);
	flex-shrink: 0;
}
.rrPriv__secIcon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	color: var(--rrp-accent);
	background: var(--rrp-accent-tint);
	border-radius: var(--rr-radius-md);
	flex-shrink: 0;
}
.rrPriv__secIcon svg { width: 18px; height: 18px; }

.rrPriv .rrPriv__secTitle {
	font-size: var(--rr-fs-h3);
	font-weight: 800;
	letter-spacing: var(--rr-tracking-tight);
	color: var(--rrp-heading);
	margin: 0;
	line-height: var(--rr-lh-snug);
	flex: 1 1 280px;
	min-width: 0;
}

/* ===========================================================
   Body content (mirrors docs-article body so prose looks
   identical across long-form pages)
   =========================================================== */
.rrPriv__body {
	color: var(--rrp-text);
	font-size: var(--rr-fs-md);
	line-height: var(--rr-lh-relaxed);
	min-width: 0;
	overflow-wrap: break-word;
	word-break: break-word;
}
.rrPriv__body > *           { max-width: 100%; }
.rrPriv__body > *:first-child { margin-top: 0; }
.rrPriv__body > *:last-child  { margin-bottom: 0; }
.rrPriv__body p {
	margin: 0 0 var(--rr-space-4);
	color: var(--rrp-text);
}

/* In-body headings (h3 = "Account Information" / "Usage Information" / etc.) */
.rrPriv__body h2,
.rrPriv__body h3,
.rrPriv__body h4 {
	color: var(--rrp-heading);
	font-weight: 800;
	margin: var(--rr-space-6) 0 var(--rr-space-3);
	line-height: var(--rr-lh-snug);
	letter-spacing: var(--rr-tracking-snug);
}
.rrPriv__body h2 { font-size: var(--rr-fs-h4); }
.rrPriv__body h3 {
	font-size: 1.125rem;
	display: inline-flex;
	align-items: center;
	gap: 10px;
}
.rrPriv__body h3::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--rr-brand-gradient);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--rrp-accent) 14%, transparent);
	flex-shrink: 0;
}
.rrPriv__body h4 { font-size: var(--rr-fs-md); }

/* Lists — purple custom bullets to match brand */
.rrPriv__body ul,
.rrPriv__body ol {
	margin: 0 0 var(--rr-space-4);
	padding-left: var(--rr-space-6);
}
.rrPriv__body ul {
	list-style: none;
	padding-left: 0;
}
.rrPriv__body ul li {
	position: relative;
	padding-left: var(--rr-space-6);
	margin: 6px 0;
	color: var(--rrp-text);
}
.rrPriv__body ul li::before {
	content: "";
	position: absolute;
	left: 2px;
	top: 0.65em;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--rr-brand-gradient);
}
.rrPriv__body ol li {
	margin: 6px 0;
	color: var(--rrp-text);
	padding-left: 4px;
}
.rrPriv__body ol li::marker {
	color: var(--rrp-accent);
	font-weight: 800;
}

.rrPriv__body strong {
	color: var(--rrp-heading);
	font-weight: 700;
}

/* Inline links inside body get an animated underline (matches docs-article). */
.rrPriv__body a {
	color: var(--rrp-accent);
	text-decoration: none;
	background-image: linear-gradient(to right, var(--rrp-accent), var(--rrp-accent));
	background-size: 100% 1px;
	background-position: 0 100%;
	background-repeat: no-repeat;
	transition: background-size var(--rr-dur-fast) var(--rr-ease-out);
	font-weight: 600;
	padding-bottom: 1px;
}
.rrPriv__body a:hover { background-size: 100% 2px; }

/* ===========================================================
   Responsive
   =========================================================== */
@media (max-width: 900px) {
	.rrPriv__tocList { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
	.rrPriv__card { border-radius: var(--rr-radius-xl); }
	.rrPriv__card::after { width: 160px; height: 160px; }
	.rrPriv .rrPriv__secTitle { font-size: var(--rr-fs-h4); flex-basis: 100%; }
	.rrPriv__secIcon { width: 34px; height: 34px; }
	.rrPriv__secIcon svg { width: 16px; height: 16px; }
}
@media (max-width: 480px) {
	.rrPriv .rrPriv__heading { font-size: clamp(2rem, 8vw, 2.75rem); }
	.rrPriv__updated { font-size: 11.5px; padding: 5px 12px 5px 10px; }
	.rrPriv__updatedLabel { display: none; }
	.rrPriv__card { padding: var(--rr-space-5); }
	.rrPriv__toc { padding: var(--rr-space-4); }
	.rrPriv__num { min-width: 34px; height: 26px; font-size: 11px; }
	.rrPriv__secHead { gap: 10px; }
	.rrPriv__body { font-size: var(--rr-fs-sm); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
	.rrPriv .rrPriv__tocLink:hover { transform: none; }
}
