/* Unified site header (logo + 4 links) and footer (all pages) — English UI */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #0f172a;
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
}

.site-header-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #f8fafc;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.site-logo img {
  display: block;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.site-logo-text strong {
  color: #38bdf8;
  font-weight: 700;
}

.site-nav-toggle {
  display: none;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: #1e293b;
  color: #e2e8f0;
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
}

.site-nav a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 10px;
  transition: background 0.15s ease, color 0.15s ease;
}

.site-nav a:hover {
  color: #f8fafc;
  background: rgba(56, 189, 248, 0.12);
}

.site-nav a[aria-current="page"] {
  color: #f8fafc;
  background: rgba(56, 189, 248, 0.2);
}

.site-footer {
  background: #111827;
  color: #9ca3af;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  margin-top: auto;
}

.site-footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 28px 20px 36px;
}

.site-footer-tag {
  margin: 0 0 16px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #e5e7eb;
}

.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-bottom: 20px;
}

.site-footer-links a {
  color: #38bdf8;
  text-decoration: none;
  font-size: 0.84rem;
}

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

.site-footer-links a[aria-current="page"] {
  color: #f8fafc;
  text-decoration: underline;
}

.site-footer-copy {
  margin: 0;
  font-size: 0.8rem;
  color: #6b7280;
}

@media (max-width: 768px) {
  .site-nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding-top: 4px;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 12px 10px;
  }
}

/* Legal pages: stack under shared chrome */
body.legal-doc {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  padding: 0;
  background: #020617;
}

body.legal-doc .page-container {
  margin: 20px auto 32px;
}
