/* ==========================================================================
   Disclosure hub — /disclosure/, /disclosure/ra/, /disclosure/pms/

   Follows the Wright Research brand system: white-first canvas, Manrope,
   ink (#1A1A2E) headings over #555 body copy, green as the single accent, the
   3px pink→purple→teal→green gradient line, glass panels, and flat surfaces
   with #EEE hairlines. No dark section backgrounds, no decorative shadows.
   ========================================================================== */

.disclosure-page {
  /* Brand tokens, scoped to this page so the rest of the site is untouched. */
  --wr-white: #ffffff;
  --wr-card: #f7f8fa;
  --wr-ink: #1a1a2e;
  --wr-body: #555555;
  --wr-desc: #777777;
  --wr-muted: #888888;
  /* Design.md caption grey is #999; nudged darker so small label text still
     clears WCAG AA against white. */
  --wr-caption: #767c87;
  --wr-line: #eeeeee;
  --wr-line-2: #e0e0e0;
  --wr-green: #2bb577;
  --wr-green-dark: #1f8657;
  --wr-grad: linear-gradient(90deg, #e84fad 0%, #9b59b6 35%, #3ecfa5 70%, #2bb577 100%);
  --wr-glass: rgba(255, 255, 255, 0.66);
  --wr-glass-line: rgba(255, 255, 255, 0.75);
  --wr-blur: blur(20px) saturate(165%);
  --wr-lift: 0 20px 46px rgba(10, 22, 40, 0.1), 0 3px 10px rgba(10, 22, 40, 0.04);
  /* Site header is sticky at 96px; anchors and the side nav clear it. */
  --wr-sticky-top: 116px;

  position: relative;
  background: var(--wr-white);
  color: var(--wr-body);
  padding-bottom: 72px;
}

/* Ambient ground: the faint brand wash the glass panels refract. */
.disclosure-page__amb {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(620px 420px at 2% 0%, rgba(232, 79, 173, 0.05), transparent 60%),
    radial-gradient(720px 480px at 98% 4%, rgba(43, 181, 119, 0.055), transparent 58%),
    radial-gradient(560px 460px at 50% 98%, rgba(155, 89, 182, 0.04), transparent 64%);
}
.disclosure-page > .container {
  position: relative;
  z-index: 1;
}

.disclosure-page :focus-visible {
  outline: 2px solid var(--wr-green);
  outline-offset: 3px;
  border-radius: 5px;
}
.disclosure-page ::selection {
  background: rgba(43, 181, 119, 0.18);
}

@keyframes wr-rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.disclosure-page .rise {
  animation: wr-rise 0.66s cubic-bezier(0.2, 0.75, 0.3, 1) both;
  animation-delay: var(--d, 0ms);
}
@media (prefers-reduced-motion: reduce) {
  .disclosure-page .rise {
    animation: none;
  }
  .disclosure-page * {
    transition-duration: 0.001ms !important;
  }
}

/* --- Breadcrumb --------------------------------------------------------- */
.disclosure-page .breadcrumb {
  background: transparent;
  padding: 28px 0 0;
  margin: 0 0 24px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--wr-caption);
}
.disclosure-page .breadcrumb-item + .breadcrumb-item::before {
  color: var(--wr-line-2);
  content: "/";
}
.disclosure-page .breadcrumb a {
  color: var(--wr-caption);
  text-decoration: none;
}
.disclosure-page .breadcrumb a:hover,
.disclosure-page .breadcrumb a:focus-visible {
  color: var(--wr-green-dark);
  text-decoration: underline;
}
.disclosure-page .breadcrumb-item.active {
  color: var(--wr-ink);
  font-weight: 700;
}

/* --- Licence switch ----------------------------------------------------- */
.disclosure-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 3px;
  padding: 4px;
  max-width: 100%;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--wr-line);
  -webkit-backdrop-filter: var(--wr-blur);
  backdrop-filter: var(--wr-blur);
}
.disclosure-tabs__item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 11px 20px;
  border-radius: 10px;
  color: var(--wr-muted);
  text-decoration: none;
  transition: 0.18s;
}
.disclosure-tabs__item:hover,
.disclosure-tabs__item:focus-visible {
  color: var(--wr-ink);
  background: rgba(26, 26, 46, 0.05);
  text-decoration: none;
}
.disclosure-tabs__name {
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: inherit;
}
.disclosure-tabs__meta {
  font-size: 11px;
  font-weight: 600;
  color: var(--wr-caption);
  white-space: nowrap;
}
.disclosure-tabs__item.is-active,
.disclosure-tabs__item.is-active:hover {
  background: var(--wr-ink);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(10, 22, 40, 0.2);
}
.disclosure-tabs__item.is-active .disclosure-tabs__meta {
  color: rgba(255, 255, 255, 0.62);
}

/* --- Two-column layout -------------------------------------------------- */
.disclosure-layout {
  display: grid;
  grid-template-columns: minmax(210px, 268px) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
  margin-top: 40px;
}

.disclosure-sidenav {
  position: sticky;
  top: var(--wr-sticky-top);
  border-radius: 18px;
  padding: 20px;
  background: var(--wr-glass);
  border: 1px solid var(--wr-line);
  -webkit-backdrop-filter: var(--wr-blur);
  backdrop-filter: var(--wr-blur);
  box-shadow: 0 1px 2px rgba(10, 22, 40, 0.03);
}
.disclosure-sidenav__label {
  font-size: 9.5px !important;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--wr-caption) !important;
  margin: 0 0 12px !important;
}
.disclosure-sidenav__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.disclosure-sidenav__list li {
  margin: 0;
  font-size: inherit;
}
.policies .disclosure-sidenav__link {
  display: block;
  padding: 9px 12px;
  border-radius: 9px;
  border-left: 2px solid transparent;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--wr-body);
  text-decoration: none;
  transition: 0.15s;
}
.policies .disclosure-sidenav__link:hover,
.policies .disclosure-sidenav__link:focus-visible {
  background: rgba(26, 26, 46, 0.05);
  color: var(--wr-green-dark);
  text-decoration: underline;
}
.policies .disclosure-sidenav__link.is-active {
  border-left-color: var(--wr-green);
  background: rgba(43, 181, 119, 0.09);
  color: var(--wr-ink);
  font-weight: 700;
}

/* --- Sections ----------------------------------------------------------- */
.disclosure-section {
  scroll-margin-top: var(--wr-sticky-top);
  padding-bottom: 48px;
  margin-bottom: 48px;
  border-bottom: 1px solid var(--wr-line);
}
.disclosure-section:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}
.policies h2.disclosure-section__title {
  font-size: clamp(21px, 2.5vw, 28px) !important;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--wr-ink);
  margin: 0 0 20px;
  text-wrap: balance;
}

/* Section bodies were authored as standalone pages; step their headings down
   so the section title stays the most prominent thing in the column. */
.policies .disclosure-section__body h2,
.policies .disclosure-section__body h3 {
  font-size: 16.5px !important;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--wr-ink);
  margin: 32px 0 10px;
}
.policies .disclosure-section__body h4 {
  font-size: 13.5px !important;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--wr-body);
  margin: 22px 0 8px;
}
/* Kill the leading margin on whatever heading opens a section, including
   partials that wrap their content in a div. */
.policies .disclosure-section__body > :first-child,
.policies .disclosure-section__body :is(h2, h3, h4):first-child {
  margin-top: 0;
}

/* --- Body copy ---------------------------------------------------------- */
.policies p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--wr-body);
  margin-bottom: 14px;
}
.policies li {
  font-size: 14px;
  line-height: 1.7;
  color: var(--wr-body);
  margin-bottom: 8px;
}
.policies ul,
.policies ol {
  padding-left: 20px;
  margin-bottom: 16px;
}
/* Legal copy is long; hold it to a comfortable measure. Some partials wrap
   their content in a div, so this matches descendants rather than children. */
.policies h2.disclosure-section__title,
.disclosure-section__body :is(p, ul, ol, dl, h2, h3, h4) {
  max-width: 78ch;
}
/* Tables and the card/panel components lay out on their own grid and need the
   full column back. */
.disclosure-section__body :is(table, .disclosure-facts, .disclosure-reg),
.disclosure-section__body :is(table, .disclosure-facts, .disclosure-reg) :is(p, ul, ol, dl) {
  max-width: none;
}
.policies strong,
.policies b {
  color: var(--wr-ink);
  font-weight: 700;
}
.disclosure-lede {
  font-size: 15px !important;
  line-height: 1.65 !important;
  color: var(--wr-desc) !important;
  max-width: 74ch;
}
.disclosure-section__summary {
  color: var(--wr-muted) !important;
  max-width: 74ch;
}

/* In-text links carry an underline, never colour alone (WCAG 1.4.1). */
.policies a {
  color: var(--wr-green-dark);
}
.policies .right_part :is(p, li, td, th, dd) a,
.policy .card-body :is(p, li, td, th, dd) a {
  color: var(--wr-green-dark);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: currentColor;
  text-underline-offset: 0.14em;
  text-decoration-thickness: 1px;
}
.policies .right_part :is(p, li, td, th, dd) a:hover,
.policies .right_part :is(p, li, td, th, dd) a:focus-visible,
.policies .right_part :is(p, li, td, th, dd) a:active,
.policies .right_part :is(p, li, td, th, dd) a:visited,
.policy .card-body :is(p, li, td, th, dd) a:hover,
.policy .card-body :is(p, li, td, th, dd) a:focus-visible,
.policy .card-body :is(p, li, td, th, dd) a:active,
.policy .card-body :is(p, li, td, th, dd) a:visited {
  color: var(--wr-ink);
  text-decoration: underline !important;
  text-decoration-thickness: 2px;
}

/* --- Glass fact panel --------------------------------------------------- */
.disclosure-facts {
  margin: 0 0 24px;
  border-radius: 18px;
  overflow: hidden;
  background: var(--wr-glass);
  border: 1px solid var(--wr-line);
  -webkit-backdrop-filter: var(--wr-blur);
  backdrop-filter: var(--wr-blur);
  box-shadow: 0 1px 2px rgba(10, 22, 40, 0.03);
  transition: 0.22s;
}
.disclosure-facts:hover {
  box-shadow: var(--wr-lift);
  background: rgba(255, 255, 255, 0.84);
}
.disclosure-facts__row {
  display: grid;
  grid-template-columns: minmax(150px, 220px) minmax(0, 1fr);
  gap: 20px;
  padding: 16px 24px;
  border-bottom: 1px solid rgba(26, 26, 46, 0.07);
}
.disclosure-facts__row:last-child {
  border-bottom: 0;
}
.disclosure-facts dt {
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wr-caption);
  line-height: 1.7;
}
.disclosure-facts dd {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--wr-ink);
}
.disclosure-facts__hint {
  display: block;
  font-weight: 700;
  font-size: 8.5px;
  letter-spacing: 0.14em;
  color: var(--wr-line-2);
}

/* --- Payment details (#upi) --------------------------------------------- */
.wr-pay-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin: 0 0 16px;
}
.wr-pay-card {
  border-radius: 16px;
  padding: 18px 22px;
  background: var(--wr-card);
  border: 1px solid var(--wr-line);
}
.policies .disclosure-section__body .wr-pay-card h3 {
  margin: 0 0 8px;
}
.wr-pay-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(26, 26, 46, 0.07);
  font-size: 14px;
}
.wr-pay-row:last-child {
  border-bottom: 0;
}
.wr-pay-row span:first-child {
  flex-shrink: 0;
  white-space: nowrap;
  color: var(--wr-caption);
}
.wr-pay-row span:last-child {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-weight: 600;
  color: var(--wr-ink);
  text-align: right;
  overflow-wrap: anywhere;
}
.policies p.wr-pay-warn {
  background: #fff7ec;
  border: 1px solid #f3d3a4;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 13px;
  max-width: none;
}

/* --- Registration callout ----------------------------------------------- */
.disclosure-reg {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
  margin: 0 0 24px;
}
.disclosure-reg__item {
  border-radius: 16px;
  padding: 20px 22px;
  background: var(--wr-card);
  border: 1px solid var(--wr-line);
  transition: 0.22s;
}
.disclosure-reg__item:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(10, 22, 40, 0.08);
  background: #ffffff;
}
.policies .disclosure-reg__label {
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--wr-green-dark);
  margin-bottom: 10px;
}
.policies .disclosure-reg__value {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--wr-ink);
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}
.policies .disclosure-reg__meta {
  font-size: 12px;
  color: var(--wr-muted);
  margin-bottom: 0;
}

/* --- Tables ------------------------------------------------------------- */
.policies .disclosure-section__body table {
  width: 100%;
  margin: 0 0 22px;
  border-collapse: collapse;
  border: 0;
  background: transparent;
  border-top: 2px solid var(--wr-ink);
}
.policies .disclosure-section__body table caption,
.disclosure-table__caption {
  caption-side: top;
  font-size: 12px;
  line-height: 1.6;
  color: var(--wr-muted);
  padding: 0 0 10px;
  text-align: left;
}
.policies .disclosure-section__body th,
.policies .disclosure-section__body td {
  border: 0;
  border-bottom: 1px solid var(--wr-line);
  padding: 12px 14px 12px 0;
  vertical-align: top;
  font-size: 13px;
  line-height: 1.6;
  color: var(--wr-body);
  background: transparent;
}
.policies .disclosure-section__body thead th {
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--wr-caption);
}
/* Some legacy policy tables put their header row in <tbody> with no <thead>.
   Style that first row as a header only when the table really has none —
   otherwise this would repaint a genuine first data row as a label. */
.policies .disclosure-section__body table:not(:has(thead)) > tbody > tr:first-child > td {
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--wr-caption);
}
.policies .disclosure-section__body tbody th[scope="row"] {
  font-weight: 700;
  color: var(--wr-ink);
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
}
.policies .disclosure-section__body tbody tr:hover {
  background: rgba(255, 255, 255, 0.7);
}
.policies .disclosure-section__body table p {
  margin: 0;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}
/* The regulatory-and-compliance table keeps the ink header band from the
   brand reference sheet. */
.policies .disclosure-table--dark-head {
  border-top: 0;
}
.policies .disclosure-section__body .disclosure-table--dark-head thead th {
  background: var(--wr-ink);
  color: #ffffff;
  padding: 14px;
  border-bottom: 0;
}
.policies .disclosure-table--dark-head thead th:first-child {
  border-top-left-radius: 10px;
}
.policies .disclosure-table--dark-head thead th:last-child {
  border-top-right-radius: 10px;
}
.policies .disclosure-section__body .disclosure-table--dark-head td {
  padding-left: 14px;
}

/* Wide tables scroll inside their own box, never the page. */
.disclosure-section__body {
  overflow-x: auto;
}

/* --- Buttons ------------------------------------------------------------ */
.policies .disclosure-section__body .btn,
.policies .disclosure-section__body .btn-dark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 22px;
  border-radius: 9px;
  border: 0;
  background: var(--wr-green);
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  transition: 0.18s;
}
.policies .disclosure-section__body .btn:hover,
.policies .disclosure-section__body .btn:focus-visible,
.policies .disclosure-section__body .btn-dark:hover,
.policies .disclosure-section__body .btn-dark:focus-visible {
  background: var(--wr-green-dark);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(43, 181, 119, 0.34);
  text-decoration: none;
}

/* --- Responsive --------------------------------------------------------- */
@media (max-width: 991px) {
  .disclosure-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
  .disclosure-sidenav {
    position: static;
  }
  .disclosure-sidenav__list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }
  .policies .disclosure-sidenav__link {
    border-left: 0;
    border: 1px solid var(--wr-line-2);
    border-radius: 999px;
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.7);
    font-size: 12.5px;
  }
  .policies .disclosure-sidenav__link.is-active {
    background: var(--wr-ink);
    border-color: var(--wr-ink);
    color: #ffffff;
  }
}

@media (max-width: 767px) {
  .disclosure-page {
    --wr-sticky-top: 88px;
  }
  .disclosure-tabs {
    display: flex;
    width: 100%;
  }
  .disclosure-tabs__item {
    flex: 1 1 100%;
    padding: 11px 16px;
  }
  .disclosure-facts__row {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    padding: 14px 18px;
  }
  .policies .disclosure-section__body th,
  .policies .disclosure-section__body td {
    padding-right: 10px;
    font-size: 12.5px;
  }
}
