/* ===================================================
   CLASS 1 STAR EXPLORER - DESIGN SYSTEM & STYLES
   Playful, modern, educational & accessible
   =================================================== */

:root {
  /* Brand Palette */
  --blue: #3B82F6;
  --blue-dark: #1E3A8A;
  --blue-light: #EFF6FF;
  --amber: #F59E0B;
  --amber-light: #FEF3C7;
  --emerald: #10B981;
  --emerald-light: #ECFDF5;
  --orange: #EA580C;
  --orange-light: #FFF7ED;
  --purple: #8B5CF6;
  --purple-light: #F5F3FF;
  --rose: #F43F5E;
  --rose-light: #FFF1F2;
  
  /* Neutrals & Surfaces */
  --bg-cream: #F8FAFC;
  --surface-card: #FFFFFF;
  --surface-card-subtle: #F1F5F9;
  --text-dark: #0F172A;
  --text-muted: #475569;
  --text-light: #94A3B8;
  --border-subtle: rgba(15, 23, 42, 0.08);
  --border-active: rgba(59, 130, 246, 0.35);

  /* Shadows & Glassmorphism */
  --shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 45px rgba(15, 23, 42, 0.12);
  --shadow-glow: 0 14px 28px rgba(59, 130, 246, 0.25);
  --glass-bg: rgba(255, 255, 255, 0.92);
  --glass-blur: blur(14px);

  /* Layout & Fonts */
  --font-display: 'Fredoka', cursive, sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 32px;
  --radius-full: 9999px;
  --container-max: 1200px;
  --transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-cream);
  color: var(--text-dark);
  line-height: 1.65;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(245, 158, 11, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 10%, rgba(59, 130, 246, 0.10) 0%, transparent 45%),
    radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 20% 90%, rgba(16, 185, 129, 0.08) 0%, transparent 45%);
  background-attachment: fixed;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  font-family: inherit;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Typography Helpers */
h1, h2, h3, h4, .font-fun {
  font-family: var(--font-display);
  color: var(--text-dark);
  line-height: 1.25;
}

.text-blue { color: var(--blue); }
.text-amber { color: var(--amber); }
.text-emerald { color: var(--emerald); }
.text-orange { color: var(--orange); }
.text-purple { color: var(--purple); }

/* ===================================================
   NAVIGATION BAR
   =================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.nav-brand-text {
  display: flex;
  flex-direction: column;
}

.brand-main {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: -0.02em;
}

.brand-sub {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

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

.nav-link {
  font-weight: 600;
  font-size: 0.96rem;
  color: var(--text-muted);
  transition: var(--transition);
  position: relative;
  padding: 6px 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--blue);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--blue);
  border-radius: var(--radius-full);
}

.btn-nav-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: white;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.92rem;
  box-shadow: var(--shadow-glow);
  transition: var(--transition);
}

.btn-nav-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(59, 130, 246, 0.4);
}

.mobile-toggle {
  display: none;
  background: none;
  font-size: 1.6rem;
  color: var(--text-dark);
}

/* ===================================================
   PRIVACY POLICY PAGE LAYOUT
   =================================================== */
.privacy-page {
  padding: 50px 0 80px;
}

.privacy-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 50px;
}

.privacy-badge {
  background: var(--emerald-light);
  color: var(--emerald);
  font-weight: 800;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  display: inline-block;
  margin-bottom: 14px;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.privacy-header h1 {
  font-size: 2.6rem;
  margin-bottom: 12px;
  color: var(--text-dark);
}

.privacy-header p {
  color: var(--text-muted);
  font-size: 1rem;
}

.privacy-layout {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 40px;
  align-items: flex-start;
}

/* Sticky Sidebar */
.privacy-sidebar {
  background: var(--surface-card);
  padding: 26px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 100px;
  border: 1px solid var(--border-subtle);
}

.privacy-sidebar h4 {
  font-size: 1.1rem;
  margin-bottom: 16px;
  color: var(--text-dark);
}

.privacy-nav {
  list-style: none;
}

.privacy-nav li {
  margin-bottom: 8px;
}

.privacy-nav a {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition);
}

.privacy-nav a:hover, .privacy-nav a.active {
  background: var(--blue-light);
  color: var(--blue);
}

/* Privacy Content Area */
.privacy-content {
  background: var(--surface-card);
  padding: 50px 44px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-subtle);
}

.privacy-content section {
  margin-bottom: 44px;
}

.privacy-content h2 {
  font-size: 1.7rem;
  margin: 36px 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border-subtle);
  color: var(--text-dark);
}

.privacy-content section:first-of-type h2 {
  margin-top: 0;
}

.privacy-content p {
  color: #334155;
  font-size: 1.02rem;
  line-height: 1.8;
  margin-bottom: 18px;
}

.privacy-content ul {
  margin: 14px 0 22px 24px;
  color: #334155;
}

.privacy-content li {
  margin-bottom: 10px;
  font-size: 1rem;
  line-height: 1.65;
}

.callout-box {
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  border-radius: var(--radius-sm);
  padding: 22px;
  margin: 24px 0;
  color: #166534;
}

.callout-box strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 8px;
}

/* ===================================================
   FOOTER
   =================================================== */
.footer {
  background: #0F172A;
  color: white;
  padding: 60px 0 30px;
  margin-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-brand h4 {
  color: white;
  font-size: 1.4rem;
}

.footer-brand p {
  color: #94A3B8;
  font-size: 0.92rem;
  line-height: 1.65;
  margin-top: 10px;
}

.footer-col h5 {
  font-family: var(--font-display);
  color: white;
  font-size: 1.05rem;
  margin-bottom: 18px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #94A3B8;
  font-size: 0.9rem;
  transition: var(--transition);
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #64748B;
  font-size: 0.88rem;
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .privacy-layout {
    grid-template-columns: 1fr;
  }
  .privacy-sidebar {
    display: none;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
  .privacy-content {
    padding: 30px 22px;
  }
  .privacy-header h1 {
    font-size: 2rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
