:root {
  --legal-bg: #060a16;
  --legal-card: rgba(11, 19, 38, 0.82);
  --legal-stroke: rgba(124, 177, 255, 0.28);
  --legal-text: #eaf1ff;
  --legal-muted: #aebcda;
  --legal-primary: #5cdeff;
}

body.legal-tech-page {
  margin: 0;
  color: var(--legal-text);
  background:
    radial-gradient(circle at 8% 12%, rgba(92, 222, 255, 0.16), transparent 33%),
    radial-gradient(circle at 90% 0%, rgba(142, 118, 255, 0.15), transparent 32%),
    linear-gradient(180deg, #050914 0%, #03060d 100%);
}

.legal-tech-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(124, 157, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 157, 255, 0.07) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(circle at center, black, transparent 86%);
}

.legal-wrap {
  width: min(1080px, calc(100% - 2rem));
  margin: 0 auto;
}

.legal-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--legal-stroke);
  backdrop-filter: blur(10px);
  background: rgba(5, 10, 20, 0.72);
}

.legal-topbar__inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.legal-brand {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  text-decoration: none;
  color: #fff;
  font-weight: 800;
}

.legal-brand__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--legal-primary), #9a84ff);
  box-shadow: 0 0 12px rgba(92, 222, 255, 0.75);
}

.legal-nav {
  display: flex;
  align-items: center;
  gap: .9rem;
  flex-wrap: wrap;
}

.legal-nav a {
  color: var(--legal-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: .92rem;
}

.legal-nav a:hover {
  color: #fff;
}

.legal-hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 12px;
  border: 1px solid var(--legal-stroke);
  background: rgba(11, 19, 38, 0.45);
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
}

.legal-mobile-menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 19;
  background: rgba(5, 10, 20, 0.58);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.legal-mobile-drawer {
  position: fixed;
  left: 12px;
  right: 12px;
  top: calc(64px + env(safe-area-inset-top, 0px));
  z-index: 21;
  border: 1px solid var(--legal-stroke);
  border-radius: 16px;
  background: rgba(5, 10, 20, 0.95);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.45);
  padding: 12px;
  opacity: 0;
  transform: translateY(-10px) scale(0.98);
  pointer-events: none;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.legal-mobile-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 4px 10px;
}

.legal-mobile-drawer__close {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--legal-stroke);
  background: rgba(11, 19, 38, 0.45);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.legal-mobile-drawer__nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.legal-mobile-drawer__nav a {
  padding: 0.7rem 0.95rem;
  border-radius: 12px;
  color: var(--legal-muted);
  text-decoration: none;
  font-weight: 600;
  border: 1px solid transparent;
}

.legal-mobile-drawer__nav a:hover {
  color: #fff;
  border-color: rgba(124, 177, 255, 0.32);
  background: rgba(11, 19, 38, 0.5);
}

body.legal-menu-open .legal-mobile-menu-backdrop {
  opacity: 1;
  pointer-events: auto;
}

body.legal-menu-open .legal-mobile-drawer {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.legal-nav .legal-nav__cta {
  border: 1px solid var(--legal-stroke);
  border-radius: 999px;
  padding: .45rem .9rem;
  color: #eaf3ff;
  background: rgba(11, 19, 38, 0.55);
}

.legal-main {
  padding: 1.2rem 0 2.2rem;
}

.legal-card {
  border: 1px solid var(--legal-stroke);
  border-radius: 18px;
  background: var(--legal-card);
  backdrop-filter: blur(10px);
  padding: 1.35rem;
  max-width: 920px;
  margin: 0 auto;
}

.legal-kicker {
  margin: 0 0 .45rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .72rem;
  font-weight: 700;
  color: var(--legal-primary);
}

.legal-card h1 {
  margin: 0 0 .8rem;
  font-size: clamp(1.6rem, 4vw, 2.35rem);
}

.legal-card h2 {
  margin: 1.35rem 0 0.6rem;
  font-size: clamp(1.05rem, 2.5vw, 1.2rem);
  font-weight: 700;
  color: #e2e8f0;
}

.legal-card h2:first-of-type {
  margin-top: 0.5rem;
}

.legal-card ul {
  margin: 0.5rem 0 0.85rem;
  padding-left: 1.25rem;
  color: var(--legal-muted);
  line-height: 1.62;
}

.legal-cookie-table-wrap {
  overflow-x: auto;
  margin: 0.85rem 0 1.1rem;
  -webkit-overflow-scrolling: touch;
  border-radius: 10px;
  border: 1px solid var(--legal-stroke);
}

.legal-cookie-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 0.8125rem;
  line-height: 1.45;
}

.legal-cookie-table th,
.legal-cookie-table td {
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
  padding: 0.55rem 0.65rem;
  text-align: left;
  vertical-align: top;
  color: var(--legal-muted);
}

.legal-cookie-table thead th {
  background: rgba(30, 41, 59, 0.55);
  color: #e2e8f0;
  font-weight: 600;
}

.legal-cookie-table tbody tr:last-child td {
  border-bottom: 0;
}

.legal-card p {
  color: var(--legal-muted);
  line-height: 1.62;
}

.legal-card a {
  color: #dff2ff;
}

.legal-footer {
  border-top: 1px solid var(--legal-stroke);
  padding: 1.2rem 0 1.6rem;
}

.legal-footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.legal-copy {
  margin: 0;
  color: #9db0d6;
}

.legal-links {
  display: flex;
  gap: .8rem;
  flex-wrap: wrap;
}

.legal-links a {
  color: var(--legal-muted);
  text-decoration: none;
}

@media (max-width: 860px) {
  .legal-nav {
    display: none;
  }

  .legal-hamburger {
    display: inline-flex;
  }
}
