/* ═══════════════════════════════════════════════════
   PROFITBOUNTY — TOS CSS
   ═══════════════════════════════════════════════════ */

:root {
	--neon:      #00fff6;
	--neon-dim:  rgba(0,255,246,0.3);
	--bg-deep:   #020d14;
	--bg-mid:    #041826;
	--text:      #c8f0ee;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
	width: 100%; min-height: 100%;
	background: var(--bg-deep);
	color: var(--text);
	font-family: 'Rajdhani', sans-serif;
	overflow-x: hidden;
}

/* ── Scanlines & canvas ──────────────────────────── */
.scanlines {
	position: fixed; inset: 0; z-index: 9990; pointer-events: none;
	background: repeating-linear-gradient(to bottom, transparent, transparent 2px, rgba(0,0,0,0.07) 2px, rgba(0,0,0,0.07) 4px);
	animation: scanMove 10s linear infinite;
}
@keyframes scanMove { 0%{background-position:0 0} 100%{background-position:0 100vh} }
#grid-canvas { position: fixed; top: 0; left: 0; z-index: 0; pointer-events: none; width: 100%; }

/* ── HUD corners ─────────────────────────────────── */
.hud-corner { position: absolute; width: 26px; height: 26px; pointer-events: none; z-index: 10; }
.hud-corner::before, .hud-corner::after { content:''; position:absolute; background:var(--neon); box-shadow:0 0 6px var(--neon); }
.hud-corner::before { width:100%; height:2px; top:0; left:0; }
.hud-corner::after  { width:2px; height:100%; top:0; left:0; }
.hud-tl { top:90px; left:24px; }
.hud-tr { top:90px; right:24px; transform:scaleX(-1); }

/* ── Header ──────────────────────────────────────── */
#header {
	width: 100%; height: 72px;
	position: fixed; top: 0; left: 0; z-index: 100;
	display: flex; align-items: center; justify-content: space-between;
	padding: 0 40px;
	background: linear-gradient(180deg, rgba(2,13,20,0.95) 0%, transparent 100%);
	border-bottom: 1px solid rgba(0,255,246,0.12);
}
.header-logo {
	display: flex; align-items: center; gap: 9px;
	font-family: 'Orbitron', monospace; font-size: 18px; font-weight: 900;
	color: var(--neon); letter-spacing: 3px; text-decoration: none;
	position: relative;
}
.header-logo:visited { color: var(--neon); }

.logo-mark {
	display: flex; align-items: center; justify-content: center;
	color: var(--neon);
	filter: drop-shadow(0 0 6px var(--neon));
	animation: logoMarkSpin 8s linear infinite, logoMarkPulse 3s ease-in-out infinite;
	transform-origin: center;
}
@keyframes logoMarkSpin { 0%,85%{transform:rotateY(0deg)} 92%{transform:rotateY(180deg)} 100%{transform:rotateY(360deg)} }
@keyframes logoMarkPulse { 0%,100%{filter:drop-shadow(0 0 6px var(--neon))} 50%{filter:drop-shadow(0 0 12px var(--neon)) drop-shadow(0 0 20px rgba(0,255,246,0.4))} }

.logo-text {
	position: relative;
	text-shadow: 0 0 12px var(--neon);
	animation: logoFlicker 6s ease-in-out infinite;
	overflow: hidden;
}
.logo-text::after {
	content: ''; position: absolute; top: 0; left: -120%;
	width: 60%; height: 100%;
	background: linear-gradient(115deg, transparent, rgba(255,255,255,0.55), transparent);
	transform: skewX(-15deg);
}
.header-logo:hover .logo-text::after { animation: logoSweep 0.9s ease; }
@keyframes logoSweep { from{left:-120%} to{left:160%} }

.logo-accent { color: #fff; text-shadow: 0 0 10px #fff, 0 0 18px var(--neon); }

.logo-bracket { opacity: 0.5; }
@keyframes logoFlicker { 0%,94%,100%{opacity:1} 95%{opacity:.4} 97%{opacity:1} 98%{opacity:.2} }

.headerNavigation ul { display: flex; align-items: center; gap: 8px; list-style: none; }
.headerNavigation a {
	position: relative; font-family: 'Orbitron', monospace; font-size: 11px; font-weight: 700;
	letter-spacing: 3px; color: rgba(0,255,246,0.7); text-decoration: none;
	padding: 8px 18px; transition: color 0.2s; display: inline-block;
}
.headerNavigation a::before {
	content: ''; position: absolute; inset: 0;
	border: 1px solid rgba(0,255,246,0.25);
	clip-path: polygon(8px 0%,100% 0%,100% calc(100% - 8px),calc(100% - 8px) 100%,0% 100%,0% 8px);
	transition: border-color .2s, box-shadow .2s;
}
.headerNavigation a:hover { color: var(--neon); }
.headerNavigation a:hover::before { border-color: var(--neon); box-shadow: 0 0 12px var(--neon-dim); }
#signup {
	color: var(--bg-deep) !important; background: var(--neon);
	box-shadow: 0 0 18px var(--neon-dim);
	animation: signupPulse 3s ease-in-out infinite;
}
#signup::before { border-color: transparent !important; }
#signup:hover { background: #fff; box-shadow: 0 0 30px var(--neon); }
@keyframes signupPulse { 0%,100%{box-shadow:0 0 18px var(--neon-dim)} 50%{box-shadow:0 0 32px var(--neon),0 0 60px var(--neon-dim)} }

/* ── Hero ────────────────────────────────────────── */
#tos-hero {
	position: relative; z-index: 1;
	padding: 150px 24px 50px;
	text-align: center;
	display: flex; flex-direction: column; align-items: center; gap: 12px;
	background:
		radial-gradient(ellipse 60% 50% at 50% 20%, rgba(0,70,80,.18) 0%, transparent 70%),
		linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-mid) 100%);
}
.section-tag {
	font-family: 'Orbitron', monospace; font-size: 10px; font-weight: 700;
	letter-spacing: 4px; color: rgba(0,255,246,0.4);
}
.tos-h1 {
	font-family: 'Orbitron', monospace; font-weight: 900;
	font-size: clamp(28px, 5vw, 48px); letter-spacing: 4px; color: var(--neon);
	text-shadow: 0 0 20px rgba(0,255,246,.4);
}
.tos-updated {
	font-size: 13px; color: rgba(200,240,238,.45); letter-spacing: 1px;
}

/* ── Content ─────────────────────────────────────── */
#tos-content {
	position: relative; z-index: 1;
	padding: 20px 24px 100px;
	background: var(--bg-deep);
}
.tos-panel {
	max-width: 760px; margin: 0 auto;
	display: flex; flex-direction: column; gap: 36px;
}

.tos-block { padding-bottom: 28px; border-bottom: 1px solid rgba(0,255,246,0.06); }
.tos-block:last-child { border-bottom: none; }

.tos-block-header { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.tos-index {
	font-family: 'Orbitron', monospace; font-size: 20px; font-weight: 900;
	color: rgba(0,255,246,0.3); flex-shrink: 0;
}
.tos-h2 {
	font-family: 'Orbitron', monospace; font-size: clamp(15px, 2vw, 18px); font-weight: 700;
	letter-spacing: 1.5px; color: #fff;
}
.tos-body {
	font-size: 15px; line-height: 1.8; color: rgba(200,240,238,.7);
	padding-left: 36px;
}

/* ── Back link ───────────────────────────────────── */
.tos-back-row { max-width: 760px; margin: 40px auto 0; text-align: center; }
.ghost-btn {
	font-family: 'Orbitron', monospace; font-size: 10px; font-weight: 700;
	letter-spacing: 2px; color: rgba(0,255,246,0.5); text-decoration: none;
	border-bottom: 1px solid rgba(0,255,246,0.2);
	padding-bottom: 4px; transition: color .2s, border-color .2s;
}
.ghost-btn:hover { color: var(--neon); border-color: var(--neon); }

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 600px) {
	#header { padding: 0 16px; }
	.header-logo { font-size: 14px; }
	.headerNavigation a { font-size: 9px; padding: 6px 10px; letter-spacing: 1px; }
	.hud-corner { display: none; }
	.tos-body { padding-left: 0; }
	.tos-block-header { gap: 10px; }
	.tos-index { font-size: 16px; }
}