/* ============================================
   Midas Co., Ltd. — Official Website Styles
   Dark Theme · Gaming Industry Aesthetic
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
  /* Colors */
  --bg-primary: #07070d;
  --bg-secondary: #0d0d18;
  --bg-tertiary: #14141f;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-card-hover: rgba(255, 255, 255, 0.06);

  --accent-primary: #7c3aed;
  --accent-secondary: #06b6d4;
  --accent-tertiary: #ec4899;
  --accent-gradient: linear-gradient(135deg, #7c3aed 0%, #06b6d4 100%);
  --accent-gradient-warm: linear-gradient(135deg, #ec4899 0%, #7c3aed 100%);

  --text-primary: #f0f0f5;
  --text-secondary: #a0a0b8;
  --text-tertiary: #6b6b80;

  --border-color: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(124, 58, 237, 0.4);

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Sans', 'Noto Sans JP', 'Noto Sans SC', sans-serif;

  /* Spacing */
  --section-padding: 100px 0;
  --container-max: 1200px;

  /* Effects */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --glow-purple: 0 0 40px rgba(124, 58, 237, 0.3);
  --glow-cyan: 0 0 40px rgba(6, 182, 212, 0.3);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

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

ul {
  list-style: none;
}

/* ---------- Background Effects ---------- */
.bg-orbs {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.35;
  animation: float 20s ease-in-out infinite;
}

.bg-orb:nth-child(1) {
  width: 500px;
  height: 500px;
  background: #7c3aed;
  top: -100px;
  left: -100px;
}

.bg-orb:nth-child(2) {
  width: 400px;
  height: 400px;
  background: #06b6d4;
  bottom: 10%;
  right: -100px;
  animation-delay: -5s;
}

.bg-orb:nth-child(3) {
  width: 350px;
  height: 350px;
  background: #ec4899;
  top: 50%;
  left: 50%;
  animation-delay: -10s;
  opacity: 0.2;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(50px, -50px) scale(1.05); }
  50% { transform: translate(-30px, 30px) scale(0.95); }
  75% { transform: translate(30px, 50px) scale(1.02); }
}

/* Grid pattern overlay */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

/* Game-themed decorative elements */
.bg-game-elements {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.game-deco {
  position: absolute;
  opacity: 0.06;
  animation: gameFloat 25s ease-in-out infinite;
}

.game-deco:nth-child(1) {
  top: 8%;
  left: 85%;
  animation-delay: 0s;
  animation-duration: 30s;
}

.game-deco:nth-child(2) {
  top: 25%;
  left: 5%;
  animation-delay: -8s;
  animation-duration: 22s;
}

.game-deco:nth-child(3) {
  top: 55%;
  left: 90%;
  animation-delay: -15s;
  animation-duration: 28s;
}

.game-deco:nth-child(4) {
  top: 70%;
  left: 10%;
  animation-delay: -5s;
  animation-duration: 26s;
}

.game-deco:nth-child(5) {
  top: 90%;
  left: 70%;
  animation-delay: -12s;
  animation-duration: 24s;
}

.game-deco:nth-child(6) {
  top: 40%;
  left: 50%;
  animation-delay: -20s;
  animation-duration: 35s;
}

.game-deco:nth-child(7) {
  top: 15%;
  left: 40%;
  animation-delay: -3s;
  animation-duration: 20s;
}

.game-deco:nth-child(8) {
  top: 85%;
  left: 30%;
  animation-delay: -10s;
  animation-duration: 32s;
}

.game-deco svg {
  width: 80px;
  height: 80px;
}

.game-deco:nth-child(1) svg,
.game-deco:nth-child(3) svg {
  width: 60px;
  height: 60px;
}

.game-deco:nth-child(5) svg,
.game-deco:nth-child(7) svg {
  width: 40px;
  height: 40px;
}

@keyframes gameFloat {
  0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
  15% { transform: translate(20px, -30px) rotate(15deg) scale(1.1); }
  30% { transform: translate(-10px, -50px) rotate(-10deg) scale(0.9); }
  50% { transform: translate(30px, -20px) rotate(20deg) scale(1.05); }
  70% { transform: translate(-20px, 10px) rotate(-5deg) scale(0.95); }
  85% { transform: translate(15px, 30px) rotate(10deg) scale(1); }
}

/* Scanline effect for retro game feel */
.bg-scanlines {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(255, 255, 255, 0.008) 2px,
    rgba(255, 255, 255, 0.008) 4px
  );
}

/* Particle trail effect */
.bg-particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--accent-secondary);
  border-radius: 50%;
  opacity: 0;
  animation: particleDrift 8s linear infinite;
}

.particle:nth-child(1) { left: 20%; animation-delay: 0s; animation-duration: 6s; }
.particle:nth-child(2) { left: 35%; animation-delay: -2s; animation-duration: 8s; }
.particle:nth-child(3) { left: 50%; animation-delay: -4s; animation-duration: 7s; }
.particle:nth-child(4) { left: 65%; animation-delay: -1s; animation-duration: 9s; }
.particle:nth-child(5) { left: 80%; animation-delay: -3s; animation-duration: 6s; }
.particle:nth-child(6) { left: 10%; animation-delay: -5s; animation-duration: 10s; }
.particle:nth-child(7) { left: 45%; animation-delay: -7s; animation-duration: 5s; }
.particle:nth-child(8) { left: 75%; animation-delay: -6s; animation-duration: 8s; }

.particle::after {
  content: '';
  position: absolute;
  width: 2px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(6, 182, 212, 0.4), transparent);
  top: 0;
  left: 0;
}

@keyframes particleDrift {
  0% { top: 100%; opacity: 0; }
  10% { opacity: 0.8; }
  90% { opacity: 0.8; }
  100% { top: -5%; opacity: 0; }
}

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

/* ---------- Navigation ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 18px 0;
  transition: all var(--transition);
  background: rgba(7, 7, 13, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
}

.navbar.scrolled {
  padding: 12px 0;
  background: rgba(7, 7, 13, 0.92);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.nav-logo .logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #fff;
  font-weight: 900;
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4);
}

.nav-logo .logo-text {
  background: linear-gradient(135deg, #fff 0%, #c4b5fd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  transition: color var(--transition);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gradient);
  transition: width var(--transition);
  border-radius: 2px;
}

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

.nav-links a:hover::after {
  width: 100%;
}

/* Language Switcher */
.lang-switcher {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-color);
  border-radius: 100px;
  padding: 4px;
}

.lang-switcher-mobile {
  display: none;
}

.lang-switcher-desktop {
  display: flex;
}

.lang-option {
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-tertiary);
  border-radius: 100px;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  background: transparent;
  font-family: inherit;
}

.lang-option:hover {
  color: var(--text-secondary);
}

.lang-option.active {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: 0 2px 12px rgba(124, 58, 237, 0.4);
}

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ---------- Hero Section ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 120px 0 80px;
  overflow: hidden;
}

.hero-content {
  max-width: 780px;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #c4b5fd;
  margin-bottom: 28px;
  animation: fadeInUp 0.8s ease;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  background: #06b6d4;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.hero-title {
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #ffffff 0%, #c4b5fd 40%, #67e8f9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: fadeInUp 0.8s ease 0.1s both;
}

.hero-subtitle {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text-secondary);
  max-width: 640px;
  margin-bottom: 40px;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.3s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 100px;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  font-family: inherit;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: 0 8px 30px rgba(124, 58, 237, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(124, 58, 237, 0.5);
}

.btn-secondary {
  background: rgba(255,255,255,0.06);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

/* Hero Stats */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 72px;
  padding-top: 48px;
  border-top: 1px solid var(--border-color);
  animation: fadeInUp 0.8s ease 0.4s both;
}

.stat-item .stat-value {
  font-size: 2.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, #c4b5fd 0%, #67e8f9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}

.stat-item .stat-label {
  font-size: 0.85rem;
  color: var(--text-tertiary);
  margin-top: 8px;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Section Headers ---------- */
.section {
  padding: var(--section-padding);
  position: relative;
  z-index: 1;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #fff 0%, #a5b4fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ---------- About Section ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-text h3 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #fff 0%, #c4b5fd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.9;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all var(--transition);
  backdrop-filter: blur(10px);
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(124, 58, 237, 0.1);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.3);
}

.feature-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-tertiary);
  line-height: 1.6;
  margin: 0;
}

/* ---------- Games Section ---------- */
.games-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.game-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  transition: all var(--transition);
  cursor: pointer;
  min-height: 380px;
  display: flex;
  flex-direction: column;
}

.game-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(124, 58, 237, 0.15);
}

.game-cover {
  height: 200px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  font-weight: 900;
  color: rgba(255,255,255,0.1);
}

.game-cover::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--g1, #7c3aed) 0%, var(--g2, #06b6d4) 100%);
  opacity: 0.9;
}

.game-cover .cover-letter {
  position: relative;
  z-index: 1;
  font-size: 4rem;
  font-weight: 900;
  color: rgba(255,255,255,0.25);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.game-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  padding: 4px 12px;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(10px);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #67e8f9;
  border: 1px solid rgba(103, 232, 249, 0.3);
}

.game-info {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.game-genre {
  font-size: 0.8rem;
  color: var(--accent-secondary);
  font-weight: 600;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.game-info h4 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.game-info p {
  font-size: 0.9rem;
  color: var(--text-tertiary);
  line-height: 1.6;
  flex: 1;
}

.games-cta {
  text-align: center;
  margin-top: 48px;
}

/* ---------- Services Section ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px;
  transition: all var(--transition);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.service-number {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--accent-primary);
  margin-bottom: 16px;
  font-family: 'Courier New', monospace;
}

.service-card h4 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.service-card p {
  font-size: 0.92rem;
  color: var(--text-tertiary);
  line-height: 1.7;
}

/* ---------- CTA Section ---------- */
.cta-section {
  padding: 80px 0;
  position: relative;
  z-index: 1;
}

.cta-box {
  background: linear-gradient(135deg, rgba(124,58,237,0.15) 0%, rgba(6,182,212,0.1) 100%);
  border: 1px solid rgba(124,58,237,0.3);
  border-radius: var(--radius-xl);
  padding: 64px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(124,58,237,0.1) 0%, transparent 50%);
  animation: rotate 20s linear infinite;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.cta-box > * {
  position: relative;
  z-index: 1;
}

.cta-box h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #fff 0%, #c4b5fd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cta-box p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 72px 0 32px;
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .nav-logo {
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--text-tertiary);
  line-height: 1.7;
  max-width: 280px;
}

.footer-col h5 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul li a {
  font-size: 0.9rem;
  color: var(--text-tertiary);
  transition: color var(--transition);
}

.footer-col ul li a:hover {
  color: var(--accent-secondary);
}

.footer-contact li {
  font-size: 0.9rem;
  color: var(--text-tertiary);
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.footer-contact .icon {
  color: var(--accent-primary);
  margin-top: 2px;
  flex-shrink: 0;
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--border-color);
  text-align: center;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: var(--text-tertiary);
}

/* ---------- Legal Pages ---------- */
.legal-page {
  padding: 140px 0 80px;
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

.legal-header {
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border-color);
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
  transition: color var(--transition);
}

.legal-back:hover {
  color: var(--accent-secondary);
}

.legal-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #fff 0%, #c4b5fd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.legal-updated {
  font-size: 0.9rem;
  color: var(--text-tertiary);
}

.legal-content {
  max-width: 820px;
}

[data-lang-content] {
  display: none;
}

[data-lang-content].active {
  display: block;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.legal-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 40px 0 16px;
  color: var(--text-primary);
}

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

.legal-content h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 28px 0 12px;
  color: var(--text-primary);
}

.legal-content p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.9;
  margin-bottom: 16px;
}

.legal-content ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 16px;
}

.legal-content ul li {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.9;
  margin-bottom: 8px;
}

.legal-content a {
  color: var(--accent-secondary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

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

.legal-content .info-box {
  background: rgba(124, 58, 237, 0.08);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 24px 0;
}

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

/* ---------- Scroll Reveal Animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: rgba(124, 58, 237, 0.3);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(124, 58, 237, 0.5);
}

/* ---------- Selection ---------- */
::selection {
  background: rgba(124, 58, 237, 0.3);
  color: #fff;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 64px 0;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    max-width: 340px;
    height: 100vh;
    background: var(--bg-secondary);
    flex-direction: column;
    justify-content: center;
    padding: 40px;
    gap: 24px;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    border-left: 1px solid var(--border-color);
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a {
    font-size: 1.1rem;
  }

  .nav-toggle {
    display: flex;
    z-index: 1001;
  }

  .lang-switcher-desktop {
    display: none;
  }

  .lang-switcher-mobile {
    display: flex;
    justify-content: center;
    margin-top: 24px;
  }

  .mobile-lang {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    margin-top: 12px;
  }

  .hero {
    padding-top: 100px;
    min-height: auto;
    padding-bottom: 60px;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 48px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-features {
    grid-template-columns: 1fr;
  }

  .games-grid {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .cta-box {
    padding: 40px 24px;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .btn {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-stats {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .stat-item .stat-value {
    font-size: 2rem;
  }
}
