:root {
  --tl-legal-bg: #020614;
  --tl-legal-panel: rgba(5, 11, 28, 0.84);
  --tl-legal-panel-2: rgba(8, 16, 38, 0.74);
  --tl-legal-line: rgba(87, 131, 255, 0.25);
  --tl-legal-blue: #1687ff;
  --tl-legal-cyan: #22e6ff;
  --tl-legal-purple: #8b36ff;
  --tl-legal-magenta: #c02cff;
  --tl-legal-text: #f5f8ff;
  --tl-legal-muted: rgba(222, 230, 247, 0.70);
  --tl-legal-soft: rgba(167, 185, 218, 0.70);
}

body.tl-legal-body {
  background: var(--tl-legal-bg);
}

.tl-legal-page,
.tl-legal-page * { box-sizing: border-box; }

.tl-legal-page {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  color: var(--tl-legal-text);
  background:
    radial-gradient(circle at 10% 2%, rgba(0, 132, 255, 0.14), transparent 27%),
    radial-gradient(circle at 92% 10%, rgba(192, 44, 255, 0.12), transparent 28%),
    linear-gradient(180deg, #020614 0%, #030817 52%, #020614 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

.tl-legal-glow {
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.14;
  pointer-events: none;
}
.tl-legal-glow-a { left: -280px; top: 110px; background: #0087ff; }
.tl-legal-glow-b { right: -300px; top: 420px; background: #9d2eff; }

.tl-legal-shell {
  position: relative;
  width: min(1520px, calc(100vw - 64px));
  margin: 0 auto;
  padding: 48px 0 72px;
}

.tl-legal-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.55fr);
  gap: 30px;
  padding: 38px;
  border-radius: 28px;
  border: 1px solid rgba(70, 122, 255, 0.34);
  background:
    linear-gradient(125deg, rgba(7, 18, 43, 0.96), rgba(5, 9, 25, 0.91)),
    radial-gradient(circle at 16% 0%, rgba(0, 159, 255, 0.22), transparent 34%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.05),
    0 26px 72px rgba(0,0,0,0.30),
    0 0 36px rgba(0, 130, 255, 0.07);
  overflow: hidden;
}

.tl-legal-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, transparent 58%, rgba(119, 50, 255, 0.08));
}

.tl-legal-hero-copy,
.tl-legal-trust-card { position: relative; z-index: 1; }

.tl-legal-eyebrow,
.tl-legal-document-kicker {
  color: var(--tl-legal-cyan);
  font-size: 12px;
  line-height: 1;
  font-weight: 850;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.tl-legal-title {
  margin: 14px 0 0;
  max-width: 980px;
  color: #fff;
  font-size: clamp(44px, 5.3vw, 78px);
  line-height: 0.98;
  font-weight: 880;
  letter-spacing: -0.055em;
}

.tl-legal-title span {
  background: linear-gradient(92deg, #1aa2ff 0%, #337cff 34%, #8a35ff 68%, #d12cff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tl-legal-subtitle {
  margin: 18px 0 0;
  max-width: 920px;
  color: rgba(235, 241, 255, 0.74);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 470;
}

.tl-legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.tl-legal-meta span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 11px;
  border-radius: 999px;
  color: rgba(238,244,255,0.82);
  background: rgba(7, 19, 43, 0.66);
  border: 1px solid rgba(82, 128, 255, 0.24);
  font-size: 11.2px;
  line-height: 1;
  font-weight: 720;
}

.tl-legal-trust-card {
  align-self: stretch;
  padding: 24px;
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(6, 18, 43, 0.86), rgba(16, 10, 43, 0.72));
  border: 1px solid rgba(98, 119, 255, 0.30);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 14px 42px rgba(0,0,0,0.24);
}

.tl-legal-trust-icon,
.tl-legal-intro-icon,
.tl-legal-section-icon {
  display: grid;
  place-items: center;
  color: #fff;
  background: radial-gradient(circle at 35% 30%, rgba(34,230,255,0.18), rgba(63,76,255,0.10) 54%, rgba(166,43,255,0.10));
  border: 1px solid rgba(34, 230, 255, 0.52);
  box-shadow: 0 0 20px rgba(0, 144, 255, 0.12);
}

.tl-legal-trust-icon { width: 50px; height: 50px; border-radius: 16px; font-size: 22px; }
.tl-legal-trust-card h2 { margin: 16px 0 0; font-size: 22px; letter-spacing: -0.035em; }
.tl-legal-trust-list { display: grid; gap: 10px; margin-top: 18px; }
.tl-legal-trust-list div { display: grid; grid-template-columns: 20px 1fr; gap: 9px; align-items: start; color: var(--tl-legal-muted); font-size: 13px; line-height: 1.35; }
.tl-legal-trust-list i { font-style: normal; color: var(--tl-legal-cyan); font-weight: 900; }

.tl-legal-intro {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 16px;
  align-items: center;
  margin-top: 18px;
  padding: 20px 24px;
  border-radius: 20px;
  background: rgba(6, 14, 34, 0.72);
  border: 1px solid rgba(75, 129, 255, 0.24);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
.tl-legal-intro-icon { width: 48px; height: 48px; border-radius: 15px; }
.tl-legal-intro strong { display: block; color: #fff; font-size: 15px; line-height: 1.3; }
.tl-legal-intro p { margin: 5px 0 0; color: var(--tl-legal-muted); font-size: 13px; line-height: 1.48; }

.tl-legal-document {
  margin-top: 20px;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid rgba(87, 131, 255, 0.28);
  background: rgba(3, 9, 24, 0.78);
  box-shadow: 0 24px 68px rgba(0,0,0,0.26), inset 0 1px 0 rgba(255,255,255,0.04);
}

.tl-legal-document-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 27px 30px;
  background: linear-gradient(90deg, rgba(7,18,43,0.94), rgba(12,8,37,0.88));
  border-bottom: 1px solid rgba(87, 131, 255, 0.20);
}

.tl-legal-document-head h2 {
  margin: 9px 0 0;
  color: #fff;
  font-size: 25px;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.tl-legal-hash {
  flex: 0 0 auto;
  min-width: 160px;
  padding: 10px 12px;
  border-radius: 13px;
  text-align: right;
  background: rgba(3, 10, 27, 0.62);
  border: 1px solid rgba(112, 136, 255, 0.20);
}
.tl-legal-hash span { display: block; color: rgba(197,210,236,0.52); font-size: 9px; letter-spacing: .14em; font-weight: 850; }
.tl-legal-hash code { display: block; margin-top: 4px; color: var(--tl-legal-cyan); font-size: 11px; }

.tl-legal-section-list { display: grid; }

.tl-legal-section {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 18px;
  padding: 25px 30px;
  border-bottom: 1px solid rgba(104, 138, 218, 0.13);
  background: linear-gradient(180deg, rgba(7,14,32,0.42), rgba(4,9,22,0.26));
}
.tl-legal-section:last-child { border-bottom: 0; }
.tl-legal-section:hover { background: linear-gradient(180deg, rgba(10,19,43,0.55), rgba(5,10,25,0.36)); }
.tl-legal-section-icon { width: 42px; height: 42px; border-radius: 13px; font-size: 18px; }

.tl-legal-section-body h3 {
  margin: 0;
  color: #fff;
  font-size: 17px;
  line-height: 1.25;
  letter-spacing: -0.025em;
}
.tl-legal-section-body h3 small {
  display: inline-flex;
  margin-right: 10px;
  color: var(--tl-legal-cyan);
  font-size: 10px;
  letter-spacing: .10em;
  vertical-align: 2px;
}
.tl-legal-section-body p,
.tl-legal-list {
  margin: 10px 0 0;
  color: rgba(221, 230, 248, 0.72);
  font-size: 13.4px;
  line-height: 1.62;
  font-weight: 430;
}
.tl-legal-section-body a { color: #57c8ff; text-decoration: none; font-weight: 700; }
.tl-legal-section-body a:hover, .tl-legal-section-body a:focus-visible { color: #fff; text-decoration: underline; outline: none; }
.tl-legal-list { padding-left: 19px; }
.tl-legal-list li { margin: 6px 0; padding-left: 3px; }
.tl-legal-list li::marker { color: var(--tl-legal-cyan); }
.tl-legal-gap { height: 1px; }

.tl-legal-candidate-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 18px;
  padding: 15px 18px;
  border-radius: 15px;
  color: rgba(218,227,246,0.70);
  background: rgba(112, 72, 255, 0.07);
  border: 1px solid rgba(153, 83, 255, 0.20);
  font-size: 11.8px;
  line-height: 1.45;
}
.tl-legal-candidate-note strong { color: #fff; flex: 0 0 auto; }

.tl-legal-page[data-content-integrity="FAIL"] .tl-legal-document {
  outline: 2px solid #ff5964;
  outline-offset: 2px;
}

@media (max-width: 1050px) {
  .tl-legal-shell { width: min(100% - 36px, 980px); padding-top: 32px; }
  .tl-legal-hero { grid-template-columns: 1fr; padding: 30px; }
  .tl-legal-trust-card { max-width: none; }
}

@media (max-width: 700px) {
  .tl-legal-shell { width: 100%; padding: 18px 14px 42px; }
  .tl-legal-hero { padding: 22px 18px; border-radius: 22px; gap: 18px; }
  .tl-legal-title { font-size: clamp(38px, 12vw, 54px); }
  .tl-legal-subtitle { font-size: 14px; line-height: 1.48; }
  .tl-legal-meta span { min-height: 28px; font-size: 10.5px; }
  .tl-legal-trust-card { padding: 19px; border-radius: 18px; }
  .tl-legal-intro { grid-template-columns: 44px 1fr; padding: 17px 16px; border-radius: 17px; }
  .tl-legal-intro-icon { width: 40px; height: 40px; border-radius: 12px; }
  .tl-legal-document { border-radius: 20px; }
  .tl-legal-document-head { display: grid; gap: 14px; padding: 20px 18px; }
  .tl-legal-hash { min-width: 0; width: 100%; text-align: left; }
  .tl-legal-section { grid-template-columns: 1fr; gap: 11px; padding: 20px 18px; }
  .tl-legal-section-icon { width: 38px; height: 38px; border-radius: 12px; }
  .tl-legal-section-body h3 { font-size: 16px; }
  .tl-legal-section-body p, .tl-legal-list { font-size: 12.9px; line-height: 1.58; }
  .tl-legal-candidate-note { display: grid; padding: 14px 15px; }
}

@media (prefers-reduced-motion: reduce) {
  .tl-legal-page *, .tl-legal-page *::before, .tl-legal-page *::after { scroll-behavior: auto !important; transition: none !important; }
}

@media print {
  .tl-global-website-header, .tl-global-site-footer, .tl-global-mobile-menu { display: none !important; }
  body.tl-native-site-shell { padding-top: 0 !important; }
  .tl-legal-page { background: #fff !important; color: #111 !important; }
  .tl-legal-shell { width: 100% !important; padding: 0 !important; }
  .tl-legal-hero, .tl-legal-intro, .tl-legal-document { box-shadow: none !important; background: #fff !important; border-color: #ddd !important; }
  .tl-legal-title, .tl-legal-document-head h2, .tl-legal-section-body h3, .tl-legal-intro strong, .tl-legal-trust-card h2 { color: #111 !important; }
  .tl-legal-subtitle, .tl-legal-section-body p, .tl-legal-list, .tl-legal-intro p, .tl-legal-trust-list div { color: #333 !important; }
  .tl-legal-glow, .tl-legal-candidate-note { display: none !important; }
}
