/* ============================================================
   HEROZ — Policies Page Styles
   ============================================================ */

.policies-layout {
  padding: 64px 0 96px;
  background: var(--off-white);
}

/* ─── STICKY SIDEBAR NAV ─── */
.policies-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  align-items: start;
}

.policies-sidebar {
  position: sticky;
  top: calc(var(--nav-height) + 24px);
}

.sidebar-nav {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.sidebar-nav-title {
  background: var(--blue);
  padding: 16px 20px;
  font-family: var(--font-display);
  font-size: 0.78rem; font-weight: 800;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--orange);
}

.sidebar-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 20px;
  font-size: 0.88rem; font-weight: 600;
  color: var(--gray-600);
  border-left: 3px solid transparent;
  border-bottom: 1px solid var(--gray-100);
  transition: all var(--transition);
}
.sidebar-nav a:last-child { border-bottom: none; }
.sidebar-nav a:hover { color: var(--blue); border-left-color: var(--blue); background: var(--blue-light); }
.sidebar-nav a.active { color: var(--orange); border-left-color: var(--orange); background: var(--orange-light); font-weight: 700; }
.sidebar-nav a .nav-icon { font-size: 1rem; width: 20px; text-align: center; flex-shrink: 0; }

.sidebar-cta {
  background: var(--white); border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200); padding: 24px;
  margin-top: 20px; box-shadow: var(--shadow-sm);
  text-align: center;
}
.sidebar-cta p {
  font-size: 0.85rem; color: var(--gray-600);
  line-height: 1.65; margin-bottom: 16px;
}
.sidebar-cta .btn { width: 100%; margin-bottom: 8px; }

/* ─── POLICY SECTIONS ─── */
.policy-section {
  scroll-margin-top: calc(var(--nav-height) + 32px);
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.policy-section-header {
  padding: 28px 36px 24px;
  border-bottom: 1px solid var(--gray-100);
  display: flex; align-items: center; gap: 16px;
}
.policy-icon {
  width: 48px; height: 48px; border-radius: var(--radius);
  background: var(--orange-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; flex-shrink: 0;
}
.policy-section-header h2 {
  font-family: var(--font-display);
  font-size: 1.5rem; font-weight: 900;
  color: var(--blue); letter-spacing: 0.5px;
}

.policy-body { padding: 32px 36px; }
.policy-intro {
  font-size: 0.95rem; color: var(--gray-600);
  line-height: 1.75; margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--gray-100);
}

/* Rules list */
.policy-list { display: flex; flex-direction: column; gap: 14px; }
.policy-item {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 16px 20px;
  background: var(--off-white);
  border-radius: var(--radius);
  border-left: 3px solid var(--orange);
  transition: all var(--transition);
}
.policy-item:hover { background: var(--orange-light); border-left-color: var(--orange); }
.policy-item.blue { border-left-color: var(--blue); }
.policy-item.blue:hover { background: var(--blue-light); }
.policy-num {
  font-family: var(--font-display);
  font-size: 1.1rem; font-weight: 900;
  color: var(--orange); min-width: 28px; line-height: 1.4;
}
.policy-item.blue .policy-num { color: var(--blue); }
.policy-text { font-size: 0.9rem; color: var(--gray-700); line-height: 1.7; }

/* Fees table */
.fees-table {
  width: 100%; border-collapse: collapse; margin-top: 16px;
  font-size: 0.9rem;
}
.fees-table thead th {
  font-family: var(--font-display); font-size: 0.75rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--white); background: var(--blue);
  padding: 12px 16px; text-align: left;
}
.fees-table thead th:last-child { text-align: right; }
.fees-table tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-700);
}
.fees-table tbody td:last-child {
  text-align: right;
  font-family: var(--font-display); font-size: 1rem;
  font-weight: 800; color: var(--blue);
}
.fees-table tbody tr:last-child td { border-bottom: none; }
.fees-table tbody tr:hover td { background: var(--off-white); }
.fees-note {
  margin-top: 16px; padding: 12px 16px;
  background: var(--blue-light); border-radius: var(--radius);
  font-size: 0.82rem; color: var(--blue); font-weight: 600;
  border-left: 3px solid var(--blue);
}

/* Certificate highlight box */
.cert-highlight {
  background: linear-gradient(135deg, var(--orange-light) 0%, var(--white) 100%);
  border: 2px solid var(--orange);
  border-radius: var(--radius-lg); padding: 28px 32px;
  display: flex; gap: 20px; align-items: center;
  margin-top: 20px;
}
.cert-highlight-icon { font-size: 3rem; flex-shrink: 0; }
.cert-highlight h3 {
  font-family: var(--font-display); font-size: 1.2rem;
  font-weight: 800; color: var(--blue); margin-bottom: 6px;
}
.cert-highlight p { font-size: 0.9rem; color: var(--gray-600); line-height: 1.65; }
.cert-scores {
  display: flex; gap: 16px; margin-top: 14px;
}
.cert-score {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--gray-200); padding: 12px 20px; text-align: center;
  flex: 1; box-shadow: var(--shadow-sm);
}
.cert-score .score-pct {
  font-family: var(--font-display); font-size: 2rem;
  font-weight: 900; color: var(--orange); line-height: 1;
}
.cert-score .score-label {
  font-size: 0.72rem; font-weight: 700; color: var(--gray-400);
  text-transform: uppercase; letter-spacing: 0.1em; margin-top: 4px;
}

/* Last updated */
.policy-last-updated {
  font-size: 0.78rem; color: var(--gray-400);
  text-align: right; margin-top: 32px; font-style: italic;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .policies-grid { grid-template-columns: 1fr; }
  .policies-sidebar { position: static; }
  .sidebar-nav { display: none; }
}
@media (max-width: 600px) {
  .policy-section-header { padding: 20px 24px 18px; }
  .policy-body { padding: 24px; }
  .cert-highlight { flex-direction: column; gap: 12px; }
  .cert-scores { flex-direction: column; }
}
