/* ═══════════════════════════════════════════════════════════
   TRADEPRESS V2.0 — legal.css
   ITCSS Layer 3b: Legal page components
   — Compliance Seal banner, TOC sidebar, legal content
   ═══════════════════════════════════════════════════════════ */

/* ── Banner ── */
.banner--legal .banner__card { animation: candleCardIn 1.5s ease-out; }
.banner--legal .candle-overlay { z-index: 2; }
.banner--legal .banner__content { z-index: 3; }
.banner--legal .banner__badge { animation: tpFadeDown 0.8s ease-out 0.8s both; }
.banner--legal .banner__title { animation: tpTitleIn 1s ease-out 1s both; }
.banner--legal .banner__text { animation: tpFadeUp 0.8s ease-out 1.2s both; }

/* ── Compliance Seal overlay ── */
.legal-seal {
  position: absolute; inset: 0; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none; overflow: hidden;
}

/* Pulse rings — ripple expanding outward */
.legal-seal__pulse {
  position: absolute;
  border: 2px solid var(--tp-accent);
  border-radius: 50%;
  opacity: 0;
  animation: legalPulse 3s ease-out infinite;
}
.legal-seal__pulse--1 { width: 80px; height: 80px; animation-delay: 0s; }
.legal-seal__pulse--2 { width: 80px; height: 80px; animation-delay: 1s; }
.legal-seal__pulse--3 { width: 80px; height: 80px; animation-delay: 2s; }

@keyframes legalPulse {
  0%   { width: 80px;  height: 80px;  opacity: 0.35; border-width: 2px; }
  100% { width: 260px; height: 260px; opacity: 0;    border-width: 1px; }
}

/* Core shield */
.legal-seal__core {
  width: 76px; height: 76px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(5,8,20,0.6);
  border: 2px solid rgba(81,223,245,0.3);
  box-shadow: 0 0 20px rgba(81,223,245,0.2);
  animation: legalCorePulse 3s ease-in-out infinite;
  opacity: 0;
  animation: legalCoreIn 0.6s ease-out 0.3s forwards, legalCorePulse 3s ease-in-out 0.9s infinite;
}
.legal-seal__core i {
  font-size: 2rem;
  color: var(--tp-accent);
  filter: drop-shadow(0 0 6px rgba(81,223,245,0.5));
}

@keyframes legalCoreIn {
  from { opacity: 0; transform: scale(0.7); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes legalCorePulse {
  0%, 100% { box-shadow: 0 0 20px rgba(81,223,245,0.2); }
  50%      { box-shadow: 0 0 32px rgba(81,223,245,0.4); }
}

/* Accent dots — N/S/E/W */
.legal-seal__dot {
  position: absolute;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--tp-accent);
  box-shadow: 0 0 8px var(--tp-accent);
  opacity: 0;
  animation: legalDotPulse 3s ease-in-out infinite;
}
.legal-seal__dot--1 { top: 14%;  left: 50%; margin-left: -3px; animation-delay: 0.5s; }
.legal-seal__dot--2 { bottom: 14%; left: 50%; margin-left: -3px; animation-delay: 1.5s; }
.legal-seal__dot--3 { top: 50%; left: 14%;  margin-top: -3px;  animation-delay: 2s; }
.legal-seal__dot--4 { top: 50%; right: 14%; margin-top: -3px;  animation-delay: 2.5s; }

@keyframes legalDotPulse {
  0%, 100% { opacity: 0;   transform: scale(0.5); }
  50%      { opacity: 0.7; transform: scale(1); }
}

/* ── TOC Sidebar ── */
.legal-toc {
  position: sticky;
  top: 90px;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  padding-right: .5rem;
}
.legal-toc__title {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--tp-text-dim);
  margin-bottom: 1rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--tp-border);
}
.legal-toc__link {
  display: block;
  padding: .3rem 0 .3rem .75rem;
  font-size: .82rem;
  color: var(--tp-text-dim);
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.legal-toc__link:hover {
  color: var(--tp-accent);
  border-left-color: var(--tp-accent);
}

/* ── Legal Content ── */
.legal-content { max-width: 780px; }

.legal-content__updated {
  font-size: .85rem;
  color: var(--tp-text-dim);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--tp-border);
}
.legal-content__updated strong { color: var(--tp-text); }

.legal-content__section {
  margin-bottom: 2.5rem;
  scroll-margin-top: 90px;
}
.legal-content__heading {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--tp-text);
  margin-bottom: .75rem;
}
.legal-content__heading-num {
  display: inline-block;
  min-width: 2rem;
  color: var(--tp-accent);
  font-weight: 800;
}
.legal-content__body {
  font-size: .9rem;
  line-height: 1.75;
  color: var(--tp-text-dim);
}
.legal-content__body p { margin-bottom: .8rem; }
.legal-content__body strong { color: var(--tp-text); }

.legal-content__list {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}
.legal-content__list li {
  font-size: .9rem;
  line-height: 1.7;
  color: var(--tp-text-dim);
  margin-bottom: .4rem;
}
.legal-content__list li strong { color: var(--tp-text); }

/* ── Callout box ── */
.legal-callout {
  background: rgba(29,169,248,0.05);
  border: 1px solid rgba(29,169,248,0.15);
  border-left: 3px solid var(--tp-accent);
  border-radius: var(--tp-radius-sm);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}
.legal-callout__title {
  font-size: .82rem;
  font-weight: 700;
  color: var(--tp-accent);
  margin-bottom: .5rem;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.legal-callout__body {
  font-size: .88rem;
  line-height: 1.65;
  color: var(--tp-text-dim);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .legal-seal__pulse { animation-duration: 2s; }
  .legal-seal__core { width: 60px; height: 60px; }
  .legal-seal__core i { font-size: 1.5rem; }
}
@media (max-width: 576px) {
  .legal-seal { display: none; }
}
