/* ==========================================================================
   Arcado Games - Core CSS Design System & Layout
   Theme: Dark / Neon Arcade with Glassmorphism
   Colors: Obsidian (#0d0f18), Cyber Cyan (#00f2fe), Purple (#7f00ff), 
           Neon Green (#00ff87), Gold (#ffb703)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design System & CSS Custom Properties
   -------------------------------------------------------------------------- */
:root {
  /* Color Palette */
  --bg-obsidian: #0d0f18;
  --bg-deep-alt: #121524;
  --bg-card: rgba(22, 25, 43, 0.75);
  --bg-card-hover: rgba(30, 35, 60, 0.85);
  --bg-glass: rgba(13, 15, 24, 0.85);

  --accent-cyan: #00f2fe;
  --accent-purple: #7f00ff;
  --accent-green: #00ff87;
  --accent-gold: #ffb703;
  --accent-magenta: #ff007f;

  /* Category Specific Colors */
  --cat-math: #00f2fe;
  --cat-spelling: #00ff87;
  --cat-memory: #ffb703;
  --cat-typing: #ff007f;

  /* Gradients */
  --grad-primary: linear-gradient(135deg, #7f00ff 0%, #00f2fe 100%);
  --grad-secondary: linear-gradient(135deg, #00ff87 0%, #00f2fe 100%);
  --grad-gold: linear-gradient(135deg, #ffb703 0%, #ff007f 100%);
  --grad-hero: radial-gradient(circle at 50% 20%, rgba(127, 0, 255, 0.25) 0%, rgba(13, 15, 24, 0.95) 70%);
  --grad-card-glow: linear-gradient(135deg, rgba(127, 0, 255, 0.2), rgba(0, 242, 254, 0.2));

  /* Text Colors */
  --text-main: #f0f3fe;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --text-highlight: #ffffff;

  /* Borders & Shadows */
  --border-glass: 1px solid rgba(255, 255, 255, 0.1);
  --border-neon: 1px solid rgba(0, 242, 254, 0.3);
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 20px rgba(0, 242, 254, 0.3);
  --shadow-glow-purple: 0 0 20px rgba(127, 0, 255, 0.4);

  /* Layout Constants */
  --max-width: 1280px;
  --header-height: 80px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-pill: 9999px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  background-color: var(--bg-obsidian);
  color: var(--text-main);
  line-height: 1.6;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background: var(--bg-obsidian);
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(127, 0, 255, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(0, 242, 254, 0.08) 0%, transparent 40%);
  background-attachment: fixed;
}

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

a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: #56f7ff;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-highlight);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.2rem; }

p {
  margin-bottom: 1rem;
  color: var(--text-muted);
}

p:last-child {
  margin-bottom: 0;
}

ul, ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Section Spacing */
.section {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 1rem;
}

.section-subtitle {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 3rem auto;
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* Gradient Text Effect */
.gradient-text {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-green {
  background: var(--grad-secondary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

/* --------------------------------------------------------------------------
   3. Header & Navigation Bar
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: var(--border-glass);
  transition: all var(--transition-normal);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-highlight);
  text-decoration: none;
}

.brand-logo svg {
  width: 40px;
  height: 40px;
  filter: drop-shadow(0 0 8px rgba(0, 242, 254, 0.6));
}

.brand-logo .logo-text {
  letter-spacing: -0.03em;
}

.brand-logo .logo-text span {
  color: var(--accent-cyan);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-muted);
  padding: 0.5rem 0.25rem;
  position: relative;
  transition: color var(--transition-fast);
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--grad-primary);
  transition: width var(--transition-fast);
  border-radius: var(--radius-pill);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

/* Mobile Nav Toggle Button */
.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--text-main);
}

.nav-toggle svg {
  width: 28px;
  height: 28px;
  stroke: var(--text-main);
}

/* Mobile Drawer Overlay & Menu */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  height: 100vh;
  background: var(--bg-deep-alt);
  border-left: var(--border-glass);
  z-index: 1001;
  padding: 2rem 1.5rem;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.7);
  transition: right var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.mobile-drawer.active {
  right: 0;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: var(--border-glass);
}

.drawer-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

.drawer-close:hover {
  color: var(--accent-cyan);
}

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.mobile-nav-link {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mobile-nav-link:hover {
  color: var(--accent-cyan);
}

.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-fast), visibility var(--transition-fast);
}

.drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* --------------------------------------------------------------------------
   4. Buttons & Interactive Controls
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  cursor: pointer;
  border: none;
  transition: all var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--grad-primary);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(127, 0, 255, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(0, 242, 254, 0.6);
  color: #ffffff;
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-main);
  border: var(--border-glass);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  transform: translateY(-2px);
}

.btn-neon {
  background: var(--grad-secondary);
  color: #0d0f18;
  box-shadow: 0 4px 15px rgba(0, 255, 135, 0.3);
}

.btn-neon:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(0, 255, 135, 0.6);
  color: #0d0f18;
}

.btn-sm {
  padding: 0.5rem 1.15rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 1rem 2.25rem;
  font-size: 1.1rem;
}

.btn svg {
  width: 18px;
  height: 18px;
  transition: transform var(--transition-fast);
}

.btn:hover svg {
  transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   5. Hero Banner Section
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  padding: 6rem 0 5rem 0;
  background: var(--grad-hero);
  border-bottom: var(--border-glass);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-pill);
  background: rgba(127, 0, 255, 0.15);
  border: 1px solid rgba(127, 0, 255, 0.4);
  color: var(--accent-cyan);
  font-size: 0.875rem;
  font-weight: 600;
  width: fit-content;
}

.hero-badge svg {
  width: 16px;
  height: 16px;
  fill: var(--accent-green);
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.hero-description {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.7;
}

/* Search Bar Component */
.search-container {
  position: relative;
  max-width: 550px;
  margin-top: 0.5rem;
}

.search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input {
  width: 100%;
  padding: 1.1rem 1.5rem 1.1rem 3.25rem;
  background: rgba(22, 25, 43, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-pill);
  color: var(--text-main);
  font-size: 1rem;
  outline: none;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-fast);
}

.search-input:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.4);
  background: rgba(22, 25, 43, 0.98);
}

.search-icon {
  position: absolute;
  left: 1.2rem;
  width: 20px;
  height: 20px;
  stroke: var(--text-muted);
  pointer-events: none;
}

.search-btn {
  position: absolute;
  right: 6px;
  padding: 0.65rem 1.25rem;
}

/* Quick Category Pills */
.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.pill-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-dim);
}

.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 1rem;
  background: var(--bg-card);
  border: var(--border-glass);
  border-radius: var(--radius-pill);
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 600;
  transition: all var(--transition-fast);
  cursor: pointer;
  text-decoration: none;
}

.cat-pill:hover, .cat-pill.active {
  background: rgba(0, 242, 254, 0.15);
  border-color: var(--accent-cyan);
  color: var(--text-highlight);
  transform: translateY(-2px);
}

.cat-pill.math:hover { border-color: var(--cat-math); color: var(--cat-math); }
.cat-pill.spelling:hover { border-color: var(--cat-spelling); color: var(--cat-spelling); }
.cat-pill.memory:hover { border-color: var(--cat-memory); color: var(--cat-memory); }
.cat-pill.typing:hover { border-color: var(--cat-typing); color: var(--cat-typing); }

/* Hero Visual Box */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-visual-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-card);
  border: var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-glow-purple);
  backdrop-filter: blur(12px);
  position: relative;
}

.hero-visual-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: var(--grad-primary);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.featured-game-preview {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.preview-badge {
  align-self: flex-start;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 800;
  padding: 0.25rem 0.75rem;
  background: var(--accent-purple);
  color: #fff;
  border-radius: var(--radius-sm);
}

.preview-img-wrap {
  width: 100%;
  height: 200px;
  background: #181c2e;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: var(--border-glass);
}

.preview-title {
  font-size: 1.35rem;
  color: var(--text-highlight);
}

/* --------------------------------------------------------------------------
   6. Game Cards & Grid Section
   -------------------------------------------------------------------------- */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.75rem;
}

.game-card {
  background: var(--bg-card);
  border: var(--border-glass);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
}

.game-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 242, 254, 0.4);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), var(--shadow-glow);
}

.game-thumb-wrap {
  position: relative;
  width: 100%;
  height: 170px;
  background: #181c2e;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.game-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.game-card:hover .game-thumb-wrap img {
  transform: scale(1.08);
}

.game-category-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  box-shadow: var(--shadow-sm);
  z-index: 2;
}

.game-category-tag.math { background: rgba(0, 242, 254, 0.9); color: #000; }
.game-category-tag.spelling { background: rgba(0, 255, 135, 0.9); color: #000; }
.game-category-tag.memory { background: rgba(255, 183, 3, 0.9); color: #000; }
.game-category-tag.typing { background: rgba(255, 0, 127, 0.9); color: #fff; }

.game-rating-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(13, 15, 24, 0.85);
  backdrop-filter: blur(8px);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  gap: 0.25rem;
  border: var(--border-glass);
}

.game-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 0.75rem;
}

.game-card-title {
  font-size: 1.15rem;
  color: var(--text-highlight);
}

.game-card-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.game-card-footer {
  margin-top: auto;
  padding-top: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.game-players {
  font-size: 0.8rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* Category Filter Tabs */
.category-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius-pill);
  background: var(--bg-card);
  border: var(--border-glass);
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.tab-btn:hover, .tab-btn.active {
  background: var(--grad-primary);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(127, 0, 255, 0.4);
}

/* --------------------------------------------------------------------------
   7. Educational Benefits Section
   -------------------------------------------------------------------------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: var(--bg-card);
  border: var(--border-glass);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(127, 0, 255, 0.4);
  box-shadow: var(--shadow-glow-purple);
}

.feature-icon-wrap {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: rgba(127, 0, 255, 0.15);
  border: 1px solid rgba(127, 0, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
}

.feature-icon-wrap svg {
  width: 28px;
  height: 28px;
  stroke: var(--accent-cyan);
}

.feature-title {
  font-size: 1.25rem;
  color: var(--text-highlight);
}

.feature-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   8. Blog Preview Section
   -------------------------------------------------------------------------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.blog-card {
  background: var(--bg-card);
  border: var(--border-glass);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 242, 254, 0.3);
  box-shadow: var(--shadow-md);
}

.blog-thumb {
  width: 100%;
  height: 190px;
  background: #181c2e;
  overflow: hidden;
}

.blog-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.blog-card:hover .blog-thumb img {
  transform: scale(1.06);
}

.blog-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex-grow: 1;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.blog-meta-date {
  color: var(--accent-cyan);
  font-weight: 600;
}

.blog-title {
  font-size: 1.2rem;
  color: var(--text-highlight);
}

.blog-excerpt {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.blog-read-more {
  margin-top: auto;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent-cyan);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.blog-read-more:hover {
  color: #56f7ff;
}

/* --------------------------------------------------------------------------
   9. Legal & Informational Article Layout
   -------------------------------------------------------------------------- */
.page-header {
  padding: 4rem 0 3rem 0;
  background: var(--grad-hero);
  border-bottom: var(--border-glass);
  text-align: center;
}

.page-header-title {
  margin-bottom: 0.75rem;
}

.page-header-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
}

.legal-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3rem;
  padding: 4rem 0;
}

.legal-sidebar {
  position: sticky;
  top: 100px;
  height: fit-content;
  background: var(--bg-card);
  border: var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.toc-title {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-cyan);
  margin-bottom: 1rem;
  font-weight: 800;
}

.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.toc-link {
  font-size: 0.9rem;
  color: var(--text-muted);
  display: block;
  padding: 0.35rem 0.5rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.toc-link:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-highlight);
}

.legal-content {
  background: var(--bg-card);
  border: var(--border-glass);
  border-radius: var(--radius-md);
  padding: 3rem;
}

.legal-content h2 {
  font-size: 1.75rem;
  margin: 2.5rem 0 1rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--accent-cyan);
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content h3 {
  font-size: 1.3rem;
  margin: 1.75rem 0 0.75rem 0;
  color: var(--text-highlight);
}

.legal-content p {
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 1.25rem;
  color: var(--text-muted);
}

.legal-content ul, .legal-content ol {
  margin-bottom: 1.5rem;
}

.legal-content li {
  margin-bottom: 0.5rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.info-box {
  background: rgba(127, 0, 255, 0.1);
  border-left: 4px solid var(--accent-purple);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

.info-box p {
  color: var(--text-main);
  margin: 0;
}

/* --------------------------------------------------------------------------
   10. Contact Us & Interactive Forms
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3.5rem;
  padding: 4rem 0;
}

.contact-info-card {
  background: var(--bg-card);
  border: var(--border-glass);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.info-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.info-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(0, 242, 254, 0.15);
  border: 1px solid rgba(0, 242, 254, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  flex-shrink: 0;
}

.info-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--accent-cyan);
}

.info-details h4 {
  font-size: 1.1rem;
  color: var(--text-highlight);
  margin-bottom: 0.25rem;
}

.info-details p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.contact-form-card {
  background: var(--bg-card);
  border: var(--border-glass);
  border-radius: var(--radius-md);
  padding: 2.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  padding: 0.85rem 1.15rem;
  background: rgba(13, 15, 24, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 0.95rem;
  outline: none;
  transition: all var(--transition-fast);
}

.form-control:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.3);
  background: rgba(13, 15, 24, 0.95);
}

textarea.form-control {
  resize: vertical;
  min-height: 140px;
}

.alert-success {
  padding: 1rem 1.25rem;
  background: rgba(0, 255, 135, 0.15);
  border: 1px solid rgba(0, 255, 135, 0.4);
  border-radius: var(--radius-sm);
  color: var(--accent-green);
  font-weight: 600;
  margin-bottom: 1.5rem;
  display: none;
}

.alert-success.active {
  display: block;
}

/* FAQ Accordion */
.faq-section {
  padding: 4rem 0;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.faq-item {
  background: var(--bg-card);
  border: var(--border-glass);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: transparent;
  border: none;
  text-align: left;
  color: var(--text-highlight);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question svg {
  width: 20px;
  height: 20px;
  transition: transform var(--transition-fast);
}

.faq-item.active .faq-question svg {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal);
  padding: 0 1.5rem;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 1.5rem 1.5rem 1.5rem;
}

/* --------------------------------------------------------------------------
   11. Footer Component
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--bg-deep-alt);
  border-top: var(--border-glass);
  padding: 4rem 0 2rem 0;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.footer-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-socials {
  display: flex;
  gap: 1rem;
}

.social-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-pill);
  background: var(--bg-card);
  border: var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.social-icon-btn:hover {
  background: var(--accent-cyan);
  color: #000;
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(0, 242, 254, 0.4);
}

.social-icon-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.footer-column-title {
  font-size: 1.05rem;
  color: var(--text-highlight);
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-column-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--accent-cyan);
  border-radius: var(--radius-pill);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--accent-cyan);
  padding-left: 4px;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
  color: var(--text-dim);
}

/* --------------------------------------------------------------------------
   12. Responsive Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .hero-visual {
    order: -1;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .legal-layout {
    grid-template-columns: 1fr;
  }
  .legal-sidebar {
    display: none;
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .nav-toggle {
    display: block;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}
