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

:root {
  --bg:        #0d0d0f;
  --bg-card:   #16161a;
  --border:    #2a2a30;
  --text:      #e2e2e8;
  --text-muted:#8a8a96;
  --accent:    #f0b429;
  --accent-dim:#c49020;
  --radius:    12px;
  --max-w:     720px;
}

html { font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  line-height: 1.7;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

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

/* ─── Site Header ───────────────────────────────────────────── */
.site-header {
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.5rem;
}

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

.site-logo {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.site-logo span { color: var(--accent); }

.lang-switcher {
  display: flex;
  gap: 0.5rem;
  font-size: 0.8rem;
}

.lang-switcher a {
  padding: 0.2rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
}

.lang-switcher a.active,
.lang-switcher a:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

/* ─── Main Content ──────────────────────────────────────────── */
main {
  flex: 1;
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

/* ─── Hero (landing) ────────────────────────────────────────── */
.hero {
  text-align: center;
  padding: 4rem 0 3rem;
}

.hero-icon {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 0.75rem;
}

.hero h1 span { color: var(--accent); }

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto 2rem;
}

.badge-link {
  display: inline-block;
}

.badge-link img {
  height: 48px;
  border-radius: 8px;
}

.badge-placeholder {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  background: var(--text);
  color: var(--bg);
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  transition: opacity 0.15s;
}

.badge-placeholder:hover { opacity: 0.85; text-decoration: none; }

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.feature-card .icon { font-size: 1.4rem; margin-bottom: 0.5rem; }
.feature-card h3 { font-size: 0.95rem; font-weight: 600; margin-bottom: 0.25rem; }
.feature-card p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; }

/* ─── Legal pages ───────────────────────────────────────────── */
.page-title {
  margin-bottom: 0.5rem;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.page-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 3rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.legal h2 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 2.5rem 0 0.6rem;
  color: var(--text);
}

.legal p { margin-bottom: 0.9rem; color: var(--text-muted); }
.legal ul { margin: 0.5rem 0 0.9rem 1.4rem; color: var(--text-muted); }
.legal li { margin-bottom: 0.4rem; }
.legal a { color: var(--accent); }

.legal p:first-of-type { color: var(--text); }

/* ─── Footer ────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.site-footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  align-items: center;
  justify-content: space-between;
}

.site-footer nav { display: flex; gap: 1.25rem; }
.site-footer a { color: var(--text-muted); }
.site-footer a:hover { color: var(--text); text-decoration: none; }

/* ─── Notice box ────────────────────────────────────────────── */
.notice {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 2rem 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ─── Responsive ────────────────────────────────────────────── */
@media (max-width: 480px) {
  .hero { padding: 2.5rem 0 2rem; }
  .features { grid-template-columns: 1fr 1fr; }
}
