/* ══════════════════════════════════════════════════════════════════════
   policy.css — Modern, Professional Styling for Legal & Information Pages
   (Help Center, Terms of Service, Privacy Policy, Refund Policy)
   ══════════════════════════════════════════════════════════════════════ */

.policy-page-wrapper {
  min-height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 3.5rem 1.5rem 5rem;
  background: var(--bg, #FAFAFC);
  width: 100%;
  box-sizing: border-box;
}

.policy-container {
  width: 100%;
  max-width: 840px;
  margin: 0 auto;
}

/* ── Hero Header ── */
.policy-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.policy-logo {
  height: 85px;
  width: auto;
  max-width: 260px;
  object-fit: contain;
  display: block;
  margin: 0 auto 1.5rem;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.04));
  transition: transform 0.2s ease;
}

.policy-logo:hover {
  transform: scale(1.02);
}

.policy-header h1 {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text, #10141F);
  letter-spacing: -0.025em;
  margin: 0 0 0.75rem;
  line-height: 1.2;
}

.policy-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface-sunk, #F2F3F7);
  color: var(--muted, #5C6272);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 9999px;
  border: 1px solid var(--border, #E5E7EE);
  margin-top: 0.5rem;
}

.policy-intro {
  max-width: 600px;
  margin: 1rem auto 0;
  color: var(--muted, #5C6272);
  font-size: 1rem;
  line-height: 1.7;
}

/* ── Document Card Container ── */
.policy-card {
  background: var(--surface, #FFFFFF);
  border: 1px solid var(--border, #E5E7EE);
  border-radius: 20px;
  padding: 3rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
  box-sizing: border-box;
}

/* ── Policy Sections ── */
.policy-section {
  margin-bottom: 2.25rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border, #E5E7EE);
}

.policy-section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.policy-section h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text, #10141F);
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.policy-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 6px;
  border-radius: 8px;
  background: var(--brand-tint, #EDE9FE);
  color: var(--brand, #7C3AED);
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
}

.policy-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--brand-tint, #EDE9FE);
  color: var(--brand, #7C3AED);
  font-size: 1.15rem;
  flex-shrink: 0;
}

.policy-icon.success {
  background: rgba(34, 197, 94, 0.12);
  color: #16a34a;
}

.policy-icon.danger {
  background: rgba(239, 68, 68, 0.12);
  color: #dc2626;
}

.policy-icon.warning {
  background: rgba(245, 158, 11, 0.12);
  color: #d97706;
}

.policy-section p {
  color: var(--text-sidebar, var(--text, #374151));
  font-size: 0.975rem;
  line-height: 1.75;
  margin: 0 0 1rem;
}

.policy-section p:last-child {
  margin-bottom: 0;
}

.policy-section ul {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.policy-section li {
  position: relative;
  padding-left: 1.75rem;
  color: var(--text-sidebar, var(--text, #374151));
  font-size: 0.95rem;
  line-height: 1.65;
}

.policy-section li::before {
  content: "";
  position: absolute;
  left: 0.35rem;
  top: 0.6rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand, #7C3AED);
}

.policy-section li.check-item::before {
  content: "✓";
  left: 0;
  top: -0.05rem;
  width: auto;
  height: auto;
  background: none;
  color: #16a34a;
  font-weight: 700;
  font-size: 0.95rem;
}

.policy-section li.cross-item::before {
  content: "✕";
  left: 0;
  top: -0.05rem;
  width: auto;
  height: auto;
  background: none;
  color: #dc2626;
  font-weight: 700;
  font-size: 0.95rem;
}

.policy-section strong {
  color: var(--text, #10141F);
  font-weight: 600;
}

/* ── Highlights & Callout Boxes ── */
.policy-callout {
  background: var(--surface-sunk, #F8FAFC);
  border-left: 4px solid var(--brand, #7C3AED);
  border-radius: 0 12px 12px 0;
  padding: 1.25rem 1.5rem;
  margin: 1.25rem 0;
}

.policy-callout p {
  margin: 0;
  font-size: 0.925rem;
  color: var(--text-sidebar, #374151);
}

/* ── Contact Support Box ── */
.policy-contact-box {
  background: var(--surface-sunk, #F8FAFC);
  border: 1px solid var(--border, #E5E7EE);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  margin-top: 2.5rem;
}

.policy-contact-box h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text, #10141F);
  margin: 0 0 0.5rem;
}

.policy-contact-box p {
  color: var(--muted, #5C6272);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 0 1.25rem;
}

.policy-email-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand, #7C3AED);
  color: #FFFFFF !important;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 22px;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.2);
}

.policy-email-btn:hover {
  background: var(--brand-dark, #5B21B6);
  transform: none;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

/* ── Dark Mode Overrides ── */
body.dark-theme .policy-logo {
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.3));
}

body.dark-theme .policy-num {
  background: rgba(168, 85, 247, 0.15);
  color: #A78BFA;
}

body.dark-theme .policy-icon {
  background: rgba(168, 85, 247, 0.15);
  color: #A78BFA;
}

body.dark-theme .policy-icon.success {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
}

body.dark-theme .policy-icon.danger {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
}

body.dark-theme .policy-icon.warning {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
}

body.dark-theme .policy-card {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

body.dark-theme .policy-section li::before {
  background: #A78BFA;
}

body.dark-theme .policy-section li.check-item::before {
  color: #4ade80;
}

body.dark-theme .policy-section li.cross-item::before {
  color: #f87171;
}

/* ── Responsive Adaptations ── */
@media (max-width: 768px) {
  .policy-page-wrapper {
    padding: 2.5rem 1.25rem 4rem;
  }

  .policy-header {
    margin-bottom: 2rem;
  }

  .policy-logo {
    height: 72px;
    max-width: 220px;
    margin-bottom: 1.25rem;
  }

  .policy-header h1 {
    font-size: 1.85rem;
  }

  .policy-card {
    padding: 2rem 1.5rem;
    border-radius: 16px;
  }

  .policy-section h2 {
    font-size: 1.15rem;
  }

  .policy-section {
    margin-bottom: 1.75rem;
    padding-bottom: 1.5rem;
  }
}

@media (max-width: 480px) {
  .policy-page-wrapper {
    padding: 1.75rem 1rem 3rem;
  }

  .policy-logo {
    height: 60px;
    max-width: 190px;
    margin-bottom: 1rem;
  }

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

  .policy-card {
    padding: 1.5rem 1.15rem;
    border-radius: 14px;
  }

  .policy-section h2 {
    font-size: 1.05rem;
    gap: 0.5rem;
  }

  .policy-num {
    min-width: 24px;
    height: 24px;
    font-size: 0.75rem;
  }

  .policy-contact-box {
    padding: 1.5rem 1rem;
  }

  .policy-email-btn {
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
  }
}
