/* Lumen shared theme — loaded by all pages */

:root {
  --bg-primary: #0A0A0A;
  --bg-secondary: #111111;
  --bg-card: #161616;
  --bg-card-hover: #1C1C1C;
  --gold: #D4A017;
  --gold-light: #E8BF3B;
  --gold-dim: rgba(212, 160, 23, 0.15);
  --gold-border: rgba(212, 160, 23, 0.25);
  --text-primary: #F5F0E8;
  --text-secondary: #9A9080;
  --text-muted: #5C554A;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
}

/* ---- NAV ---- */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  padding: 1.2rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.4s;
}

nav.scrolled {
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(212, 160, 23, 0.08);
}

.nav-logo {
  font-family: var(--font-body);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  letter-spacing: 0.08em;
}

.nav-logo-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  transition: color 0.3s;
}

.nav-links a:hover { color: var(--gold); }

.nav-cta {
  background: var(--gold) !important;
  color: var(--bg-primary) !important;
  padding: 0.55rem 1.3rem;
  border-radius: 100px;
  font-weight: 500 !important;
  transition: all 0.3s !important;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(212, 160, 23, 0.3);
}

.nav-back {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  transition: color 0.3s;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-back:hover { color: var(--gold); }

/* ---- BUTTONS ---- */
.btn-gold {
  background: var(--gold);
  color: var(--bg-primary);
  padding: 0.9rem 2rem;
  border-radius: 100px;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  letter-spacing: 0.01em;
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(212, 160, 23, 0.35);
}

.btn-gold:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-outline {
  background: transparent;
  color: var(--text-secondary);
  padding: 0.9rem 2rem;
  border-radius: 100px;
  font-size: 0.95rem;
  font-weight: 400;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.1);
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-outline:hover {
  border-color: var(--gold-border);
  color: var(--gold);
}

/* ---- FOOTER ---- */
footer {
  padding: 3rem 2rem;
  border-top: 1px solid rgba(255,255,255,0.04);
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-brand {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.06em;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.82rem;
  transition: color 0.3s;
}

.footer-links a:hover { color: var(--gold); }

.footer-copy {
  color: var(--text-muted);
  font-size: 0.75rem;
  width: 100%;
  text-align: center;
  margin-top: 1rem;
}

/* ---- POLICY PAGES (privacy, terms, eula) ---- */
.policy-wrapper {
  max-width: 760px;
  margin: 0 auto;
  padding: 7rem 2rem 6rem;
}

.policy-title-block {
  border-bottom: 1px solid var(--gold-border);
  padding-bottom: 2rem;
  margin-bottom: 2.5rem;
}

/* Hide Termly logo watermark if present */
.policy-wrapper [style*="background: url"] { display: none !important; }

.policy-wrapper * { background: transparent !important; }

.policy-wrapper h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.policy-wrapper h2 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255,255,255,0.04);
}

.policy-wrapper h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 1.5rem;
  margin-bottom: 0.4rem;
}

.policy-wrapper p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.75;
  font-weight: 400;
  margin-bottom: 0.75rem;
}

.policy-wrapper a {
  color: var(--gold);
  text-decoration: none;
}

.policy-wrapper a:hover { color: var(--gold-light); }

.policy-wrapper strong {
  color: var(--text-primary);
  font-weight: 600;
}

.policy-wrapper ul,
.policy-wrapper ol {
  padding-left: 1.5rem;
  margin: 0.5rem 0 0.75rem;
  color: var(--text-secondary);
}

.policy-wrapper li {
  line-height: 1.75;
  margin-bottom: 0.25rem;
  font-size: 0.92rem;
}

/* Legacy data-custom-class overrides (privacy policy uses these) */
.policy-wrapper [data-custom-class='title'],
.policy-wrapper [data-custom-class='title'] * {
  font-size: clamp(1.8rem, 4vw, 2.6rem) !important;
  font-weight: 700 !important;
  color: var(--text-primary) !important;
  letter-spacing: -0.03em !important;
  line-height: 1.1 !important;
  margin-bottom: 0.5rem !important;
  font-family: var(--font-body) !important;
}

.policy-wrapper [data-custom-class='subtitle'],
.policy-wrapper [data-custom-class='subtitle'] * {
  color: var(--text-muted) !important;
  font-size: 0.85rem !important;
  font-weight: 400 !important;
  font-family: var(--font-body) !important;
}

.policy-wrapper [data-custom-class='heading_1'],
.policy-wrapper [data-custom-class='heading_1'] * {
  font-size: 1.05rem !important;
  font-weight: 600 !important;
  color: var(--text-primary) !important;
  letter-spacing: -0.01em !important;
  margin-top: 2.5rem !important;
  margin-bottom: 0.75rem !important;
  font-family: var(--font-body) !important;
}

.policy-wrapper [data-custom-class='heading_2'],
.policy-wrapper [data-custom-class='heading_2'] * {
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  color: var(--text-primary) !important;
  margin-top: 1.5rem !important;
  margin-bottom: 0.4rem !important;
  font-family: var(--font-body) !important;
}

.policy-wrapper [data-custom-class='body_text'],
.policy-wrapper [data-custom-class='body_text'] * {
  color: var(--text-secondary) !important;
  font-size: 0.92rem !important;
  line-height: 1.75 !important;
  font-weight: 400 !important;
  font-family: var(--font-body) !important;
}

.policy-wrapper [data-custom-class='link'],
.policy-wrapper [data-custom-class='link'] * {
  color: var(--gold) !important;
  text-decoration: none !important;
  font-family: var(--font-body) !important;
  word-break: break-word !important;
}

.policy-wrapper p,
.policy-wrapper div { line-height: 1.75; }

.policy-wrapper ul,
.policy-wrapper ol { padding-left: 1.5rem !important; margin: 0.5rem 0 !important; }

.policy-wrapper li {
  line-height: 1.75 !important;
  margin-bottom: 0.25rem !important;
  font-size: 0.92rem !important;
}

/* ---- ANIMATIONS ---- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(25px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes drift {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-15px, 15px); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.reveal {
  opacity: 0;
  transform: translateY(25px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  nav { padding: 1rem 1.5rem; }
  .nav-links { display: none; }
}

@media (max-width: 640px) {
  .policy-wrapper { padding: 5.5rem 1.25rem 4rem; }
}
