/* Styling for the in-game "decrypted archive" policy reference document */
.policy-doc {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
  line-height: 1.6;
}

.policy-banner {
  background: rgba(75,232,224,0.08);
  border-bottom: 1px solid var(--border-glow);
  color: var(--accent-cyan);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-align: center;
  padding: 0.5rem;
  margin: 0 -1.5rem 2rem;
  position: sticky;
  top: 0;
  z-index: 5;
  backdrop-filter: blur(4px);
}

.policy-header {
  text-align: center;
  margin-bottom: 1.5rem;
}
.policy-header h1 {
  font-size: 1.6rem;
  color: var(--accent-cyan);
  text-shadow: 0 0 10px var(--border-glow);
  margin-bottom: 0.4rem;
}
.policy-meta {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin: 0.15rem 0;
}

.policy-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2.5rem;
  padding: 1rem;
  background: var(--bg-panel);
  border: 1px solid rgba(75,232,224,0.15);
  border-radius: 6px;
}
.policy-toc a {
  font-size: 0.8rem;
  text-decoration: none;
  color: var(--text-main);
  border: 1px solid var(--text-dim);
  border-radius: 3px;
  padding: 0.35em 0.7em;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.policy-toc a:hover {
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px var(--border-glow);
}

.policy-doc section {
  margin-bottom: 2.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(126,147,173,0.2);
}
.policy-doc section:first-of-type { border-top: none; }

.policy-doc h2 {
  color: var(--accent-magenta);
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
  text-shadow: 0 0 8px rgba(255,63,164,0.25);
}
.policy-doc h3 {
  color: var(--accent-amber);
  font-size: 0.95rem;
  margin: 1.2rem 0 0.4rem;
  letter-spacing: 0.03em;
}
.policy-doc p, .policy-doc li {
  color: var(--text-main);
  font-size: 0.92rem;
}
.policy-doc ul, .policy-doc ol {
  padding-left: 1.4rem;
}
.policy-doc li { margin-bottom: 0.4rem; }
.policy-doc strong { color: var(--accent-cyan); }

.policy-footer {
  text-align: center;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(126,147,173,0.2);
  color: var(--text-dim);
  font-size: 0.8rem;
}
.policy-footer .disclaimer {
  font-style: italic;
  font-size: 0.72rem;
  opacity: 0.7;
  margin-top: 0.5rem;
}

/* Sidebar/drawer mode (when embedded as an overlay panel inside the activity) */
body.in-drawer {
  background: transparent;
}
body.in-drawer .policy-banner {
  margin: 0 0 1.5rem;
  border-radius: 4px;
}
