.site-nav a[aria-current="page"],
.site-mobile-nav a[aria-current="page"],
.site-footer-column a[aria-current="page"] {
  color: #ffffff;
}

.site-nav a[aria-current="page"]::after {
  content: "";
  display: block;
  width: 100%;
  height: 2px;
  margin-top: 8px;
  background: rgba(92, 138, 255, 0.92);
  border-radius: 999px;
}

.site-subpage {
  background:
    radial-gradient(circle at top, rgba(28, 103, 255, 0.08), transparent 26%),
    linear-gradient(180deg, #08111d 0%, #0b1420 22%, #f5f8fc 22.1%, #f5f8fc 100%);
}

.site-subpage .site-main {
  gap: 0;
}

.page-hero-section,
.page-detail-section,
.site-subpage .site-footer-section {
  padding: 20px 0;
}

.page-hero-shell {
  display: grid;
  gap: 16px;
  padding: 24px 20px 20px;
  border: 1px solid rgba(42, 96, 194, 0.14);
  border-radius: 12px;
  background:
    radial-gradient(circle at top left, rgba(78, 127, 227, 0.18), transparent 26%),
    linear-gradient(180deg, #0a1320 0%, #060d16 100%);
  box-shadow: 0 20px 42px rgba(10, 21, 42, 0.18);
}

.page-hero-shell h1,
.page-detail-head h2,
.page-card strong,
.page-note-card strong {
  margin: 0;
  font-family: "Public Sans", sans-serif;
  letter-spacing: -0.045em;
}

.page-hero-shell h1 {
  max-width: 12ch;
  color: #ffffff;
  font-size: clamp(2rem, 7vw, 3.6rem);
  line-height: 0.96;
}

.page-hero-shell p,
.page-detail-head p,
.page-card p,
.page-note-card p {
  margin: 0;
  color: rgba(234, 241, 252, 0.78);
  font-size: 0.94rem;
  line-height: 1.54;
}

.page-hero-actions,
.page-highlights,
.page-card-grid,
.page-note-grid,
.page-links-grid {
  display: grid;
}

.page-hero-actions {
  gap: 10px;
}

.page-highlights {
  gap: 8px;
}

.page-highlights span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  width: fit-content;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  color: rgba(239, 245, 255, 0.84);
  font-size: 0.75rem;
  font-weight: 700;
}

.page-detail-head {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.page-detail-head h2 {
  color: #0d1827;
  max-width: 14ch;
  font-size: clamp(1.68rem, 5vw, 2.5rem);
  line-height: 1.08;
  overflow: visible;
  text-wrap: balance;
}

.page-detail-head p {
  max-width: 42rem;
  color: rgba(15, 26, 40, 0.66);
}

.page-card-grid,
.page-note-grid,
.page-links-grid {
  gap: 12px;
}

.page-card,
.page-note-card,
.page-link-card {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid rgba(15, 27, 45, 0.08);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 16px 30px rgba(15, 22, 36, 0.06);
}

.page-card strong,
.page-note-card strong,
.page-link-card strong {
  color: #0d1827;
  font-size: 1.06rem;
  line-height: 1.08;
}

.page-card p,
.page-note-card p,
.page-link-card p {
  color: rgba(15, 26, 40, 0.68);
  font-size: 0.88rem;
}

.page-link-card {
  align-content: start;
}

.page-link-card a {
  color: #2f68de;
  font-size: 0.88rem;
  font-weight: 800;
}

.page-link-card a:hover {
  color: #1f56c9;
}

.page-panel-shell {
  border: 1px solid rgba(15, 27, 45, 0.08);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 16px 30px rgba(15, 22, 36, 0.06);
  overflow: hidden;
}

.page-panel-shell .clarity-shell,
.page-panel-shell .platform-shell,
.page-panel-shell .support-shell,
.page-panel-shell .faq-shell {
  border-radius: 0;
  box-shadow: none;
  border: 0;
}

.page-panel-shell .support-shell {
  background:
    radial-gradient(circle at top right, rgba(42, 93, 191, 0.18), transparent 28%),
    linear-gradient(180deg, #0b1422 0%, #070d16 100%);
}

.page-panel-shell .faq-shell {
  background: linear-gradient(180deg, #0b1422 0%, #070d16 100%);
}

.page-panel-shell .faq-head h2,
.page-panel-shell .support-copy h2,
.page-panel-shell .platform-copy h2 {
  color: #ffffff;
}

.page-panel-shell .faq-head p,
.page-panel-shell .support-copy p,
.page-panel-shell .platform-copy p {
  color: rgba(239, 245, 255, 0.72);
}

.page-panel-shell-light .platform-shell {
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

.page-panel-shell-light .platform-copy h2,
.page-panel-shell-light .platform-copy p {
  color: inherit;
}

@media (min-width: 920px) {
  .page-hero-shell {
    grid-template-columns: minmax(0, 0.95fr) minmax(260px, 0.8fr);
    align-items: end;
  }

  .page-hero-actions {
    width: min(300px, 100%);
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-highlights {
    align-content: start;
  }

  .page-card-grid,
  .page-note-grid,
  .page-links-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.page-stat-strip,
.page-policy-grid,
.page-tier-grid,
.page-role-grid,
.page-mini-grid,
.symbols-group-grid,
.symbols-panel-grid,
.page-cta-shell,
.page-check-grid {
  display: grid;
  gap: 12px;
}

.page-stat-card,
.page-policy-card,
.page-tier-card,
.page-role-card,
.page-mini-card,
.symbols-panel-card,
.page-cta-shell,
.page-check-card {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid rgba(15, 27, 45, 0.08);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 16px 30px rgba(15, 22, 36, 0.06);
}

.page-stat-card strong,
.page-policy-card strong,
.page-tier-card strong,
.page-role-card strong,
.page-mini-card strong,
.symbols-panel-card strong,
.page-cta-shell strong,
.page-check-card strong {
  color: #0d1827;
  font-size: 1.06rem;
  line-height: 1.08;
}

.page-stat-value {
  color: #0d1827;
  font-family: "Public Sans", sans-serif;
  font-size: clamp(1.7rem, 5vw, 2.7rem);
  line-height: 0.92;
  letter-spacing: -0.05em;
}

.page-stat-label,
.page-policy-card p,
.page-tier-card p,
.page-role-card p,
.page-mini-card p,
.symbols-panel-card p,
.page-cta-shell p,
.page-check-card p {
  margin: 0;
  color: rgba(15, 26, 40, 0.68);
  font-size: 0.9rem;
  line-height: 1.5;
}

.page-chip-list,
.symbols-chip-list,
.symbols-inline-list,
.page-point-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-chip-list span,
.symbols-chip-list span,
.symbols-inline-list span,
.page-point-list span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 8px;
  background: rgba(15, 27, 45, 0.05);
  color: rgba(15, 26, 40, 0.74);
  font-size: 0.78rem;
  font-weight: 700;
}

.page-list {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.page-list li {
  position: relative;
  padding-left: 16px;
  color: rgba(15, 26, 40, 0.72);
  font-size: 0.9rem;
  line-height: 1.45;
}

.page-list li::before {
  content: "";
  position: absolute;
  top: 0.5rem;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #2f68de;
}

.page-table-shell {
  overflow-x: auto;
  border: 1px solid rgba(15, 27, 45, 0.08);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 16px 30px rgba(15, 22, 36, 0.06);
}

.page-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
}

.page-table th,
.page-table td {
  padding: 16px 18px;
  text-align: left;
  border-bottom: 1px solid rgba(15, 27, 45, 0.08);
  vertical-align: top;
}

.page-table th {
  color: rgba(15, 26, 40, 0.58);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-table td {
  color: rgba(15, 26, 40, 0.78);
  font-size: 0.9rem;
  line-height: 1.45;
}

.page-table tr:last-child td {
  border-bottom: 0;
}

.page-table strong {
  color: #0d1827;
  font-size: 0.98rem;
}

.symbols-group-card {
  align-content: start;
}

.symbols-group-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.symbols-group-icon-crypto { background: linear-gradient(145deg, #d58f18 0%, #ffb13c 100%); }
.symbols-group-icon-fx { background: linear-gradient(145deg, #2450b8 0%, #4c86ff 100%); }
.symbols-group-icon-indices { background: linear-gradient(145deg, #214b34 0%, #2f915c 100%); }
.symbols-group-icon-metals { background: linear-gradient(145deg, #5e4b1b 0%, #d3a244 100%); }

.symbols-panel-shell {
  padding: 20px;
}

.symbols-panel-head {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.symbols-panel-head h2 {
  margin: 0;
  color: #0d1827;
  max-width: 15ch;
  font-family: "Public Sans", sans-serif;
  font-size: clamp(1.7rem, 5vw, 2.5rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.symbols-panel-head p {
  margin: 0;
  color: rgba(15, 26, 40, 0.66);
  font-size: 0.92rem;
  line-height: 1.5;
}

.page-tier-card.is-featured,
.page-role-card.is-featured,
.page-check-card.is-featured {
  border-color: rgba(47, 104, 222, 0.18);
  background:
    radial-gradient(circle at top right, rgba(47, 104, 222, 0.08), transparent 34%),
    #ffffff;
}

.page-card-grid.page-card-grid-three,
.page-tier-grid,
.page-role-grid,
.page-stat-strip,
.page-policy-grid,
.symbols-panel-grid,
.page-mini-grid,
.page-check-grid {
  grid-template-columns: 1fr;
}

@media (min-width: 760px) {
  .page-stat-strip,
  .page-policy-grid,
  .page-mini-grid,
  .page-check-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-tier-grid,
  .page-role-grid,
  .symbols-panel-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 980px) {
  .page-card-grid.page-card-grid-three,
  .page-stat-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .page-policy-grid,
  .page-mini-grid,
  .page-check-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-tier-grid,
  .page-role-grid,
  .symbols-group-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.rules-page {
  background:
    linear-gradient(180deg, #07111d 0%, #0a131d 18%, #eef2f6 18.1%, #eef2f6 100%);
}

.rules-page .page-hero-section,
.rules-page .page-detail-section,
.rules-page .site-footer-section {
  padding: 18px 0;
}

.rules-page .page-hero-shell {
  gap: 18px;
  padding: 28px 24px 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(18, 26, 39, 0.98) 0%, rgba(10, 15, 24, 1) 100%);
  box-shadow: none;
}

.rules-page .page-hero-copy {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.rules-page .page-hero-shell h1 {
  max-width: 16ch;
  line-height: 1.04;
  overflow: visible;
}

.rules-page .page-hero-shell p {
  max-width: 38rem;
  color: rgba(225, 233, 244, 0.7);
  line-height: 1.6;
}

.rules-page .page-hero-copy .eyebrow {
  min-height: 28px;
  padding: 0 10px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(220, 228, 240, 0.84);
  letter-spacing: 0.12em;
}

.rules-page .page-detail-head .eyebrow {
  min-height: 28px;
  padding: 0 10px;
  border-radius: 4px;
  background: #f1f4f8;
  border: 1px solid rgba(12, 24, 38, 0.08);
  color: rgba(31, 47, 67, 0.78);
  letter-spacing: 0.12em;
}

.rules-page .page-highlights {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.rules-page .page-highlights span {
  width: 100%;
  min-height: 0;
  justify-content: flex-start;
  padding: 12px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(234, 239, 248, 0.86);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  line-height: 1.35;
  white-space: normal;
}

.rules-page .page-detail-head {
  position: relative;
  z-index: 1;
  gap: 10px;
  margin-bottom: 16px;
  padding: 16px 18px 18px;
  border: 1px solid rgba(12, 24, 38, 0.08);
  border-radius: 8px;
  background: #ffffff;
  overflow: visible;
}

.rules-page .page-detail-head h2 {
  max-width: min(22ch, 100%);
  color: #0c1624;
  font-size: clamp(1.62rem, 4.1vw, 2.2rem);
  line-height: 1.16;
  overflow: visible;
  text-wrap: balance;
}

.rules-page .page-detail-head p {
  max-width: 46rem;
  color: rgba(14, 24, 38, 0.64);
  line-height: 1.62;
}

.rules-page .page-table-shell {
  border: 1px solid rgba(12, 24, 38, 0.12);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: none;
}

.rules-page .page-table th {
  background: #f2f5f8;
  color: rgba(53, 68, 88, 0.8);
  border-bottom-color: rgba(12, 24, 38, 0.1);
}

.rules-page .page-table td {
  color: rgba(17, 28, 43, 0.78);
  border-bottom-color: rgba(12, 24, 38, 0.08);
}

.rules-page .page-table td:first-child strong {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border-radius: 4px;
  background: #f3f6fa;
  border: 1px solid rgba(12, 24, 38, 0.08);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rules-page .page-policy-grid {
  counter-reset: rules-risk;
}

.rules-page .page-policy-card,
.rules-page .page-check-card,
.rules-page .page-cta-shell {
  align-content: start;
  gap: 12px;
  padding: 18px;
  border-radius: 8px;
  border: 1px solid rgba(12, 24, 38, 0.1);
  background: #ffffff;
  box-shadow: none;
}

.rules-page .page-policy-card {
  position: relative;
}

.rules-page .page-policy-card::before {
  counter-increment: rules-risk;
  content: "0" counter(rules-risk);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  border: 1px solid rgba(12, 24, 38, 0.1);
  background: #f3f6fa;
  color: rgba(57, 72, 91, 0.72);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.rules-page .page-policy-card strong,
.rules-page .page-check-card strong,
.rules-page .page-cta-shell strong {
  display: block;
  color: #0d1827;
  font-size: 1rem;
  line-height: 1.2;
}

.rules-page .page-policy-card p,
.rules-page .page-check-card p,
.rules-page .page-cta-shell p,
.rules-page .page-list li {
  color: rgba(17, 28, 43, 0.7);
}

.rules-page .page-list li::before {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: #1d59c8;
}

.rules-page .page-check-card.is-featured {
  border-color: rgba(29, 89, 200, 0.16);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.rules-page .page-cta-shell {
  align-items: start;
  background: linear-gradient(180deg, #0c1420 0%, #0a1119 100%);
  border-color: rgba(255, 255, 255, 0.08);
}

.rules-page .page-cta-shell strong {
  color: #ffffff;
}

.rules-page .page-cta-shell p {
  color: rgba(228, 235, 244, 0.72);
  max-width: 42rem;
}

.rules-page .page-cta-shell .page-hero-actions {
  width: min(340px, 100%);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 920px) {
  .rules-page .page-hero-shell {
    grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.72fr);
    align-items: start;
  }
}

@media (max-width: 759px) {
  .rules-page .page-highlights {
    grid-template-columns: 1fr;
  }

  .rules-page .page-hero-shell {
    padding: 24px 18px 18px;
  }

  .rules-page .page-hero-shell h1,
  .rules-page .page-detail-head h2 {
    max-width: none;
  }

  .rules-page .page-cta-shell .page-hero-actions {
    grid-template-columns: 1fr;
  }
}
