/* ============ TERMS & CONDITIONS PAGE — Game Star ============ */
/* Same design system as home-v2, catalog, faq & privacidad */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap');

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

:root {
  --bg-primary: #060a18;
  --bg-secondary: #0a0f21;
  --bg-card: rgba(255,255,255,0.03);
  --glass-border: rgba(255,255,255,0.06);
  --text-primary: #f0f2f5;
  --text-secondary: rgba(240,242,245,0.6);
  --text-muted: rgba(240,242,245,0.35);
  --accent-purple: #8d4acd;
  --accent-blue: #0066FF;
  --accent-cyan: #00E5FF;
  --radius-md: 12px;
  --radius-lg: 16px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', 'Space Grotesk', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* ============ HEADER ============ */
.gs-header {
  position: fixed; top: 16px; left: 50%; right: auto; transform: translateX(-50%); width: calc(100% - 48px); max-width: 1100px; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px; height: 72px;
  background: rgba(6,10,24,0.8);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(141,74,205,0.15);
  border-radius: 20px;
  transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
  box-shadow: 0 4px 30px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.03);
}
.gs-header.scrolled {
  top: 10px; left: 50%; right: auto; width: calc(100% - 40px); max-width: 1080px;
  height: 60px; border-radius: 16px;
  background: rgba(6,10,24,0.92);
  border-color: rgba(141,74,205,0.25);
  box-shadow: 0 8px 40px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.04);
}
.gs-header .logo img { height: 40px; transition: height 0.3s; }
.gs-header.scrolled .logo img { height: 34px; }
.gs-nav { display: flex; list-style: none; gap: 8px; align-items: center; }
.gs-nav a {
  padding: 8px 16px; font-size: 15px; font-weight: 500;
  color: var(--text-secondary); transition: color 0.3s;
  position: relative; letter-spacing: 0.01em;
}
.gs-nav a:hover { color: var(--text-primary); }
.gs-nav a::after {
  content: ''; position: absolute; bottom: 2px; left: 50%;
  transform: translateX(-50%); width: 0; height: 2px;
  background: var(--accent-purple);
  transition: width 0.3s; border-radius: 2px;
}
.gs-nav a:hover::after { width: 100%; }
.gs-nav .nav-btn-account {
  background: rgba(141,74,205,0.12);
  border: 1px solid rgba(141,74,205,0.4);
  border-radius: 100px; padding: 8px 20px;
  color: #c9a0ff !important; font-weight: 600; transition: all 0.3s;
}
.gs-nav .nav-btn-account:hover {
  background: rgba(141,74,205,0.3);
  border-color: rgba(141,74,205,0.6); color: #fff !important;
}
.gs-nav .nav-btn-account::after { display: none !important; }
.gs-mobile-toggle {
  display: none; background: none; border: none;
  color: var(--text-primary); cursor: pointer;
  position: relative; z-index: 1002;
}
.gs-nav-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.6); z-index: 998;
  opacity: 0; transition: opacity 0.3s ease;
}
.gs-nav-overlay.active { display: block; opacity: 1; }

/* ============ HERO ============ */
.terms-hero {
  position: relative; padding: 130px 40px 60px;
  text-align: center; overflow: hidden;
  background: linear-gradient(175deg, #060a18 0%, #0c1129 40%, #1a1040 70%, #060a18 100%);
}
.terms-hero::before {
  content: ''; position: absolute; top: -80px; left: 50%;
  transform: translateX(-50%); width: 600px; height: 600px;
  background: radial-gradient(ellipse at center, rgba(141,74,205,0.12) 0%, rgba(0,229,255,0.04) 50%, transparent 70%);
  pointer-events: none; z-index: 0;
}
.terms-hero-glow {
  position: absolute; bottom: -2px; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(0,229,255,0.4) 30%, rgba(141,74,205,0.5) 50%, rgba(0,229,255,0.4) 70%, transparent 100%);
}
.terms-hero-orb {
  position: absolute; border-radius: 50%; filter: blur(80px);
  animation: float 6s ease-in-out infinite;
}
.terms-hero-orb.orb-1 { width: 400px; height: 400px; background: rgba(141,74,205,0.1); top: 10%; right: 20%; }
.terms-hero-orb.orb-2 { width: 300px; height: 300px; background: rgba(0,102,255,0.08); bottom: 10%; left: 15%; animation-delay: -3s; }
@keyframes float {
  0%,100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-20px) scale(1.03); }
}
.terms-hero-content { position: relative; z-index: 1; }
.terms-hero h1 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800;
  color: #fff; margin: 0 0 12px; letter-spacing: -0.02em;
}
.terms-hero p {
  font-size: clamp(0.9rem, 2vw, 1.1rem); font-weight: 300;
  color: rgba(0,229,255,0.8); margin: 0;
  letter-spacing: 0.08em; text-transform: uppercase;
}

/* ============ CONTENT ============ */
.terms-container {
  max-width: 820px; margin: 0 auto;
  padding: 48px 32px 100px;
}

/* Date stamp */
.terms-date {
  display: inline-block;
  background: rgba(141,74,205,0.12);
  border: 1px solid rgba(141,74,205,0.25);
  border-radius: 8px; padding: 10px 20px;
  font-size: 0.92rem; font-weight: 500;
  color: #c9a0ff; letter-spacing: 0.02em;
  margin-bottom: 24px;
}

/* Intro text */
.terms-intro {
  color: #b8bdc8; font-size: 1.02rem; line-height: 1.8;
  margin-bottom: 40px;
}

/* ============ ACCORDION ============ */
.terms-item {
  margin-bottom: 12px;
  border: 1px solid rgba(141,74,205,0.15); border-radius: 12px;
  background: rgba(18,21,42,0.5); overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.terms-item:hover { border-color: rgba(141,74,205,0.3); }
.terms-item.open {
  border-color: rgba(141,74,205,0.4);
  box-shadow: 0 4px 24px rgba(141,74,205,0.08);
}

/* Section heading button */
.terms-question {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 20px 24px; border: none; background: none;
  color: #e0e4ed; font-family: 'Outfit', sans-serif;
  font-size: 1.08rem; font-weight: 600; text-align: left;
  cursor: pointer; line-height: 1.4; transition: color 0.2s ease;
  -webkit-appearance: none; appearance: none; outline: none; gap: 16px;
}
.terms-question:hover { color: #ffffff; }
.terms-item.open .terms-question { color: var(--accent-cyan); }

/* Chevron */
.terms-chevron {
  flex-shrink: 0; width: 20px; height: 20px;
  color: rgba(141,74,205,0.6);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1), color 0.3s ease;
}
.terms-item.open .terms-chevron { transform: rotate(180deg); color: var(--accent-cyan); }

/* Answer area */
.terms-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s cubic-bezier(0.4,0,0.2,1); }
.terms-answer-inner {
  padding: 0 24px 24px; border-top: 1px solid rgba(141,74,205,0.1); padding-top: 16px;
}
.terms-answer-inner p { margin: 0 0 14px; color: #b8bdc8; line-height: 1.7; }
.terms-answer-inner p:last-child { margin-bottom: 0; }
.terms-answer-inner strong { color: #e0e4ed; font-weight: 600; }

/* Sub-headings inside accordion */
.terms-answer-inner h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1rem; font-weight: 600;
  color: #e0e4ed; margin: 24px 0 12px;
  letter-spacing: -0.01em;
}
.terms-answer-inner h3:first-child { margin-top: 0; }

/* Lists */
.terms-answer-inner ul, .terms-answer-inner ol { margin: 8px 0 16px; padding-left: 24px; }
.terms-answer-inner li { margin-bottom: 6px; color: #b8bdc8; line-height: 1.6; }
.terms-answer-inner li::marker { color: rgba(0,229,255,0.5); }
.terms-answer-inner ol li::marker { color: rgba(141,74,205,0.7); font-weight: 600; }

/* Links inside accordion */
.terms-answer-inner a {
  color: #a78bfa; text-decoration: none;
  border-bottom: 1px solid rgba(167,139,250,0.3);
  transition: color 0.25s ease, border-color 0.25s ease;
}
.terms-answer-inner a:hover { color: #c4b5fd; border-bottom-color: #c4b5fd; }
.terms-answer-inner a[href^="mailto:"] { color: var(--accent-cyan); border-bottom-color: rgba(0,229,255,0.3); }
.terms-answer-inner a[href^="mailto:"]:hover { color: #5ef5f5; border-bottom-color: #5ef5f5; }

/* CTA box */
.terms-cta {
  margin-top: 48px; padding: 32px;
  background: rgba(141,74,205,0.08);
  border: 1px solid rgba(141,74,205,0.2);
  border-radius: 16px; text-align: center;
}
.terms-cta p { color: #c9a0ff; font-weight: 500; margin-bottom: 8px; }
.terms-cta p:last-child { color: #b8bdc8; font-weight: 400; margin-bottom: 0; }
.terms-cta a { color: #00d2d3; border-bottom: 1px solid rgba(0,210,211,0.3); text-decoration: none; font-weight: 500; transition: color 0.25s, border-color 0.25s; }
.terms-cta a:hover { color: #5ef5f5; border-bottom-color: #5ef5f5; }
.terms-cta a[href^="mailto:"] { color: #00d2d3; }

/* ============ FOOTER ============ */
.gs-footer {
  padding: 48px 40px 24px;
  border-top: 1px solid var(--glass-border);
  text-align: center;
}
.gs-footer .footer-logo { height: 48px; margin-bottom: 24px; }
.gs-footer-nav {
  display: flex; justify-content: center; gap: 32px;
  list-style: none; margin-bottom: 32px; flex-wrap: wrap;
}
.gs-footer-nav a { color: var(--text-secondary); font-size: 14px; transition: color 0.3s; }
.gs-footer-nav a:hover { color: var(--accent-purple); }
.gs-footer .tagline { color: var(--text-muted); font-size: 13px; margin-bottom: 8px; }
.gs-footer .copyright { color: var(--text-muted); font-size: 12px; }
.gs-footer .copyright a { color: var(--text-secondary); text-decoration: none; }

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
  .gs-header {
    top: 10px; left: 14px; right: 14px;
    transform: none; width: auto; max-width: none;
    padding: 0 18px; height: 60px; border-radius: 16px;
  }
  .gs-header.scrolled { top: 8px; left: 12px; right: 12px; height: 54px; }
  .gs-nav {
    display: flex; flex-direction: column;
    position: fixed; top: 0; right: -100%;
    width: 80vw; max-width: 320px; height: 100vh; height: 100dvh; overflow-x: hidden;
    background: rgba(6,10,24,0.97);
    backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px);
    justify-content: center; align-items: center; gap: 0;
    z-index: 1001;
    border-left: 1px solid rgba(141,74,205,0.2);
    box-shadow: -10px 0 40px rgba(0,0,0,0.5);
    transition: right 0.35s cubic-bezier(0.4,0,0.2,1);
    padding: 80px 0 40px;
  }
  .gs-nav.open { right: 0; }
  .gs-nav li { width: 100%; text-align: center; }
  .gs-nav a {
    display: block; padding: 20px 32px;
    font-size: 18px; font-weight: 600;
    color: var(--text-primary);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: background 0.2s, color 0.2s;
  }
  .gs-nav a:hover { background: rgba(141,74,205,0.1); color: var(--accent-cyan); }
  .gs-nav a::after { display: none; }

  .gs-nav .nav-btn-account {
    display: inline-block !important;
    width: auto;
    max-width: calc(100% - 64px);
    margin: 12px auto 0;
    padding: 12px 24px;
    border-radius: 100px;
    text-align: center;
    font-size: 16px;
    box-sizing: border-box;
  }
  .gs-mobile-toggle {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 10px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    transition: background 0.2s;
  }
  .gs-mobile-toggle:hover { background: rgba(255,255,255,0.1); }
  .terms-hero { padding: 100px 20px 40px; }
  .terms-container { padding: 32px 16px 80px; }
  .terms-question { padding: 16px 18px; font-size: 0.95rem; }
  .terms-answer-inner { padding: 0 18px 20px; padding-top: 14px; }
  .gs-footer { padding: 32px 20px 16px; }
}

@media (max-width: 480px) {
  .terms-hero { padding: 90px 16px 32px; }
  .terms-cta { padding: 24px 20px; }
}
