/* ============================================================
   BAYOUPEP USA — LEGAL PAGES (Terms of Service + Privacy Policy)
   Two designs, one stylesheet:
     #bpusa-terms      → bpusa-*   (Terms)
     #bp-privacy-page  → bp-legal-* (Privacy)
   Purple var(--bp-primary) glassmorphism, transparent panels so the site-wide
   background video shows through. Fonts come from the theme enqueue
   (Bebas Neue / DM Sans / JetBrains Mono).
   ============================================================ */

/* ── Shared base ── */
#bpusa-terms, #bpusa-terms *,
#bp-privacy-page, #bp-privacy-page *,
#bp-refund-page, #bp-refund-page *,
#bp-shipping-page, #bp-shipping-page *,
.bp-legal-scope, .bp-legal-scope * { box-sizing: border-box; }

#bpusa-terms, #bp-privacy-page, #bp-refund-page, #bp-shipping-page, .bp-legal-scope {
	position: relative;
	z-index: 1;
	display: block;
	width: 100%;
	color: #e8e8e8;
	font-family: var(--bp-font, 'DM Sans', sans-serif);
	-webkit-font-smoothing: antialiased;
	background: transparent;
}

/* ════════════════════════ KEYFRAMES ════════════════════════ */
@keyframes bp-legal-pulse {
	0%   { transform: scale(0.85); opacity: 1; }
	70%  { transform: scale(1.7);  opacity: 0; }
	100% { transform: scale(1.7);  opacity: 0; }
}
@keyframes bp-legal-glow {
	0%, 100% { opacity: 0.7; transform: translateX(-50%) scale(1); }
	50%      { opacity: 1;   transform: translateX(-50%) scale(1.1); }
}

/* ════════════════════════ HERO ════════════════════════ */
.bpusa-hero, .bp-legal-hero {
	position: relative;
	background: transparent;
	padding: 120px 24px 56px;
	overflow: hidden;
	text-align: center;
}
.bpusa-hero::before, .bp-legal-hero::before {
	content: '';
	position: absolute; inset: 0;
	background: rgba(2, 8, 24, 0.55);
	pointer-events: none; z-index: 0;
}
.bpusa-hero::after, .bp-legal-hero::after {
	content: '';
	position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
	background: linear-gradient(90deg, transparent, var(--bp-primary), transparent);
	z-index: 2;
}
.bpusa-hero-grid, .bp-legal-hero-grid {
	position: absolute; inset: 0;
	background-image:
		linear-gradient(#1a2a4a 1px, transparent 1px),
		linear-gradient(90deg, #1a2a4a 1px, transparent 1px);
	background-size: 48px 48px; opacity: 0.16;
	pointer-events: none; z-index: 1;
	-webkit-mask-image: radial-gradient(ellipse 100% 100% at 50% 0%, black 20%, transparent 100%);
	mask-image: radial-gradient(ellipse 100% 100% at 50% 0%, black 20%, transparent 100%);
}
.bpusa-hero-glow, .bp-legal-hero-glow {
	position: absolute; width: 700px; height: 300px;
	top: -80px; left: 50%; transform: translateX(-50%);
	background: radial-gradient(ellipse, rgba(var(--bp-primary-rgb),.18) 0%, transparent 70%);
	filter: blur(52px); pointer-events: none; z-index: 1;
	animation: bp-legal-glow 4s ease-in-out infinite;
}
.bpusa-hero-inner, .bp-legal-hero-inner {
	position: relative; z-index: 2;
	max-width: 880px; margin: 0 auto;
}

/* Eyebrow */
.bpusa-eyebrow, .bp-legal-eyebrow {
	display: inline-flex; align-items: center; gap: 8px;
	font-family: var(--bp-caps);
	font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
	color: #7FB4FF; margin-bottom: 22px;
	padding: 7px 14px;
	background: rgba(var(--bp-primary-rgb),0.08);
	border: 1px solid rgba(var(--bp-primary-rgb),0.25); border-radius: 100px;
}
.bpusa-eyebrow-dot, .bp-legal-eyebrow-dot {
	width: 6px; height: 6px; border-radius: 50%;
	background: var(--bp-primary); flex-shrink: 0;
	animation: bp-legal-pulse 2.4s ease-out infinite;
}

/* Title */
.bpusa-title, .bp-legal-title {
	font-family: var(--bp-display, 'Bebas Neue', sans-serif);
	font-size: clamp(48px, 8vw, 92px);
	line-height: 0.9; letter-spacing: 0.01em;
	color: #e8e8e8; margin: 0 0 20px;
}
.bpusa-accent, .bp-legal-accent { color: var(--bp-primary); }

/* Subtitle */
.bpusa-hero-sub, .bp-legal-subtitle {
	font-size: 15px; line-height: 1.7; color: #b8c8e8;
	margin: 0 auto 28px; max-width: 560px;
}

/* Meta row */
.bpusa-meta, .bp-legal-meta {
	display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
}
.bpusa-meta-item, .bp-legal-meta-item {
	display: inline-flex; align-items: center; gap: 8px;
	font-family: var(--bp-mono, 'JetBrains Mono', monospace);
	font-size: 11px; letter-spacing: 0.04em; color: #8da3c8;
	padding: 8px 14px;
	background: rgba(8,12,30,0.6);
	border: 1px solid rgba(17, 71, 184,0.25); border-radius: 8px;
}
.bpusa-meta-item svg, .bp-legal-meta-item svg {
	width: 14px; height: 14px; color: var(--bp-primary); flex-shrink: 0;
}

/* ════════════════════════ CONTENT ════════════════════════ */
.bpusa-content, .bp-legal-content {
	position: relative;
	background: transparent;
	padding: 56px 24px 64px;
}
.bpusa-content-inner, .bp-legal-content-inner {
	max-width: 820px; margin: 0 auto;
	display: flex; flex-direction: column; gap: 14px;
}

/* Section card */
.bpusa-section, .bp-legal-section {
	background: rgba(8,12,30,0.7);
	border: 1px solid rgba(17, 71, 184,0.22);
	border-radius: 14px;
	padding: 28px 30px;
	transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.bpusa-section:hover, .bp-legal-section:hover {
	border-color: rgba(var(--bp-primary-rgb),0.45);
	transform: translateY(-3px);
	box-shadow: 0 10px 36px rgba(var(--bp-primary-rgb),0.1);
}
.bpusa-section h2, .bp-legal-section h2 {
	font-family: var(--bp-display, 'Bebas Neue', sans-serif);
	font-size: 26px; letter-spacing: 0.02em; line-height: 1.1;
	color: #e8e8e8; margin: 0 0 14px;
	padding-bottom: 12px;
	border-bottom: 1px solid rgba(17, 71, 184,0.2);
}
.bpusa-section h2::before, .bp-legal-section h2::before {
	content: '';
	display: inline-block;
	width: 8px; height: 8px; margin-right: 12px;
	border-radius: 2px; background: var(--bp-primary);
	transform: translateY(-3px);
}
.bpusa-section p, .bp-legal-section p {
	font-size: 14px; line-height: 1.8; color: #c2cfe6; margin: 0 0 12px;
}
.bpusa-section p:last-child, .bp-legal-section p:last-child { margin-bottom: 0; }
.bpusa-section ul, .bp-legal-section ul {
	list-style: none; margin: 4px 0 0; padding: 0;
	display: flex; flex-direction: column; gap: 10px;
}
.bpusa-section li, .bp-legal-section li {
	position: relative; padding-left: 26px;
	font-size: 14px; line-height: 1.7; color: #c2cfe6;
}
.bpusa-section li::before, .bp-legal-section li::before {
	content: '';
	position: absolute; left: 4px; top: 9px;
	width: 7px; height: 7px; border-radius: 50%;
	background: transparent; border: 1.5px solid var(--bp-primary);
}
.bpusa-section li strong, .bp-legal-section li strong { color: #e8e8e8; font-weight: 600; }
.bpusa-section a, .bp-legal-section a {
	color: #7FB4FF; text-decoration: none;
	border-bottom: 1px solid rgba(155,112,245,0.4);
	transition: color 0.2s, border-color 0.2s;
}
.bpusa-section a:hover, .bp-legal-section a:hover {
	color: #A9CEFF; border-color: #A9CEFF;
}

/* Contact box */
.bpusa-contact-box, .bp-legal-contact-box {
	margin-top: 8px;
	background: rgba(var(--bp-primary-rgb),0.06);
	border: 1px solid rgba(var(--bp-primary-rgb),0.3);
	border-left: 3px solid var(--bp-primary);
	border-radius: 10px; padding: 20px 22px;
}
.bpusa-contact-box p, .bp-legal-contact-box p {
	margin: 0; font-size: 14px; line-height: 1.85; color: #c2cfe6;
}
.bpusa-contact-box strong, .bp-legal-contact-box strong {
	color: #e8e8e8; font-size: 15px;
}

/* ════════════════════════ FOOTER CTA ════════════════════════ */
.bpusa-footer-cta, .bp-legal-footer-cta {
	position: relative;
	background: transparent;
	border-top: 1px solid rgba(17, 71, 184,0.2);
	padding: 64px 24px;
	text-align: center;
}
.bpusa-footer-cta::before, .bp-legal-footer-cta::before {
	content: '';
	position: absolute; top: 0; left: 0; right: 0; height: 1px;
	background: linear-gradient(90deg, transparent, var(--bp-primary), transparent);
}
.bpusa-footer-cta-inner, .bp-legal-footer-cta-inner {
	max-width: 640px; margin: 0 auto;
}
.bpusa-footer-cta h3, .bp-legal-footer-cta h3 {
	font-family: var(--bp-display, 'Bebas Neue', sans-serif);
	font-size: 36px; letter-spacing: 0.02em; color: #e8e8e8; margin: 0 0 12px;
}
.bpusa-footer-cta p, .bp-legal-footer-cta p {
	font-size: 14px; line-height: 1.7; color: #b8c8e8; margin: 0 0 26px;
}
.bpusa-cta-btn, .bp-legal-cta-btn {
	display: inline-flex; align-items: center; gap: 10px;
	padding: 14px 28px;
	background: var(--bp-primary); color: #fff;
	font-family: var(--bp-caps);
	font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
	text-decoration: none; border-radius: 100px;
	transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.bpusa-cta-btn:hover, .bp-legal-cta-btn:hover {
	background: #2E78F0; transform: translateY(-3px);
	box-shadow: 0 10px 30px rgba(var(--bp-primary-rgb),0.4);
}
.bpusa-cta-btn svg, .bp-legal-cta-btn svg {
	width: 14px; height: 14px;
	transition: transform 0.2s;
}
.bpusa-cta-btn:hover svg, .bp-legal-cta-btn:hover svg { transform: translateX(4px); }

/* ════════════════════════ RESPONSIVE ════════════════════════ */
@media (max-width: 600px) {
	.bpusa-hero, .bp-legal-hero { padding: 100px 18px 44px; }
	.bpusa-content, .bp-legal-content { padding: 40px 16px 48px; }
	.bpusa-section, .bp-legal-section { padding: 22px 20px; }
	.bpusa-section h2, .bp-legal-section h2 { font-size: 23px; }
}
