/* ==========================================================================
   Games Hub - Privacy Policy & Terms of Service Stylesheet
   Modern Glassmorphic Dark UI tailored for Apple & Google Store Compliance
   ========================================================================== */

:root {
  --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  
  /* Color Palette */
  --bg-primary: #0a0d14;
  --bg-surface: #111622;
  --bg-card: rgba(19, 26, 40, 0.75);
  --bg-card-hover: rgba(25, 34, 52, 0.85);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(212, 160, 23, 0.35);

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --accent-gold: #f59e0b;
  --accent-gold-light: #fbbf24;
  --accent-gold-dark: #b45309;
  --accent-gradient: linear-gradient(135deg, #d97706 0%, #f59e0b 50%, #fbbf24 100%);
  --badge-glow: rgba(245, 158, 11, 0.25);
  
  --info-bg: rgba(30, 58, 138, 0.25);
  --info-border: rgba(96, 165, 250, 0.3);
  --info-text: #93c5fd;

  --max-width: 900px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 0 35px rgba(245, 158, 11, 0.15);
}

/* Light Mode Overrides (if device requests light) */
@media (prefers-color-scheme: light) {
  :root {
    --bg-primary: #f8fafc;
    --bg-surface: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.9);
    --bg-card-hover: #ffffff;
    --border-color: rgba(226, 232, 240, 0.9);
    --border-highlight: rgba(212, 160, 23, 0.4);

    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    
    --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.06);
    --shadow-glow: 0 0 25px rgba(245, 158, 11, 0.1);
  }
}

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

html {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

/* Background Ambient Lighting */
.ambient-glow {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 480px;
  background: radial-gradient(circle at 50% 10%, rgba(245, 158, 11, 0.12) 0%, rgba(10, 13, 20, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

/* Layout Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Header & Nav */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background-color: rgba(10, 13, 20, 0.75);
  border-bottom: 1px solid var(--border-color);
  padding: 14px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
}

.brand-icon {
  width: 40px;
  height: 40px;
  background: var(--accent-gradient);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 4px 12px var(--badge-glow);
}

.brand-info {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: var(--text-primary);
}

.brand-subtitle {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-gold-light);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

/* Nav Switcher */
.nav-tabs {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  padding: 4px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-color);
}

.nav-link {
  padding: 7px 18px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: var(--radius-pill);
  transition: all 0.2s ease;
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link.active {
  color: #000;
  background: var(--accent-gradient);
  box-shadow: 0 2px 8px var(--badge-glow);
}

/* Hero Section */
.hero {
  padding: 48px 0 32px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-gold-light);
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -1px;
  margin-bottom: 14px;
  color: var(--text-primary);
}

.hero-gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 650px;
  margin: 0 auto;
}

.meta-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 18px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Quick Jump Pill Navigation */
.toc-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 32px;
}

.toc-pill {
  padding: 6px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: all 0.2s ease;
}

.toc-pill:hover {
  color: var(--accent-gold-light);
  border-color: var(--accent-gold);
  transform: translateY(-1px);
}

/* Main Content Card */
.content-wrapper {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md), var(--shadow-glow);
  margin-bottom: 64px;
}

/* Section Styling */
.policy-section {
  padding-bottom: 32px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border-color);
}

.policy-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.section-num {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--accent-gold);
  background: rgba(245, 158, 11, 0.12);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(245, 158, 11, 0.25);
}

h2 {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.4px;
  color: var(--text-primary);
}

h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 18px 0 8px;
  color: var(--text-primary);
}

p {
  color: var(--text-secondary);
  margin-bottom: 14px;
  font-size: 0.96rem;
}

ul, ol {
  color: var(--text-secondary);
  padding-left: 24px;
  margin-bottom: 16px;
  font-size: 0.95rem;
}

li {
  margin-bottom: 6px;
}

strong {
  color: var(--text-primary);
  font-weight: 700;
}

/* Callout Box (Crucial for Apple Guidelines) */
.callout-box {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--radius-md);
  padding: 20px;
  margin: 20px 0;
}

.callout-box.info {
  background: var(--info-bg);
  border-color: var(--info-border);
}

.callout-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--accent-gold-light);
  margin-bottom: 8px;
}

.callout-box.info .callout-title {
  color: var(--info-text);
}

.callout-content {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.callout-content p:last-child {
  margin-bottom: 0;
}

/* Service Provider Tags */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin: 16px 0;
}

.service-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  transition: all 0.2s ease;
}

.service-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-highlight);
}

.service-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.service-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.service-link {
  font-size: 0.82rem;
  color: var(--accent-gold-light);
  text-decoration: underline;
  font-weight: 600;
}

/* Footer */
.footer {
  margin-top: auto;
  border-top: 1px solid var(--border-color);
  padding: 32px 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 12px;
}

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.footer-link:hover {
  color: var(--accent-gold);
}

/* Responsive adjustments */
@media (max-width: 680px) {
  .header-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  
  .brand {
    justify-content: center;
  }

  .nav-tabs {
    justify-content: center;
  }

  .hero h1 {
    font-size: 1.85rem;
  }

  .content-wrapper {
    padding: 24px 18px;
    border-radius: var(--radius-md);
  }

  .toc-pills {
    display: none;
  }
}
