/* ==========================================================================
   Adhyarth Wealth & Asset Management — POLICIES Page Styles
   Matches global style.css definitions and variables.
   ========================================================================== */

/* ---------- PAGE HERO ---------- */
.page-hero {
  padding: 120px 0 80px;
  background: var(--ivory);
  border-bottom: 1px solid var(--line);
}
.page-hero .wrap {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.page-hero .eyebrow {
  margin-bottom: 16px;
  display: inline-block;
}
.page-hero h1 {
  font-size: clamp(32px, 4vw, 48px);
  margin-bottom: 24px;
}
.page-hero h1 em {
  font-style: normal;
  color: var(--gold);
}
.page-hero .sub {
  font-size: 17px;
  color: var(--charcoal-soft);
  margin-bottom: 32px;
}
.page-hero .meta-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13.5px;
  color: var(--charcoal);
  background: var(--warm-white);
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  display: inline-flex;
  text-align: center;
}

/* ---------- POLICIES LAYOUT (1/3 Left, 2/3 Right) ---------- */
.policies-section {
  padding: 80px 0;
}
.policies-layout {
  display: grid;
  grid-template-columns: 1fr 2fr; /* Creates the strict 1/3 and 2/3 ratio */
  gap: 64px;
  align-items: start;
}

/* ---------- LEFT SIDEBAR NAV ---------- */
.policy-nav {
  position: sticky;
  top: 100px; /* Sticks to the top when scrolling, below the header */
  background: var(--warm-white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 24px;
  box-shadow: 0 10px 30px -15px rgba(13, 27, 61, 0.05);
}
.policy-nav-head {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--navy);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.policy-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.policy-nav-list a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--charcoal-soft);
  transition: all 0.25s ease;
}
.policy-nav-list a .num {
  font-family: 'Manrope', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--gold);
}
.policy-nav-list a:hover {
  background: var(--ivory);
  color: var(--navy);
}
.policy-nav-list a.active {
  background: var(--navy);
  color: var(--warm-white);
}

/* ---------- RIGHT CONTENT AREA ---------- */
.policy-content {
  min-height: 500px;
}

/* Tab Panels Handling */
.policy-panel {
  display: none; /* Hidden by default, toggled by JS */
  animation: fadeSlideUp 0.4s ease forwards;
}
.policy-panel.active {
  display: block;
}

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Panel Header */
.policy-panel-head {
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.policy-panel-head .section-num {
  font-family: 'Manrope', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 12px;
}
.policy-panel-head h2 {
  font-size: 32px;
  margin-bottom: 10px;
}
.policy-panel-head .updated {
  font-size: 13.5px;
  color: var(--sage);
}

/* Block Content Formatting */
.policy-block {
  margin-bottom: 36px;
}
.policy-block h3 {
  font-size: 20px;
  margin-bottom: 14px;
}
.policy-block p {
  font-size: 15.5px;
  color: var(--charcoal-soft);
  margin-bottom: 16px;
  line-height: 1.75;
}
.policy-block ul {
  padding-left: 20px;
  margin-bottom: 16px;
}
.policy-block ul li {
  font-size: 15.5px;
  color: var(--charcoal-soft);
  margin-bottom: 10px;
  line-height: 1.6;
}
.policy-block ul li strong {
  color: var(--navy);
}

/* Callout Notes */
.policy-note {
  background: var(--ivory);
  border-left: 4px solid var(--gold);
  padding: 18px 24px;
  border-radius: 0 8px 8px 0;
  font-size: 14.5px;
  color: var(--charcoal);
  line-height: 1.6;
  margin: 20px 0;
}
.policy-note.warn {
  border-left-color: var(--navy);
}

/* Definition Lists */
dl.policy-deflist dt {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--navy);
  margin-top: 24px;
  margin-bottom: 6px;
}
dl.policy-deflist dd {
  font-size: 15px;
  color: var(--charcoal-soft);
  margin-left: 0;
  line-height: 1.65;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(13, 27, 61, 0.06);
}
dl.policy-deflist dd:last-child {
  border-bottom: none;
}

/* Escalation Order Lists */
ol.escalation {
  list-style: none;
  padding: 0;
  margin: 24px 0;
}
ol.escalation li {
  display: flex;
  gap: 18px;
  margin-bottom: 28px;
}
ol.escalation .level {
  width: 36px;
  height: 36px;
  background: var(--navy);
  color: var(--warm-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
}
ol.escalation h4 {
  font-size: 17px;
  margin-bottom: 6px;
}
ol.escalation p {
  font-size: 14.5px;
  margin-bottom: 0;
}

/* Links */
.policy-links a {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 4px;
  margin-right: 20px;
  transition: color 0.25s ease;
}
.policy-links a:hover {
  color: var(--gold);
}

/* Tables */
.policy-table-wrap {
  overflow-x: auto;
  margin: 20px 0;
}
table.reg-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  text-align: left;
}
table.reg-table caption {
  text-align: left;
  font-size: 13px;
  color: var(--sage);
  margin-bottom: 10px;
  font-style: italic;
}
table.reg-table th, table.reg-table td {
  border: 1px solid var(--line);
  padding: 14px 16px;
}
table.reg-table th {
  background: var(--ivory);
  font-weight: 600;
  color: var(--navy);
}
table.reg-table td.num {
  font-family: 'Inter', sans-serif;
  color: var(--charcoal);
}

/* Accessibility */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ---------- RESPONSIVE STYLES ---------- */
@media (max-width: 980px) {
  .policies-layout {
    grid-template-columns: 1fr; /* Stacks the sidebar on top of the content on mobile */
    gap: 40px;
  }
  .policy-nav {
    position: static; /* Removes sticky behavior for mobile */
    padding: 20px;
  }
  .policy-nav-list {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .policy-nav-list a {
    background: var(--ivory);
    border: 1px solid var(--line);
    padding: 10px 14px;
  }
}
