/* ==========================================================
   KINDER GALAXIES — Global Stylesheet
   File: assets/css/global.css
   Shared across: index.html, privacy-policy.html,
   terms-of-service.html, cookie-policy.html,
   gdpr-policy.html, contact.html
   ========================================================== */

/* ===== DESIGN TOKENS ===== */
:root {
  --sky: #0a0e2e;
  --sky-mid: #0d1a4a;
  --nebula-purple: #6c3fd6;
  --nebula-pink: #e63f8e;
  --star-yellow: #ffd93d;
  --comet-teal: #00e5c9;
  --planet-orange: #ff7f40;
  --moon-lavender: #c9b8ff;
  --white: #ffffff;
  --cloud-white: #f0eeff;
  --text-body: #d8d0ff;
  --card-bg: rgba(255, 255, 255, 0.06);
  --card-border: rgba(255, 255, 255, 0.12);
  --radius-xl: 28px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --font-display: 'Baloo 2', cursive;
  --font-body: 'Nunito', sans-serif;
  --transition: 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background-color: var(--sky);
  color: var(--white);
  overflow-x: hidden;
  line-height: 1.7;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ===== STARFIELD NEBULA BACKGROUND ===== */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(108, 63, 214, 0.25) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 80%, rgba(230, 63, 142, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 50% 50%, rgba(0, 229, 201, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ===== TWINKLING STARS LAYER ===== */
.stars-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.star {
  position: absolute;
  border-radius: 50%;
  background: white;
  animation: twinkle var(--dur, 3s) ease-in-out infinite var(--delay, 0s);
}
@keyframes twinkle {
  0%, 100% { opacity: 0.2; transform: scale(1); }
  50%       { opacity: 1;   transform: scale(1.4); }
}

/* ===== LAYOUT ===== */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}
section { padding: 90px 0; position: relative; z-index: 1; }

/* ===== NAVIGATION ===== */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(10, 14, 46, 0.80);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  background: linear-gradient(90deg, var(--star-yellow), var(--comet-teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-logo img {
  height: 40px;
  width: auto;
  display: block;
}
.nav-logo .logo-fallback {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}
.nav-links a {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--moon-lavender);
  transition: color 0.2s;
  -webkit-text-fill-color: var(--moon-lavender);
}
.nav-links a:hover { color: var(--star-yellow); -webkit-text-fill-color: var(--star-yellow); }
.nav-cta {
  background: linear-gradient(135deg, var(--nebula-pink), var(--nebula-purple)) !important;
  color: white !important;
  -webkit-text-fill-color: white !important;
  padding: 10px 22px;
  border-radius: 50px;
  font-weight: 800 !important;
  font-size: 0.9rem !important;
  box-shadow: 0 4px 18px rgba(230, 63, 142, 0.35);
  transition: transform var(--transition), box-shadow 0.3s !important;
}
.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(230, 63, 142, 0.5);
}
/* Back link used on sub-pages */
.nav-back {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--moon-lavender);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
  -webkit-text-fill-color: var(--moon-lavender);
}
.nav-back:hover { color: var(--star-yellow); -webkit-text-fill-color: var(--star-yellow); }

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--nebula-pink) 0%, var(--nebula-purple) 100%);
  color: white;
  box-shadow: 0 6px 24px rgba(108, 63, 214, 0.45);
  transition: transform var(--transition), box-shadow 0.3s;
  cursor: pointer;
  border: none;
  text-decoration: none;
}
.btn-primary:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 36px rgba(108, 63, 214, 0.6);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  transition: transform var(--transition), background 0.3s;
  cursor: pointer;
  text-decoration: none;
}
.btn-secondary:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.14);
}

/* ===== SECTION HEADINGS ===== */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--comet-teal);
  margin-bottom: 14px;
}
.section-tag::before {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--comet-teal);
  border-radius: 2px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
}
.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-body);
  max-width: 540px;
  line-height: 1.75;
}
.text-center { text-align: center; }
.text-center .section-subtitle { margin: 0 auto; }
.text-center .section-tag { justify-content: center; }
.text-center .section-tag::before { display: none; }
.section-divider {
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--nebula-purple), var(--comet-teal));
  border-radius: 4px;
  margin: 16px 0 0;
}
.text-center .section-divider { margin: 16px auto 0; }

/* ===== CARD BASE ===== */
.card-base {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  transition: transform var(--transition), box-shadow 0.3s;
}
.card-base:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

/* ===== HIGHLIGHT BOXES ===== */
.highlight-box {
  background: rgba(0, 229, 201, 0.06);
  border: 1px solid rgba(0, 229, 201, 0.2);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin: 20px 0;
}
.highlight-box.warning {
  background: rgba(255, 217, 61, 0.06);
  border-color: rgba(255, 217, 61, 0.2);
}
.highlight-box.pink {
  background: rgba(230, 63, 142, 0.06);
  border-color: rgba(230, 63, 142, 0.2);
}
.highlight-box.green {
  background: rgba(0, 200, 100, 0.06);
  border-color: rgba(0, 200, 100, 0.2);
}
.highlight-box p { margin: 0; font-size: 0.93rem; color: var(--text-body); }

/* ===== FOOTER ===== */
footer {
  background: rgba(0, 0, 0, 0.3);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 60px 0 32px;
  position: relative;
  z-index: 1;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand .footer-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  background: linear-gradient(90deg, var(--star-yellow), var(--comet-teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  text-decoration: none;
}
.footer-brand .footer-logo img {
  height: 36px;
  width: auto;
}
.footer-brand p {
  font-size: 0.88rem;
  color: var(--text-body);
  line-height: 1.7;
  max-width: 280px;
}
.footer-col h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 18px;
  color: var(--moon-lavender);
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  font-size: 0.88rem;
  color: var(--text-body);
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--star-yellow); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: 0.83rem; color: rgba(216, 208, 255, 0.5); }

/* Simple footer for sub-pages (legal/contact) */
footer.footer-simple {
  padding: 32px;
  text-align: center;
}
footer.footer-simple p {
  font-size: 0.82rem;
  color: rgba(216, 208, 255, 0.4);
  margin-bottom: 12px;
}
.footer-links {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.footer-links a {
  font-size: 0.82rem;
  color: var(--text-body);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--star-yellow); }

/* ===== ANIMATIONS ===== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

@keyframes float-gentle {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-10px); }
}
.float-anim { animation: float-gentle 3s ease-in-out infinite; }

/* ===== GRADIENT TEXT UTILITIES ===== */
.grad-yellow {
  background: linear-gradient(90deg, var(--star-yellow), var(--planet-orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.grad-teal {
  background: linear-gradient(90deg, var(--comet-teal), #6cf0f0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.grad-pink {
  background: linear-gradient(90deg, var(--nebula-pink), var(--moon-lavender));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== LEGAL / CONTENT PAGE SHARED STYLES ===== */
.page-hero {
  padding: 120px 32px 60px;
  text-align: center;
  position: relative;
  z-index: 1;
}
.page-icon {
  font-size: 3.5rem;
  margin-bottom: 20px;
  display: block;
  animation: float-gentle 3s ease-in-out infinite;
}
.page-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--comet-teal);
  border: 1px solid rgba(0, 229, 201, 0.3);
  background: rgba(0, 229, 201, 0.08);
  padding: 5px 16px;
  border-radius: 50px;
  margin-bottom: 16px;
}
.page-tag.yellow {
  color: var(--star-yellow);
  border-color: rgba(255, 217, 61, 0.3);
  background: rgba(255, 217, 61, 0.08);
}
.page-tag.pink {
  color: var(--nebula-pink);
  border-color: rgba(230, 63, 142, 0.3);
  background: rgba(230, 63, 142, 0.08);
}
.page-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 14px;
}
.page-meta {
  font-size: 0.88rem;
  color: var(--text-body);
}
.page-meta strong { color: var(--moon-lavender); }
.content-wrapper {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 32px 100px;
  position: relative;
  z-index: 1;
}

/* TOC card */
.toc-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  padding: 28px 32px;
  margin-bottom: 48px;
}
.toc-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--moon-lavender);
  margin-bottom: 16px;
}
.toc-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 24px;
}
.toc-list li a {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-body);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s;
  -webkit-text-fill-color: var(--text-body);
}
.toc-list li a::before { content: '→'; color: var(--comet-teal); }
.toc-list li a:hover { color: var(--star-yellow); -webkit-text-fill-color: var(--star-yellow); }

/* Doc sections */
.doc-section { margin-bottom: 48px; scroll-margin-top: 90px; }
.doc-section h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.doc-section h2 .s-icon { font-size: 1.4rem; }
.doc-section h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--moon-lavender);
  margin: 20px 0 10px;
}
.doc-section p {
  font-size: 0.95rem;
  color: var(--text-body);
  margin-bottom: 14px;
  line-height: 1.8;
}
.doc-section ul, .doc-section ol {
  padding-left: 20px;
  margin-bottom: 14px;
}
.doc-section li {
  font-size: 0.95rem;
  color: var(--text-body);
  margin-bottom: 8px;
  line-height: 1.75;
}
.doc-section strong { color: var(--white); font-weight: 700; }
.doc-section a { color: var(--comet-teal); }
.doc-section a:hover { color: var(--star-yellow); }

/* Contact CTA block used on legal pages */
.contact-inline {
  background: linear-gradient(135deg, rgba(108, 63, 214, 0.15), rgba(230, 63, 142, 0.1));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  padding: 28px 32px;
  margin-top: 48px;
  text-align: center;
}
.contact-inline h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 10px;
}
.contact-inline p {
  color: var(--text-body);
  font-size: 0.93rem;
  margin-bottom: 16px;
}
.contact-inline a.email-link {
  display: inline-block;
  background: linear-gradient(135deg, var(--nebula-pink), var(--nebula-purple));
  color: white;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 800;
  font-size: 0.95rem;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  -webkit-text-fill-color: white;
}
.contact-inline a.email-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(230, 63, 142, 0.4);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  section { padding: 64px 0; }
  .nav-links { display: none; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .toc-list { grid-template-columns: 1fr; }
  .content-wrapper { padding: 0 18px 80px; }
  .page-hero { padding: 110px 18px 48px; }
}