@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500;700&family=Source+Sans+3:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
  --bg-deep: #020617;
  --bg-card: rgba(15, 23, 42, 0.92);
  --gold: #D4AF37;
  --gold-dim: rgba(212, 175, 55, 0.35);
  --gold-glow: rgba(212, 175, 55, 0.15);
  --steel: #94a3b8;
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --crimson: #7F1D1D;
  --border: rgba(212, 175, 55, 0.22);
  --radius: 12px;
  --max-w: 820px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg-deep);
  min-height: 100vh;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(212, 175, 55, 0.08), transparent),
    radial-gradient(circle at 20% 80%, rgba(127, 29, 29, 0.12), transparent 40%),
    linear-gradient(180deg, #020617 0%, #0f172a 100%);
  z-index: -2;
}

.stars {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.4;
  background-image:
    radial-gradient(1px 1px at 10% 20%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1px 1px at 30% 60%, rgba(255,255,255,0.35), transparent),
    radial-gradient(1px 1px at 70% 30%, rgba(255,255,255,0.4), transparent),
    radial-gradient(1px 1px at 90% 70%, rgba(255,255,255,0.3), transparent),
    radial-gradient(1.5px 1.5px at 50% 90%, rgba(212,175,55,0.4), transparent);
  pointer-events: none;
}

.site-header {
  text-align: center;
  padding: 2.5rem 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  background: rgba(2, 6, 23, 0.6);
  backdrop-filter: blur(8px);
}

.site-header a.brand {
  text-decoration: none;
  color: inherit;
}

.brand-krethz {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--steel);
  margin: 0 0 0.35rem;
}

.brand-game {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(1.1rem, 4vw, 1.45rem);
  font-weight: 700;
  color: var(--gold);
  margin: 0;
  text-shadow: 0 0 24px var(--gold-glow);
}

.doc-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
  padding: 1rem 1.25rem;
  max-width: var(--max-w);
  margin: 0 auto;
}

.doc-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.doc-nav a:hover {
  color: var(--gold);
  border-color: var(--gold-dim);
  background: var(--gold-glow);
}

.doc-nav a.active {
  color: var(--bg-deep);
  background: var(--gold);
  border-color: var(--gold);
  font-weight: 600;
}

.doc-nav .sep {
  color: var(--border);
  user-select: none;
}

.legal-content,
.index-card {
  max-width: var(--max-w);
  margin: 0 auto 3rem;
  padding: 2rem 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.legal-content { margin-top: 0.5rem; }

.legal-content h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  color: var(--gold);
  margin: 0 0 0.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--gold-dim);
}

.legal-content h2 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text);
  margin: 2rem 0 0.75rem;
  letter-spacing: 0.02em;
}

.legal-content h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--steel);
  margin: 1.25rem 0 0.5rem;
}

.legal-content p,
.legal-content li {
  color: var(--text);
}

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

.legal-content a:hover {
  color: #f0d875;
}

.legal-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  font-size: 0.95rem;
}

.legal-content th,
.legal-content td {
  border: 1px solid var(--border);
  padding: 0.65rem 0.85rem;
  text-align: left;
}

.legal-content th {
  background: rgba(212, 175, 55, 0.12);
  color: var(--gold);
  font-weight: 600;
}

.legal-content ul,
.legal-content ol {
  padding-left: 1.35rem;
  margin: 0.5rem 0 1rem;
}

.legal-content li { margin: 0.4rem 0; }

.highlight {
  background: var(--gold-glow);
  border-left: 4px solid var(--gold);
  padding: 1rem 1.15rem;
  margin: 1.25rem 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text);
}

.warning {
  background: rgba(127, 29, 29, 0.25);
  border-left: 4px solid #b91c1c;
  padding: 1rem 1.15rem;
  margin: 1.25rem 0;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.doc-meta {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.legal-footer {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--text-muted);
}

.site-footer {
  text-align: center;
  padding: 2rem 1.25rem 2.5rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
}

.site-footer a {
  color: var(--gold);
  text-decoration: none;
}

.site-footer a:hover { text-decoration: underline; }

/* Index landing */
.index-wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

.index-card h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.5rem;
  color: var(--gold);
  margin: 0 0 0.75rem;
}

.index-card p.lead {
  color: var(--text-muted);
  margin: 0 0 1.75rem;
}

.legal-links {
  display: grid;
  gap: 0.75rem;
}

.legal-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.15rem;
  background: rgba(2, 6, 23, 0.5);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}

.legal-links a:hover {
  border-color: var(--gold);
  background: var(--gold-glow);
}

.legal-links a span.label { font-weight: 600; }
.legal-links a span.lang {
  font-size: 0.8rem;
  color: var(--gold);
  font-family: 'Orbitron', sans-serif;
  letter-spacing: 0.1em;
}

@media (max-width: 600px) {
  .legal-content,
  .index-card {
    margin-left: 0.75rem;
    margin-right: 0.75rem;
    padding: 1.35rem 1.15rem;
  }
  .legal-content table {
    font-size: 0.82rem;
  }
}
