/* ===== Info pages: About / Terms / Privacy / Contact =====
   Shared by the modal on the emulator page and the standalone pages search
   engines index, so the same text looks the same whichever way a visitor
   reaches it. */

[hidden] { display: none !important; }

.info-card, .info-card * { box-sizing: border-box; }
.info-card {
  position: relative;
  width: 100%;
  max-width: 640px;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.7);
  color: #d1d5db;
  font-family: 'Inter', system-ui, sans-serif;
}

.info-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  border-radius: 8px;
  color: #9ca3af;
  font-size: 18px;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}
.info-close:hover { background: #262626; color: #fff; }

.info-body { padding: 28px 28px 24px; }
.info-body h1 {
  margin: 0 40px 6px 0;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: #fff;
}
.info-body h2 {
  margin: 22px 0 6px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}
.info-body p,
.info-body li { font-size: 14px; line-height: 1.65; }
.info-body p { margin: 0 0 10px; }
.info-body ul { margin: 0 0 10px; padding-left: 20px; }
.info-body li { margin-bottom: 4px; }
.info-body a { color: #c4b5fd; }
.info-body a:hover { color: #ddd6fe; }
.info-updated { font-size: 12px !important; color: #6b7280; margin-bottom: 18px !important; }
.info-loading { color: #6b7280; }

/* ----- Contact form ----- */
.contact-form { display: flex; flex-direction: column; margin-top: 8px; }
.contact-form label {
  margin: 12px 0 5px;
  font-size: 13px;
  font-weight: 600;
  color: #e5e7eb;
}
.contact-form label .optional { font-weight: 400; color: #6b7280; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 9px 12px;
  background: #111;
  border: 1px solid #4b5563;
  border-radius: 6px;
  color: #fff;
  font: inherit;
  font-size: 15px;
  outline: none;
}
.contact-form input:focus,
.contact-form textarea:focus { border-color: #8b5cf6; }
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-honeypot { display: none; }
.fs-field-error { font-size: 12px; color: #c4b5fd; margin-bottom: 4px; }
.fs-field-error:empty { display: none; }
.contact-submit {
  align-self: flex-start;
  margin-top: 18px;
  padding: 10px 22px;
  background: #7c3aed;
  color: #fff;
  border: none;
  border-radius: 8px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.contact-submit:hover { background: #8b5cf6; }
.contact-submit:disabled { opacity: 0.6; cursor: wait; }
.contact-status {
  margin: 14px 0 0 !important;
  padding: 10px 12px;
  border-radius: 6px;
}
.contact-success { color: #4ade80; background: rgba(20, 83, 45, 0.3); }
.contact-error { color: #c4b5fd; background: rgba(127, 29, 29, 0.3); }
.contact-note { margin-top: 18px !important; font-size: 12px !important; color: #6b7280; }

/* ----- As a modal over the emulator ----- */
.info-modal {
  position: fixed;
  inset: 0;
  /* Above everything else on the page, including the gear menu (1200). */
  z-index: 1300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.info-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.65); }
.info-modal .info-card {
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
  animation: infoIn 0.15s ease;
}
@keyframes infoIn {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to   { opacity: 1; transform: none; }
}

/* ----- As a standalone page ----- */
body.info-page {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 32px 16px;
  background: #000;
}
.info-head { padding: 22px 28px 0; }
.info-logo {
  font-weight: 900;
  font-size: 16px;
  letter-spacing: -0.5px;
  text-decoration: none;
  color: #fff;
}
.info-logo span { color: #a78bfa; }
.info-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  padding: 14px 28px 20px;
  border-top: 1px solid #2a2a2a;
  font-size: 13px;
}
.info-links a { color: #9ca3af; text-decoration: none; }
.info-links a:hover { color: #fff; }

@media (max-width: 480px) {
  .info-body { padding: 24px 18px 20px; }
  .info-head { padding: 18px 18px 0; }
  .info-links { padding: 14px 18px 18px; }
  body.info-page { padding-block: 16px; }
}
