/* ============================================================
   POLICY PAGES – shared styles
   (privacy-policy, safety-guidelines, terms-of-service, refund-policy)
   ============================================================ */

/* ---- Page Hero (shared with about/how-it-works) ---- */
.page-hero {
  position: relative;
  background: linear-gradient(135deg, #0f172a 0%, #001F3F 60%, #001F3F 100%);
  overflow: hidden;
  padding: 80px 0 88px;
  text-align: center;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.page-hero::before,
.page-hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(90px);
  opacity: .25;
}
.page-hero::before {
  width: 420px; height: 420px;
  background: #4A7FA5;
  top: -120px; left: -100px;
}
.page-hero::after {
  width: 300px; height: 300px;
  background: #6366f1;
  bottom: -80px; right: -80px;
}

.page-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.page-hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 100px;
}

.page-hero-title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin: 0;
}

.page-hero-title .accent-light {
  color: #8FBDD6;
}

.page-hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,.8);
  max-width: 640px;
  line-height: 1.65;
}

.page-hero-meta {
  font-size: .85rem;
  color: rgba(255,255,255,.55);
  display: flex;
  align-items: center;
  gap: 6px;
}

.page-hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}

.btn-outline-white {
  border: 2px solid rgba(255,255,255,.5);
  color: #fff;
  background: transparent;
  padding: 12px 28px;
  border-radius: 100px;
  font-weight: 600;
  font-size: .95rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,.12);
  border-color: #fff;
}

/* ============================================================
   POLICY LAYOUT
   ============================================================ */
.policy-section {
  padding: 72px 0 96px;
  background: var(--bg-soft);
}

.policy-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  align-items: start;
}

/* ---- Sidebar TOC ---- */
.policy-toc {
  position: sticky;
  top: 96px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
}

.policy-toc-title {
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.policy-toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.policy-toc ul li a {
  display: block;
  font-size: .85rem;
  color: var(--text-muted);
  padding: 6px 10px;
  border-radius: 8px;
  text-decoration: none;
  transition: var(--transition);
  font-weight: 500;
}

.policy-toc ul li a:hover {
  background: var(--blue-light);
  color: var(--blue);
}

.policy-toc ul li a .policy-toc-arrow {
  margin-left: auto;
  font-size: .7rem;
  opacity: .4;
  transition: var(--transition);
}

.policy-toc ul li a:hover .policy-toc-arrow {
  opacity: 1;
  color: var(--blue);
}

/* ---- Main Content ---- */
.policy-content {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.policy-block {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
}

.policy-block h2 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.policy-block h2 i {
  color: var(--blue);
  font-size: 1rem;
}

.policy-block h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin: 20px 0 10px;
}

.policy-block p {
  font-size: .95rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 12px;
}

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

.policy-block ul {
  list-style: none;
  padding: 0;
  margin: 12px 0 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.policy-block ul li {
  font-size: .93rem;
  color: var(--text-muted);
  line-height: 1.6;
  padding-left: 20px;
  position: relative;
}

.policy-block ul li::before {
  content: '•';
  position: absolute;
  left: 6px;
  color: var(--blue);
  font-weight: 700;
}

.policy-block ul li strong {
  color: var(--text);
}

/* ---- Notice Boxes ---- */
.policy-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 20px;
  border-radius: var(--radius);
  margin-top: 16px;
  border-left: 4px solid;
}

.policy-notice i {
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.policy-notice p {
  margin: 0 !important;
  font-size: .9rem;
  line-height: 1.6;
}

.policy-notice--blue {
  background: #EEF4FA;
  border-color: var(--blue);
  color: #001F3F;
}
.policy-notice--blue i { color: var(--blue); }

.policy-notice--green {
  background: #f0fdf4;
  border-color: #22c55e;
  color: #15803d;
}
.policy-notice--green i { color: #22c55e; }

.policy-notice--orange {
  background: #fff7ed;
  border-color: #f97316;
  color: #c2410c;
}
.policy-notice--orange i { color: #f97316; }

/* ---- Policy Table (refund page) ---- */
.policy-table-wrap {
  overflow-x: auto;
  margin-top: 16px;
}

.policy-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}

.policy-table th {
  background: var(--blue-light);
  color: var(--blue-dark);
  font-weight: 700;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 2px solid var(--blue);
}

.policy-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  vertical-align: top;
  line-height: 1.55;
}

.policy-table tr:last-child td {
  border-bottom: none;
}

.policy-table tr:hover td {
  background: var(--bg-soft);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .policy-layout {
    grid-template-columns: 200px 1fr;
    gap: 32px;
  }
}

@media (max-width: 850px) {
  .policy-layout {
    grid-template-columns: 1fr;
  }

  .policy-toc {
    display: none;
  }

  .page-hero {
    padding: 64px 0 72px;
  }
}

@media (max-width: 600px) {
  .policy-block {
    padding: 24px 20px;
  }
}
