* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: system-ui, -apple-system, sans-serif;
  background: #0a0a12;
  color: #ccc;
  min-height: 100dvh;
  line-height: 1.65;
  display: flex;
  justify-content: center;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(233, 69, 96, 0.14), transparent),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(78, 204, 163, 0.06), transparent),
    linear-gradient(180deg, #1a1a2e 0%, #0f0f1a 100%);
  z-index: -1;
  pointer-events: none;
}

.mobile-shell {
  background: #0f0f1a;
  height: auto;
  min-height: 100dvh;
  overflow: visible;
  width: 100%;
}

.site-header {
  width: 100%;
  margin: 0 auto;
  padding: 24px 20px 0;
  padding-top: calc(24px + env(safe-area-inset-top));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.brand-icon { font-size: 1.5rem; }

.brand-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}

.back-link {
  font-size: 0.875rem;
  color: #888;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s;
}

.back-link:hover { color: #e94560; }

.page {
  width: 100%;
  margin: 0 auto;
  padding: 32px 20px 48px;
  padding-bottom: calc(48px + env(safe-area-inset-bottom));
}

.doc-card {
  background: linear-gradient(145deg, rgba(30, 42, 74, 0.6) 0%, rgba(22, 33, 62, 0.85) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 32px 28px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.doc-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.doc-meta {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.doc-card h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin: 24px 0 10px;
}

.doc-card h2:first-of-type { margin-top: 0; }

.doc-card p {
  margin-bottom: 12px;
  color: #aaa;
  font-size: 0.95rem;
}

.doc-card ul {
  margin: 0 0 12px 1.25rem;
  color: #aaa;
  font-size: 0.95rem;
}

.doc-card li { margin-bottom: 8px; }

.doc-card li strong { color: #ddd; }

.doc-card a {
  color: #e94560;
  text-decoration: none;
  transition: opacity 0.15s;
}

.doc-card a:hover { opacity: 0.85; }

.contact-box {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  padding: 10px 16px;
  background: rgba(233, 69, 96, 0.1);
  border: 1px solid rgba(233, 69, 96, 0.2);
  border-radius: 10px;
}

.contact-box a {
  font-weight: 600;
  color: #ff6b81;
}

.site-footer {
  width: 100%;
  margin: 0 auto;
  padding: 0 20px 32px;
  text-align: center;
  font-size: 0.85rem;
  color: #555;
}

.site-footer a {
  color: #888;
  text-decoration: none;
  margin: 0 8px;
  transition: color 0.15s;
}

.site-footer a:hover,
.site-footer a.active { color: #e94560; }

@media (max-width: 480px) {
  .doc-card { padding: 24px 20px; }
  .doc-title { font-size: 1.5rem; }
}
