/* ── Payment Policy Page Styles ── */

/* Tab Navigation */
.policy-tabs-wrapper {
  background: #fff;
  box-shadow: 0 4px 24px rgba(26,35,126,0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}
.policy-tabs {
  display: flex;
  max-width: 1100px;
  margin: 0 auto;
  overflow-x: auto;
  scrollbar-width: none;
}
.policy-tabs::-webkit-scrollbar { display: none; }
.policy-tab-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 18px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #555;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
  transition: color 0.25s, border-color 0.25s, background 0.25s;
}
.policy-tab-link:hover { color: #1A237E; background: #f0f4ff; }
.policy-tab-link.active { color: #1A237E; border-bottom-color: #1A237E; background: #f7f9ff; }

/* Hero */
.policy-hero {
  position: relative;
  height: 340px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.policy-hero img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.45);
}
.policy-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(10,36,99,0.70) 0%, rgba(26,35,126,0.55) 100%);
}
.policy-hero-text {
  position: absolute;
  text-align: center;
  color: #fff;
}
.policy-hero-text h1 {
  font-size: 2.8rem; font-weight: 800;
  letter-spacing: 1px; margin-bottom: 10px;
  text-shadow: 0 2px 18px rgba(0,0,0,0.4);
}
.policy-hero-text p { font-size: 1.1rem; opacity: 0.88; }

/* Content Layout */
.policy-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px 24px 80px;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  align-items: start;
}

/* Sidebar TOC */
.policy-toc {
  background: #f7f9ff;
  border: 1px solid #e0e7ff;
  border-radius: 14px;
  padding: 28px 24px;
  position: sticky;
  top: 72px;
}
.policy-toc h3 {
  font-size: 0.85rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.2px;
  color: #1A237E; margin-bottom: 16px;
}
.policy-toc ul { list-style: none; padding: 0; margin: 0; }
.policy-toc li { margin-bottom: 10px; }
.policy-toc a {
  font-size: 0.92rem; color: #555;
  text-decoration: none;
  display: flex; align-items: center; gap: 8px;
  transition: color 0.2s;
}
.policy-toc a::before {
  content: ''; width: 6px; height: 6px;
  border-radius: 50%; background: #c5cae9;
  flex-shrink: 0; transition: background 0.2s;
}
.policy-toc a:hover { color: #1A237E; }
.policy-toc a:hover::before { background: #1A237E; }

/* Policy Cards */
.policy-body { min-width: 0; }
.policy-updated {
  display: inline-flex; align-items: center; gap: 7px;
  background: #e8eaf6; color: #283593;
  font-size: 0.85rem; font-weight: 600;
  padding: 6px 14px; border-radius: 20px; margin-bottom: 30px;
}
.policy-card {
  background: #fff;
  border: 1px solid #e8eaf6;
  border-radius: 16px;
  padding: 32px 36px;
  margin-bottom: 28px;
  box-shadow: 0 2px 12px rgba(26,35,126,0.05);
  transition: box-shadow 0.25s, transform 0.25s;
}
.policy-card:hover { box-shadow: 0 8px 32px rgba(26,35,126,0.12); transform: translateY(-2px); }
.policy-card-header {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 16px; padding-bottom: 14px;
  border-bottom: 2px solid #e8eaf6;
}
.policy-card-icon {
  width: 46px; height: 46px; border-radius: 12px;
  background: linear-gradient(135deg, #1A237E, #3949AB);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; flex-shrink: 0;
}
.policy-card h2 { font-size: 1.2rem; font-weight: 700; color: #1A237E; margin: 0; }
.policy-card p { color: #444; line-height: 1.8; font-size: 0.97rem; margin-bottom: 10px; }
.policy-card p:last-child { margin-bottom: 0; }
.policy-card ul { color: #444; line-height: 1.8; font-size: 0.97rem; padding-left: 20px; margin: 8px 0 0; }
.policy-card li { margin-bottom: 6px; }

/* Payment Methods Grid */
.payment-methods-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px; margin-top: 16px;
}
.payment-method-card {
  border: 1.5px solid #e0e7ff; border-radius: 12px;
  padding: 18px 16px; text-align: center;
  transition: border-color 0.2s, background 0.2s;
}
.payment-method-card:hover { border-color: #1A237E; background: #f7f9ff; }
.payment-method-card i { font-size: 2rem; color: #1A237E; margin-bottom: 8px; display: block; }
.payment-method-card span { font-size: 0.9rem; font-weight: 600; color: #333; }

/* Alerts */
.policy-alert {
  display: flex; gap: 14px; align-items: flex-start;
  background: #e8f5e9; border: 1.5px solid #a5d6a7;
  border-radius: 12px; padding: 18px 20px; margin-top: 16px;
}
.policy-alert.warning { background: #fff8e1; border-color: #ffe082; }
.policy-alert i { color: #2e7d32; font-size: 1.3rem; flex-shrink: 0; margin-top: 2px; }
.policy-alert.warning i { color: #f57f17; }
.policy-alert p { color: #1b5e20; font-size: 0.94rem; line-height: 1.7; margin: 0; }
.policy-alert.warning p { color: #4e3200; }

/* CTA */
.policy-cta {
  background: linear-gradient(135deg, #1A237E 0%, #283593 100%);
  border-radius: 18px; padding: 40px 36px;
  text-align: center; color: #fff; margin-top: 10px;
}
.policy-cta h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 12px; }
.policy-cta p { opacity: 0.85; margin-bottom: 24px; font-size: 1rem; }
.policy-cta-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: 30px;
  font-weight: 700; font-size: 0.95rem;
  text-decoration: none; transition: transform 0.2s, box-shadow 0.2s;
}
.cta-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.2); }
.cta-btn-primary { background: #fff; color: #1A237E; }
.cta-btn-secondary { background: rgba(255,255,255,0.15); color: #fff; border: 1.5px solid rgba(255,255,255,0.4); }

/* Responsive */
@media (max-width: 860px) {
  .policy-section { grid-template-columns: 1fr; gap: 28px; padding: 32px 16px 60px; }
  .policy-toc { position: static; }
  .policy-hero-text h1 { font-size: 2rem; }
  .policy-card { padding: 22px 18px; }
  .policy-cta { padding: 28px 18px; }
}
