:root {
  --bg: #0b1020;
  --panel: #0f172a;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --brand: #2563eb;
  --brand-contrast: #1e40af;
  --maxw: 820px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
html {
  background-color: var(--bg);
  background-image: none !important;
}
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
  background: var(--bg) !important;
  background-image: none !important;
  color: var(--text);
  line-height: 1.6;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
}
.logo {
  width: auto;
  height: 60px;
  max-width: 100%;
  object-fit: contain;
  border-radius: 8px;
  display: block;
}
.title-wrap h1 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}
.subtitle {
  margin: 2px 0 0 0;
  color: var(--muted);
  font-size: 13px;
}

.terms {
  background: var(--panel);
  background-image: none !important;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 28px;
  margin: 24px auto;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.terms h2 {
  margin: 0 0 8px;
  font-size: 24px;
}
.terms h3 {
  margin: 20px 0 8px;
  font-size: 16px;
  color: #dbeafe;
}
.terms p { color: #f3f4f6; }
.terms strong { color: #a5b4fc; }

.back-to-top {
  display: flex;
  justify-content: flex-end;
  margin: 16px 0 32px;
}

button#backToTop {
  background: var(--brand);
  color: white;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}
button#backToTop:hover { background: var(--brand-contrast); }

.site-footer {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 18px 0 36px;
  color: var(--muted);
}

@media (max-width: 600px) {
  .terms { padding: 20px; }
}
