/* ==========================================================================
   LoNet Solutions — Modern Legal Policy Pages Design System (21st UI Theme)
   Palette: Obsidian Dark #040814, Card #070e24, Cyan #00f2fe, Emerald #10b981
   Typography: Outfit (Headings), Plus Jakarta Sans (Body), JetBrains Mono (Code/Badges)
   ========================================================================== */

:root {
  --bg-main: #040814;
  --bg-card: #070e24;
  --bg-card-hover: #0b1536;
  --border-slate: rgba(30, 41, 59, 0.8);
  --border-cyan: rgba(0, 242, 254, 0.35);
  --cyan-primary: #00f2fe;
  --cyan-hover: #38bdf8;
  --emerald-primary: #10b981;
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg-main);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  overflow-x: hidden;
  selection-background-color: var(--cyan-primary);
  selection-color: #020617;
  touch-action: manipulation;
}

::selection {
  background-color: var(--cyan-primary);
  color: #020617;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

/* Ambient canvas background glow */
.ambient-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  contain: strict;
}

.ambient-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.12;
}

/* High-performance mobile & tablet background (Eliminates heavy GPU blur lag) */
@media (max-width: 1023px) {
  .ambient-canvas {
    display: none !important;
  }
  body {
    background-image: 
      radial-gradient(circle at 15% 8%, rgba(0, 242, 254, 0.07) 0%, transparent 45%),
      radial-gradient(circle at 85% 25%, rgba(139, 92, 246, 0.07) 0%, transparent 45%);
    background-attachment: scroll;
  }
}

.glow-1 {
  top: 10%;
  left: 15%;
  width: 600px;
  height: 500px;
  background: radial-gradient(circle, #00f2fe 0%, #3b82f6 100%);
}

.glow-2 {
  bottom: 20%;
  right: 10%;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, #8b5cf6 0%, #10b981 100%);
}

/* Container */
.legal-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

@media (min-width: 640px) {
  .legal-container {
    padding: 0 2rem;
  }
}

/* ==========================================================================
   Floating Island Navbar (Absolute on Mobile to prevent viewport obstruction)
   ========================================================================== */
.legal-navbar-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0.4rem 0.5rem;
  pointer-events: none;
  box-sizing: border-box;
}

@media (min-width: 480px) {
  .legal-navbar-wrapper {
    padding: 0.5rem 0.75rem;
  }
}

@media (min-width: 640px) {
  .legal-navbar-wrapper {
    padding: 0.65rem 1rem;
  }
}

@media (min-width: 1024px) {
  .legal-navbar-wrapper {
    position: sticky;
    top: 0;
    padding: 0.75rem 1.5rem;
  }
}

.legal-navbar {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  border-radius: 1rem;
  background: rgba(4, 8, 20, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-slate);
  padding: 0.4rem 0.55rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  pointer-events: auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  box-sizing: border-box;
  overflow: hidden;
  transition: all 0.3s ease;
}

@media (min-width: 480px) {
  .legal-navbar {
    padding: 0.5rem 0.75rem;
    gap: 0.6rem;
  }
}

@media (min-width: 640px) {
  .legal-navbar {
    padding: 0.6rem 1.25rem;
    gap: 0.75rem;
  }
}

.legal-brand {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  flex-shrink: 0;
  min-width: 0;
}

.legal-brand-logo-wrap {
  position: relative;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

@media (min-width: 480px) {
  .legal-brand-logo-wrap {
    width: 32px;
    height: 32px;
  }
}

@media (min-width: 640px) {
  .legal-brand-logo-wrap {
    width: 38px;
    height: 38px;
  }
}

.legal-brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(0, 242, 254, 0.4));
  transition: transform 0.3s ease;
}

.legal-brand:hover .legal-brand-logo-img {
  transform: scale(1.05);
}

.legal-brand-status-beacon {
  position: absolute;
  bottom: -2px;
  right: -2px;
  display: flex;
  width: 8px;
  height: 8px;
}

.legal-brand-status-beacon span:first-child {
  position: absolute;
  display: inline-flex;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: #34d399;
  opacity: 0.75;
  animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.legal-brand-status-beacon span:last-child {
  position: relative;
  display: inline-flex;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #10b981;
  border: 1.5px solid #040814;
}

@keyframes ping {
  75%, 100% {
    transform: scale(2);
    opacity: 0;
  }
}

.legal-brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1;
}

.legal-brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  color: #ffffff;
  letter-spacing: -0.02em;
}

@media (min-width: 640px) {
  .legal-brand-name {
    font-size: 1.15rem;
  }
}

.legal-brand-sub {
  font-family: var(--font-mono);
  font-size: 7.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--cyan-primary);
  margin-top: 2px;
}

@media (max-width: 379px) {
  .legal-brand-sub {
    display: none;
  }
}

@media (min-width: 640px) {
  .legal-brand-sub {
    font-size: 9.5px;
  }
}

.legal-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

@media (min-width: 480px) {
  .legal-nav-actions {
    gap: 0.45rem;
  }
}

@media (min-width: 640px) {
  .legal-nav-actions {
    gap: 0.75rem;
  }
}

.legal-btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.35rem 0.5rem;
  border-radius: 0.65rem;
  font-size: 10.5px;
  font-weight: 700;
  font-family: var(--font-mono);
  color: #34d399;
  background: rgba(6, 78, 59, 0.4);
  border: 1px solid rgba(16, 185, 129, 0.4);
  cursor: pointer;
  flex-shrink: 0;
  text-decoration: none;
  transition: all 0.2s ease;
}

.legal-btn-whatsapp-text {
  display: none;
}

.legal-btn-whatsapp-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: #34d399;
  box-shadow: 0 0 6px #34d399;
  animation: pulse-dot 1.5s infinite;
  flex-shrink: 0;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.legal-btn-whatsapp:hover {
  background: rgba(6, 78, 59, 0.6);
  border-color: rgba(16, 185, 129, 0.7);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.25);
}

@media (min-width: 640px) {
  .legal-btn-whatsapp {
    padding: 0.45rem 0.75rem;
    border-radius: 0.75rem;
    gap: 0.4rem;
    font-size: 11px;
  }
  .legal-btn-whatsapp-text {
    display: inline;
  }
}

.legal-btn-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.35rem 0.6rem;
  border-radius: 0.65rem;
  font-size: 11px;
  font-weight: 800;
  font-family: var(--font-display);
  color: #020617;
  background: linear-gradient(135deg, #00f2fe 0%, #38bdf8 50%, #34d399 100%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 0 14px rgba(0, 242, 254, 0.35);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none;
  transition: all 0.25s ease;
}

.legal-btn-back-text-full {
  display: none;
}

.legal-btn-back-text-short {
  display: inline;
}

.legal-btn-back:hover {
  transform: scale(1.02);
  box-shadow: 0 0 24px rgba(0, 242, 254, 0.6);
}

@media (min-width: 640px) {
  .legal-btn-back {
    padding: 0.45rem 0.9rem;
    border-radius: 0.75rem;
    font-size: 11.5px;
    gap: 0.4rem;
  }
  .legal-btn-back-text-full {
    display: inline;
  }
  .legal-btn-back-text-short {
    display: none;
  }
}

.legal-btn-lang {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.5rem;
  border-radius: 0.65rem;
  font-size: 10.5px;
  font-weight: 700;
  font-family: var(--font-mono);
  color: #94a3b8;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--border-slate);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s ease;
  user-select: none;
}

.legal-btn-lang:hover {
  background: rgba(15, 23, 42, 0.98);
  border-color: rgba(0, 242, 254, 0.6);
  color: #ffffff;
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.25);
  transform: scale(1.02);
}

.legal-btn-lang:active {
  transform: scale(0.97);
}

.legal-btn-lang svg {
  color: #00f2fe;
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .legal-btn-lang {
    padding: 0.45rem 0.75rem;
    border-radius: 0.75rem;
    font-size: 11px;
    gap: 0.35rem;
  }
}

/* ==========================================================================
   Hero Section of Policy Pages
   ========================================================================== */
.legal-hero {
  position: relative;
  padding: 7rem 0 3rem;
  text-align: center;
  z-index: 10;
  border-bottom: 1px solid var(--border-slate);
}

@media (min-width: 640px) {
  .legal-hero {
    padding: 8.5rem 0 4rem;
  }
}

.legal-hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  border-radius: 9999px;
  background: rgba(8, 47, 73, 0.6);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: var(--cyan-primary);
  font-size: 11.5px;
  font-weight: 700;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.legal-hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4.5vw, 3.25rem);
  font-weight: 900;
  color: #ffffff;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.text-gradient-cyan {
  background: linear-gradient(135deg, #00f2fe 0%, #38bdf8 50%, #4ade80 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.legal-hero-desc {
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  color: #cbd5e1;
  max-width: 760px;
  margin: 0 auto 1.75rem;
  line-height: 1.65;
}

.legal-meta-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  font-size: 11.5px;
  font-family: var(--font-mono);
}

.legal-meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid var(--border-slate);
  color: #94a3b8;
}

.legal-meta-chip strong {
  color: #ffffff;
}

/* ==========================================================================
   Main Content Layout (Sidebar + Article Body)
   ========================================================================== */
.legal-main {
  position: relative;
  z-index: 10;
  padding: 3.5rem 0 6rem;
}

.legal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .legal-grid {
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 3rem;
  }
}

/* Sidebar Table of Contents: Static on Mobile & Tablet to PREVENT fixed overlay blocking */
.legal-sidebar {
  position: static;
  min-width: 0;
  max-width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-slate);
  border-radius: 1.25rem;
  padding: 1.25rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  margin-bottom: 2rem;
}

@media (max-width: 1023px) {
  .legal-sidebar {
    position: static !important;
    top: auto !important;
    background: rgba(7, 14, 36, 0.7);
    border-radius: 1rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
  }
  .legal-sidebar-heading {
    margin-bottom: 0.6rem;
    padding-bottom: 0.4rem;
    font-size: 0.8rem;
  }
  .legal-toc-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }
  @media (min-width: 600px) {
    .legal-toc-list {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  .legal-toc-link {
    font-size: 0.78rem;
    padding: 0.25rem 0.4rem;
  }
}

/* ONLY Sticky on Desktop (>= 1024px) where there is a dedicated left column */
@media (min-width: 1024px) {
  .legal-sidebar {
    position: sticky;
    top: 5.5rem;
    max-height: calc(100vh - 7rem);
    overflow-y: auto;
    overscroll-behavior: contain;
    margin-bottom: 0;
  }
}

.legal-sidebar-heading {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cyan-primary);
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border-slate);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.legal-toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.legal-toc-link {
  font-size: 0.82rem;
  font-weight: 500;
  color: #94a3b8;
  padding: 0.35rem 0.5rem;
  border-radius: 0.5rem;
  line-height: 1.4;
  display: block;
  transition: all 0.2s ease;
}

.legal-toc-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
  transform: translateX(4px);
}

/* Article Card Body */
.legal-article-card {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
  background: var(--bg-card);
  border: 1px solid var(--border-slate);
  border-radius: 1.5rem;
  padding: 1.75rem 1.25rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  color: #cbd5e1;
  position: relative;
  z-index: 1;
}

.legal-article-card section {
  content-visibility: auto;
  contain-intrinsic-size: 1px 350px;
}

@media (min-width: 640px) {
  .legal-article-card {
    padding: 2.75rem 2.5rem;
  }
}

.legal-article-card h2 {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin: 2.75rem 0 1rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border-slate);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.legal-article-card h2:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.legal-article-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--cyan-hover);
  margin: 1.75rem 0 0.75rem;
}

.legal-article-card p {
  margin-bottom: 1.15rem;
  font-size: 0.95rem;
  line-height: 1.75;
}

.legal-article-card ul, 
.legal-article-card ol {
  margin: 0.75rem 0 1.5rem 1.5rem;
}

.legal-article-card li {
  margin-bottom: 0.5rem;
  font-size: 0.93rem;
  line-height: 1.7;
}

.legal-article-card strong {
  color: #ffffff;
  font-weight: 600;
}

/* Callout Box */
.legal-callout {
  background: rgba(14, 165, 233, 0.08);
  border-left: 4px solid var(--cyan-primary);
  border-radius: 0 1rem 1rem 0;
  padding: 1.25rem 1.5rem;
  margin: 1.75rem 0;
  border-top: 1px solid rgba(0, 242, 254, 0.15);
  border-right: 1px solid rgba(0, 242, 254, 0.15);
  border-bottom: 1px solid rgba(0, 242, 254, 0.15);
}

.legal-callout strong {
  color: #ffffff;
}

/* Channels Box Grid */
.legal-channel-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  margin: 1.75rem 0;
}

@media (min-width: 640px) {
  .legal-channel-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.legal-channel-item {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--border-slate);
  border-radius: 1rem;
  padding: 1.15rem 1.25rem;
  transition: all 0.2s ease;
}

.legal-channel-item:hover {
  border-color: var(--cyan-hover);
  background: rgba(15, 23, 42, 0.95);
  transform: translateY(-2px);
}

.legal-channel-item h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

.legal-channel-item p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.legal-channel-item a {
  color: var(--cyan-primary);
  font-weight: 600;
}

/* ==========================================================================
   Modern Footer (Unified with Main Site)
   ========================================================================== */
.legal-footer {
  background-color: #02050e;
  border-top: 1px solid var(--border-slate);
  padding: 4rem 0 2.5rem;
  font-size: 0.82rem;
  position: relative;
  z-index: 10;
}

.legal-footer-top {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border-slate);
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .legal-footer-top {
    flex-direction: row;
    align-items: center;
  }
}

.legal-footer-brand-wrap {
  max-width: 500px;
}

.legal-footer-desc {
  font-size: 0.85rem;
  color: #cbd5e1;
  margin-top: 0.75rem;
  line-height: 1.6;
}

.legal-footer-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border-slate);
}

@media (min-width: 640px) {
  .legal-footer-cols {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .legal-footer-cols {
    grid-template-columns: repeat(3, 1fr);
  }
}

.legal-footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ffffff;
  margin-bottom: 0.85rem;
}

.legal-footer-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.legal-footer-list a {
  color: #cbd5e1;
  transition: color 0.2s ease;
}

.legal-footer-list a:hover {
  color: var(--cyan-primary);
}

.legal-footer-contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border-slate);
  border-radius: 1rem;
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.legal-footer-whatsapp-pill {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.85rem;
  border-radius: 0.75rem;
  background: rgba(6, 78, 59, 0.4);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #ffffff;
}

.legal-footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.5rem;
  text-align: center;
}

@media (min-width: 768px) {
  .legal-footer-bottom {
    flex-direction: row;
    text-align: left;
  }
}

.legal-footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
}

.legal-btn-scroll-top {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 0.6rem;
  background: #0f172a;
  border: 1px solid var(--border-slate);
  color: #cbd5e1;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.legal-btn-scroll-top:hover {
  border-color: var(--cyan-primary);
  color: #ffffff;
}

/* ==========================================================================
   Floating Action Buttons (WhatsApp + Instagram)
   ========================================================================== */
.legal-float-actions {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.legal-fab {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  touch-action: manipulation;
}

@media (min-width: 640px) {
  .legal-fab {
    width: 54px;
    height: 54px;
  }
}

.legal-fab:hover {
  transform: scale(1.08);
}

.legal-fab-instagram {
  background: linear-gradient(135deg, #833ab4 0%, #fd1d1d 50%, #fcb045 100%);
  box-shadow: 0 10px 25px rgba(225, 48, 108, 0.4);
}

.legal-fab-whatsapp {
  background-color: #25d366;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.45);
  position: relative;
}

.legal-fab-beacon {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 14px;
  height: 14px;
  background-color: #ef4444;
  color: #ffffff;
  border: 2px solid #040814;
  border-radius: 50%;
  font-size: 8px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
  animation: pulse-beacon 2s infinite;
}

@keyframes pulse-beacon {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

/* ==========================================================================
   Table & Code Styles for Policy Pages
   ========================================================================== */

/* Base & Tablet / Desktop Table Styles (>= 768px) */
.legal-table-responsive {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  margin: 1.5rem 0;
  border-radius: 1rem;
  border: 1px solid var(--border-slate);
  background: rgba(15, 23, 42, 0.5);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 242, 254, 0.3) rgba(15, 23, 42, 0.5);
}

.legal-table-responsive::-webkit-scrollbar {
  height: 6px;
}

.legal-table-responsive::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.5);
  border-radius: 4px;
}

.legal-table-responsive::-webkit-scrollbar-thumb {
  background: rgba(0, 242, 254, 0.3);
  border-radius: 4px;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.86rem;
  min-width: 600px;
}

.legal-table th {
  background: rgba(15, 23, 42, 0.95);
  padding: 0.85rem 1rem;
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 700;
  border-bottom: 1px solid var(--border-slate);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.legal-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(30, 41, 59, 0.5);
  color: #cbd5e1;
  vertical-align: middle;
}

.legal-table tr:last-child td {
  border-bottom: none;
}

.legal-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* Mobile Responsive Card Transformation (< 768px) */
@media (max-width: 767px) {
  .legal-table-responsive {
    border: none;
    background: transparent;
    overflow-x: visible;
    margin: 1.25rem 0;
    padding: 0;
    border-radius: 0;
  }

  .legal-table {
    display: block;
    width: 100% !important;
    min-width: 0 !important;
    border: none;
  }

  .legal-table thead {
    display: none; /* Hide tabular column header row on small screens */
  }

  .legal-table tbody {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
  }

  .legal-table tr {
    display: block;
    width: 100%;
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid var(--border-slate);
    border-radius: 0.85rem;
    padding: 0.85rem 1rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
    transition: border-color 0.2s ease, transform 0.2s ease;
  }

  .legal-table tr:hover {
    border-color: rgba(0, 242, 254, 0.4);
  }

  .legal-table td {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0.55rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.84rem;
    text-align: right;
    word-break: break-word;
    gap: 0.75rem;
  }

  .legal-table td:first-child {
    padding-top: 0.25rem;
  }

  .legal-table td:last-child {
    border-bottom: none;
    padding-bottom: 0.25rem;
  }

  .legal-table td::before {
    content: attr(data-label);
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--cyan-primary);
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-align: left;
    flex-shrink: 0;
    min-width: 75px;
    padding-top: 0.1rem;
  }
}

code {
  font-family: var(--font-mono);
  background: rgba(15, 23, 42, 0.9);
  color: var(--cyan-primary);
  padding: 0.15rem 0.45rem;
  border-radius: 0.35rem;
  font-size: 0.86em;
  border: 1px solid rgba(0, 242, 254, 0.2);
}
