/* ==========================================================================
   Legal pages (privacy, cookies, terms) — light theme + shared atmosphere
   Driven by html[data-theme="light"] on body.ta-legal-route
   ========================================================================== */

body.ta-legal-route {
  background-color: #0a141c !important;
  background-image: none !important;
  transition: background-color 0.45s ease;
  overflow-x: clip;
}

html[data-theme="light"] body.ta-legal-route {
  background-color: #e8eef2 !important;
}

body.ta-legal-route .ta-legal-page {
  overflow-x: clip;
  overflow-y: visible;
  background: transparent !important;
}

body.ta-legal-route .ta-page-net,
body.ta-legal-route .ta-home-net {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

body.ta-legal-route .ta-page-net canvas,
body.ta-legal-route .ta-home-net canvas {
  display: block;
  width: 100%;
  height: 100%;
}

body.ta-legal-route .ta-legal-page,
body.ta-legal-route .ta-footer {
  position: relative;
  z-index: 1;
}

body.ta-legal-route #navbar.ta-header {
  position: fixed !important;
  z-index: 50 !important;
}

.ta-legal-float {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.ta-legal-float__grid {
  position: absolute;
  inset: 0;
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(95, 177, 115, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(95, 177, 115, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 35%, #000 18%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 35%, #000 18%, transparent 78%);
}

html[data-theme="light"] .ta-legal-float__grid {
  opacity: 0.32;
  background-image:
    linear-gradient(rgba(0, 168, 69, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 168, 69, 0.08) 1px, transparent 1px);
}

/* Dark glass panels over network */
body.ta-legal-route .ta-legal-page .record {
  background: rgba(6, 23, 31, 0.55) !important;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

body.ta-legal-route .ta-legal-page .ltoc,
body.ta-legal-route .ta-legal-page .panel,
body.ta-legal-route .ta-legal-page .tilecard,
body.ta-legal-route .ta-legal-page .callout,
body.ta-legal-route .ta-legal-page .stat,
body.ta-legal-route .ta-legal-page .lcontact,
body.ta-legal-route .ta-legal-page .table-wrap {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* ---- Light mode tokens ---- */
html[data-theme="light"] .ta-legal-page {
  --base: transparent;
  --base2: rgba(255, 255, 255, 0.55);
  --panel: rgba(255, 255, 255, 0.9);
  --panel2: #ffffff;
  --line: rgba(15, 49, 69, 0.12);
  --linelit: rgba(0, 168, 69, 0.32);
  --green: #00c853;
  --greensoft: #00e676;
  --greendeep: #00a845;
  --mint: rgba(0, 200, 83, 0.1);
  --white: #0a141c;
  --body: #3d4f59;
  --muted: #5a6b75;
  --light: transparent;
  color: var(--body);
  background: transparent !important;
}

html[data-theme="light"] .ta-legal-page h1,
html[data-theme="light"] .ta-legal-page h2,
html[data-theme="light"] .ta-legal-page h3,
html[data-theme="light"] .ta-legal-page h4 {
  color: #0a141c;
}

html[data-theme="light"] .ta-legal-page h1 em {
  color: #00a845;
}

html[data-theme="light"] .ta-legal-page .eyebrow {
  color: #00a845;
}

html[data-theme="light"] .ta-legal-page .lead {
  color: #3d4f59;
}

html[data-theme="light"] .ta-legal-page .ghost {
  border-color: rgba(0, 168, 69, 0.45) !important;
  color: #0a141c !important;
  background: rgba(255, 255, 255, 0.7) !important;
}

html[data-theme="light"] .ta-legal-page .ghost:hover {
  border-color: #00c853 !important;
  color: #06351c !important;
  background: rgba(0, 200, 83, 0.1) !important;
}

html[data-theme="light"] .ta-legal-page .btn {
  color: #06351c !important;
  background: linear-gradient(180deg, #4ade80 0%, #00d166 42%, #00b85a 100%) !important;
  box-shadow:
    0 0 0 1px rgba(0, 209, 102, 0.2),
    0 0 22px rgba(0, 209, 102, 0.4),
    0 10px 24px rgba(0, 160, 80, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

html[data-theme="light"] .ta-legal-page .btn:hover {
  background: linear-gradient(180deg, #1aff8c 0%, #00e676 100%) !important;
}

html[data-theme="light"] .ta-legal-page .tex::before {
  background:
    repeating-linear-gradient(90deg, rgba(0, 168, 69, 0.06) 0 1px, transparent 1px 56px),
    repeating-linear-gradient(0deg, rgba(0, 168, 69, 0.06) 0 1px, transparent 1px 56px);
}

html[data-theme="light"] .ta-legal-page .crumb,
html[data-theme="light"] .ta-legal-page .lmeta {
  color: #5a6b75;
}

html[data-theme="light"] .ta-legal-page .crumb a {
  color: #3d4f59;
}

html[data-theme="light"] .ta-legal-page .crumb a:hover {
  color: #00a845;
}

html[data-theme="light"] .ta-legal-page .lmeta b {
  color: #0a141c;
}

html[data-theme="light"] .ta-legal-page .record {
  background: rgba(255, 255, 255, 0.42) !important;
  border-color: rgba(15, 49, 69, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

html[data-theme="light"] .ta-legal-page .record dd {
  color: #0a141c;
}

html[data-theme="light"] .ta-legal-page .record dt {
  color: #5a6b75;
}

html[data-theme="light"] .ta-legal-page .record a {
  color: #00a845;
}

html[data-theme="light"] .ta-legal-page .record a:hover {
  color: #06351c;
}

html[data-theme="light"] .ta-legal-page .ltoc,
html[data-theme="light"] .ta-legal-page .panel,
html[data-theme="light"] .ta-legal-page .tilecard,
html[data-theme="light"] .ta-legal-page .stat,
html[data-theme="light"] .ta-legal-page .callout,
html[data-theme="light"] .ta-legal-page .lcontact,
html[data-theme="light"] .ta-legal-page .table-wrap,
html[data-theme="light"] .ta-legal-page .contact-grid div,
html[data-theme="light"] .ta-legal-page .chip {
  background: rgba(255, 255, 255, 0.92) !important;
  border-color: rgba(15, 49, 69, 0.12) !important;
  box-shadow: 0 12px 32px rgba(15, 49, 69, 0.06);
}

html[data-theme="light"] .ta-legal-page .tilecard:hover,
html[data-theme="light"] .ta-legal-page .ltoc a:hover {
  border-color: rgba(0, 168, 69, 0.4) !important;
}

html[data-theme="light"] .ta-legal-page .callout {
  border-left-color: #00c853 !important;
}

html[data-theme="light"] .ta-legal-page .callout p {
  color: #3d4f59;
}

html[data-theme="light"] .ta-legal-page .callout.warn {
  border-left-color: #c9921a !important;
  background: rgba(226, 178, 60, 0.1) !important;
}

html[data-theme="light"] .ta-legal-page .callout.danger {
  border-left-color: #c45a3f !important;
  background: rgba(224, 122, 95, 0.1) !important;
}

html[data-theme="light"] .ta-legal-page .callout.danger p,
html[data-theme="light"] .ta-legal-page .callout.danger li {
  color: #5a3a32;
}

html[data-theme="light"] .ta-legal-page .callout strong {
  color: #0a141c !important;
}

html[data-theme="light"] .ta-legal-page .callout.danger strong {
  color: #7a3428 !important;
}

html[data-theme="light"] .ta-legal-page .panel strong,
html[data-theme="light"] .ta-legal-page .tilecard strong,
html[data-theme="light"] .ta-legal-page .lblock strong {
  color: #0a141c !important;
}

html[data-theme="light"] .ta-legal-page .ltoc a {
  color: #3d4f59;
}

html[data-theme="light"] .ta-legal-page .ltoc a:hover {
  color: #00a845;
  background: rgba(0, 200, 83, 0.08);
}

html[data-theme="light"] .ta-legal-page .lhead .idx {
  color: #00a845;
  border-color: rgba(0, 168, 69, 0.35);
  background: rgba(0, 200, 83, 0.1);
}

html[data-theme="light"] .ta-legal-page .lblock p,
html[data-theme="light"] .ta-legal-page .lblock li,
html[data-theme="light"] .ta-legal-page .tilecard p,
html[data-theme="light"] .ta-legal-page .dl-grid dd,
html[data-theme="light"] .ta-legal-page td,
html[data-theme="light"] .ta-legal-page .note,
html[data-theme="light"] .ta-legal-page .lcontact > p {
  color: #3d4f59;
}

html[data-theme="light"] .ta-legal-page .lblock a:not(.btn):not(.ghost):not(.chip) {
  color: #00a845;
}

html[data-theme="light"] .ta-legal-page .lblock a:not(.btn):not(.ghost):not(.chip):hover {
  color: #06351c;
}

html[data-theme="light"] .ta-legal-page .tilecard.accent {
  background: linear-gradient(160deg, rgba(0, 200, 83, 0.12), rgba(255, 255, 255, 0.95) 55%) !important;
  border-color: rgba(0, 168, 69, 0.32) !important;
}

html[data-theme="light"] .ta-legal-page .tilecard.accent h3,
html[data-theme="light"] .ta-legal-page .tilecard.accent h4 {
  color: #0a141c;
}

html[data-theme="light"] .ta-legal-page .tilecard.accent p,
html[data-theme="light"] .ta-legal-page .tilecard.accent li {
  color: #3d4f59;
}

html[data-theme="light"] .ta-legal-page th {
  color: #5a6b75;
  background: rgba(0, 200, 83, 0.06);
}

html[data-theme="light"] .ta-legal-page td.strong,
html[data-theme="light"] .ta-legal-page tbody th,
html[data-theme="light"] .ta-legal-page .contact-grid dd {
  color: #0a141c;
}

html[data-theme="light"] .ta-legal-page tbody tr:hover td {
  background: rgba(0, 200, 83, 0.04);
}

html[data-theme="light"] .ta-legal-page .chip {
  color: #3d4f59;
}

html[data-theme="light"] .ta-legal-page .contact-grid a {
  color: #00a845;
}

html[data-theme="light"] .ta-legal-page .contact-grid a:hover {
  color: #06351c;
}

html[data-theme="light"] .ta-legal-page .tag {
  color: #00a845;
  border-color: rgba(0, 168, 69, 0.35);
  background: rgba(0, 200, 83, 0.1);
}
