/* ═══════════════════════════════════════
   MPA PAGE STYLES — Privacy, Terms, About, Contact
   ═══════════════════════════════════════ */

/* ── Navigation Bar ── */
.page-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 0, 32, 0.92);
  border-bottom: 1px solid rgba(168, 85, 247, 0.15);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 0 24px;
}

/* On the home page the nav overlays the game so it doesn't push content */
body.has-game .page-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(13, 0, 32, 0.85);
  border-bottom-color: transparent;
  transition: background 0.3s ease, border-color 0.3s ease;
}

body.has-game .page-nav:hover {
  background: rgba(13, 0, 32, 0.95);
  border-bottom-color: rgba(168, 85, 247, 0.15);
}

/* Give game top elements breathing room below fixed nav */
body.has-game .help-btn {
  top: 76px;
}

body.has-game .score-display {
  top: 76px;
}

body.has-game .instructions-panel {
  top: 120px;
}

/* Day mode overrides for home page nav */
body.day-mode.has-game .page-nav {
  background: rgba(245, 232, 255, 0.88);
}

body.day-mode.has-game .page-nav:hover {
  background: rgba(245, 232, 255, 0.96);
  border-bottom-color: rgba(100, 50, 150, 0.12);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  font-size: 1.1rem;
  font-weight: 800;
  color: #a855f7;
  text-decoration: none;
  letter-spacing: 1px;
  transition: text-shadow 0.2s ease;
  white-space: nowrap;
}

.nav-logo:hover {
  text-shadow: 0 0 20px rgba(168, 85, 247, 0.5);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  color: rgba(200, 160, 255, 0.7);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 20px;
  transition: color 0.2s ease, background 0.2s ease, text-shadow 0.2s ease;
  letter-spacing: 0.5px;
}

.nav-links a:hover {
  color: #e8d0ff;
  background: rgba(168, 85, 247, 0.1);
  text-shadow: 0 0 12px rgba(168, 85, 247, 0.3);
}

.nav-links a.active {
  color: #a855f7;
  background: rgba(168, 85, 247, 0.12);
  text-shadow: 0 0 8px rgba(168, 85, 247, 0.3);
}

/* ── Page Content ── */
.page-content {
  position: relative;
  z-index: 2;
  background: #0d0020;
  padding: 60px 24px 100px;
  min-height: calc(100vh - 64px - 160px);
}

.page-container {
  max-width: 860px;
  margin: 0 auto;
}

.page-content h1 {
  font-size: 2.2rem;
  font-weight: 800;
  color: #a855f7;
  margin-bottom: 8px;
  line-height: 1.3;
  letter-spacing: -0.5px;
}

.page-date {
  font-size: 0.9rem;
  color: rgba(168, 85, 247, 0.5);
  margin-bottom: 40px;
}

.page-content h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #c084fc;
  margin-top: 40px;
  margin-bottom: 16px;
  line-height: 1.4;
}

.page-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #d4b8ff;
  margin-top: 24px;
  margin-bottom: 12px;
}

.page-content p {
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(220, 200, 240, 0.85);
  margin-bottom: 18px;
}

.page-content strong {
  color: #e8d0ff;
}

.page-content a {
  color: #a855f7;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}

.page-content a:hover {
  color: #c084fc;
}

.page-content ul {
  padding-left: 24px;
  margin-bottom: 18px;
}

.page-content ul li {
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(220, 200, 240, 0.85);
  margin-bottom: 8px;
}

.page-content ul li strong {
  color: #e8d0ff;
}

.page-content section {
  margin-bottom: 8px;
}

/* ── Contact Page Specific ── */
.contact-email {
  font-size: 1.2rem !important;
  font-weight: 700;
}

.contact-email a {
  color: #a855f7;
  text-decoration: none;
  transition: text-shadow 0.2s ease;
}

.contact-email a:hover {
  text-shadow: 0 0 20px rgba(168, 85, 247, 0.5);
  color: #c084fc;
}

.contact-social {
  margin-top: 8px;
  padding: 16px 20px;
  border: 1px dashed rgba(168, 85, 247, 0.25);
  border-radius: 12px;
}

.social-placeholder {
  color: rgba(168, 85, 247, 0.4);
  font-style: italic;
  font-size: 0.95rem;
}

/* ── Footer ── */
.page-footer {
  position: relative;
  z-index: 2;
  background: rgba(13, 0, 32, 0.95);
  border-top: 1px solid rgba(168, 85, 247, 0.12);
  padding: 40px 24px;
}

.footer-inner {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.footer-links a {
  color: rgba(200, 160, 255, 0.6);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 16px;
  transition: color 0.2s ease, background 0.2s ease, text-shadow 0.2s ease;
  letter-spacing: 0.5px;
}

.footer-links a:hover {
  color: #e8d0ff;
  background: rgba(168, 85, 247, 0.08);
  text-shadow: 0 0 10px rgba(168, 85, 247, 0.3);
}

.footer-sep {
  color: rgba(168, 85, 247, 0.25);
  font-size: 0.8rem;
}

.footer-copy {
  font-size: 0.8rem;
  color: rgba(200, 160, 255, 0.3);
  letter-spacing: 1px;
}

/* ═══════════════════════════════════════
   DAY MODE OVERRIDES
   ═══════════════════════════════════════ */

body.day-mode .page-nav {
  background: rgba(245, 232, 255, 0.92);
  border-bottom-color: rgba(100, 50, 150, 0.12);
}

body.day-mode .nav-logo {
  color: #7c3aed;
}

body.day-mode .nav-links a {
  color: rgba(100, 50, 150, 0.6);
}

body.day-mode .nav-links a:hover {
  color: #4a2d70;
  background: rgba(124, 58, 237, 0.08);
}

body.day-mode .nav-links a.active {
  color: #7c3aed;
  background: rgba(124, 58, 237, 0.1);
}

body.day-mode .page-content {
  background: #f5e8ff;
}

body.day-mode .page-content h1 {
  color: #7c3aed;
}

body.day-mode .page-date {
  color: rgba(124, 58, 237, 0.4);
}

body.day-mode .page-content h2 {
  color: #8b5cf6;
}

body.day-mode .page-content h3 {
  color: #6d3a9e;
}

body.day-mode .page-content p {
  color: rgba(60, 30, 90, 0.8);
}

body.day-mode .page-content strong {
  color: #4a2d70;
}

body.day-mode .page-content a {
  color: #7c3aed;
}

body.day-mode .page-content a:hover {
  color: #8b5cf6;
}

body.day-mode .page-content ul li {
  color: rgba(60, 30, 90, 0.8);
}

body.day-mode .page-content ul li strong {
  color: #4a2d70;
}

body.day-mode .contact-email a {
  color: #7c3aed;
}

body.day-mode .contact-social {
  border-color: rgba(124, 58, 237, 0.2);
}

body.day-mode .page-footer {
  background: rgba(245, 232, 255, 0.95);
  border-top-color: rgba(100, 50, 150, 0.12);
}

body.day-mode .footer-links a {
  color: rgba(100, 50, 150, 0.5);
}

body.day-mode .footer-links a:hover {
  color: #4a2d70;
  background: rgba(124, 58, 237, 0.06);
}

body.day-mode .footer-sep {
  color: rgba(124, 58, 237, 0.2);
}

body.day-mode .footer-copy {
  color: rgba(100, 50, 150, 0.25);
}

/* ═══════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════ */

@media (max-width: 768px) {
  .nav-inner {
    flex-direction: column;
    height: auto;
    padding: 12px 0;
    gap: 10px;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
  }

  .nav-links a {
    font-size: 0.8rem;
    padding: 6px 10px;
  }

  .page-content h1 {
    font-size: 1.6rem;
  }

  .page-content {
    padding: 40px 16px 60px;
  }

  .footer-links {
    flex-direction: column;
    gap: 4px;
  }

  .footer-sep {
    display: none;
  }
}

@media (max-width: 480px) {
  .nav-links a {
    font-size: 0.75rem;
    padding: 5px 8px;
  }
}
