/* GameFold — Marketing & Legal site */

:root {
  --bg: #090B0F;
  --bg-elevated: #0C0F14;
  --surface: #12151A;
  --border: #1A1E23;
  --accent: #00E38C;
  --accent-dark: #00C46A;
  --text: #FFFFFF;
  --text-secondary: #B2BAC2;
  --text-muted: #6C7580;
  --max-width: 760px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}

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

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 1.5rem;
  background: rgba(12, 15, 20, 0.85);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.site-header .inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
}

.brand:hover {
  text-decoration: none;
  color: var(--accent);
}

.brand img {
  height: 28px;
  width: 28px;
  border-radius: 6px;
}

.site-nav {
  display: flex;
  gap: 1.5rem;
  font-size: 0.9rem;
}

.site-nav a {
  color: var(--text-secondary);
}

.site-nav a:hover {
  color: var(--accent);
  text-decoration: none;
}

@media (max-width: 600px) {
  .site-nav { display: none; }
}

/* Hero (landing) */
.hero {
  text-align: center;
  padding: 5rem 1.5rem 3rem;
}

.hero h1 {
  font-size: 3.2rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--accent) 0%, #00D9FF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero .tagline {
  font-size: 1.3rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

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

.cta {
  display: inline-block;
  background: var(--accent);
  color: var(--bg);
  padding: 0.9rem 1.8rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  transition: transform 0.15s ease, background 0.15s ease;
}

.cta:hover {
  background: var(--accent-dark);
  text-decoration: none;
  transform: translateY(-1px);
}

.cta.disabled {
  background: var(--surface);
  color: var(--text-muted);
  pointer-events: none;
  cursor: default;
}

/* Features grid (landing) */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin: 3rem 0;
}

.feature-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.feature-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.feature-card h3 {
  color: var(--accent);
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Legal / article pages */
.page-title {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.last-updated {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 2.5rem;
}

.legal-article h2 {
  color: var(--accent);
  font-size: 1.3rem;
  margin: 2.5rem 0 1rem;
  scroll-margin-top: 5rem;
}

.legal-article h3 {
  color: var(--text);
  font-size: 1.05rem;
  margin: 1.5rem 0 0.5rem;
}

.legal-article p,
.legal-article ul {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.legal-article ul {
  padding-left: 1.5rem;
}

.legal-article li {
  margin-bottom: 0.4rem;
}

.legal-article strong,
.legal-article b {
  color: var(--text);
  font-weight: 600;
}

.note {
  background: var(--bg-elevated);
  border-left: 3px solid var(--accent);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  border-radius: 4px;
  color: var(--text-secondary);
}

.note strong {
  color: var(--text);
  display: block;
  margin-bottom: 0.25rem;
}

/* Steps list (delete-account / support) */
.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: 1rem 1rem 1rem 3.5rem;
  margin-bottom: 0.75rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-secondary);
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.75rem;
  height: 1.75rem;
  background: var(--accent);
  color: var(--bg);
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* FAQ */
details {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0;
  margin-bottom: 0.75rem;
  overflow: hidden;
}

details summary {
  cursor: pointer;
  padding: 1rem 1.25rem;
  font-weight: 600;
  color: var(--text);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

details summary::-webkit-details-marker { display: none; }

details summary::after {
  content: '+';
  color: var(--accent);
  font-size: 1.3rem;
  font-weight: 400;
}

details[open] summary::after { content: '–'; }

details > p,
details > div {
  padding: 0 1.25rem 1.25rem;
  color: var(--text-secondary);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 1.5rem;
  margin-top: 4rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.site-footer .footer-nav {
  margin-bottom: 1rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.site-footer .footer-nav a {
  color: var(--text-secondary);
}

.site-footer .copy {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* 404 */
.error-page {
  text-align: center;
  padding: 6rem 1.5rem;
}

.error-page .code {
  font-size: 5rem;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 1rem;
}

/* Back-to-top */
.back-link {
  display: inline-block;
  margin-top: 2rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}
