/* ═══════════════════════════════════════════════════════════════════════════
   MAGIC WAR LEGENDS — Policy Pages Stylesheet  (css/policy.css)
   Shared by privacy-policy.html, terms-of-service.html, gdpr.html
   ═══════════════════════════════════════════════════════════════════════════ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #0d0d1a;
  color: #d4d4e8;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Header ─────────────────────────────────────────────────────────────── */
.policy-header {
  background: #0d0d1a;
  border-bottom: 1px solid rgba(123, 47, 190, 0.35);
  padding: 14px 24px;
  position: sticky;
  top: 0;
  z-index: 10;
}

.policy-back {
  color: #7B2FBE;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: color 0.15s;
}

.policy-back:hover {
  color: #9d4fe0;
}

/* ── Content ─────────────────────────────────────────────────────────────── */
.policy-content {
  flex: 1;
  max-width: 760px;
  width: 100%;
  margin: 0 auto;
  padding: 48px 24px 64px;
}

.policy-content h1 {
  font-size: 2rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 8px;
  line-height: 1.2;
}

.policy-meta {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 32px;
  line-height: 1.5;
}

.policy-content h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #c09cee;
  margin-top: 36px;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(123, 47, 190, 0.2);
}

.policy-content p {
  margin-bottom: 14px;
  color: #c8c8dc;
}

.policy-content p + p {
  margin-top: 0;
}

.policy-content strong {
  color: #e0e0f0;
}

.policy-content ul,
.policy-content ol {
  padding-left: 24px;
  margin-bottom: 14px;
  color: #c8c8dc;
}

.policy-content li {
  margin-bottom: 6px;
}

.policy-content a {
  color: #9d6fe0;
  text-decoration: none;
  border-bottom: 1px solid rgba(157, 111, 224, 0.35);
  transition: color 0.15s, border-color 0.15s;
}

.policy-content a:hover {
  color: #b890f0;
  border-color: #b890f0;
}

/* ── Footer ─────────────────────────────────────────────────────────────── */
.policy-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 20px 24px;
  text-align: center;
  color: rgba(255, 255, 255, 0.35);
}

.policy-footer nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.policy-footer nav a {
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  font-size: 0.8rem;
  transition: color 0.15s;
}

.policy-footer nav a:hover {
  color: rgba(255, 255, 255, 0.75);
}

.policy-footer nav span {
  color: rgba(255, 255, 255, 0.2);
  font-size: 0.8rem;
}

.policy-footer small {
  display: block;
  font-size: 0.75rem;
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .policy-content {
    padding: 32px 16px 48px;
  }

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