/* Cyberpunk css file --------------------------------------------------- */
    :root {
      --cp-bg: #050816;
      --cp-accent: #ff4df0;
      --cp-accent-secondary: #35e0ff;
      --cp-card-bg: rgba(7, 12, 33, 0.96);
      --cp-border: rgba(255, 255, 255, 0.12);
      --cp-text-main: #f9fafb;
      --cp-text-muted: #9ca3af;
      --cp-text-soft: #a5b4fc;
    }

    * {
      box-sizing: border-box;
    }

    body {
      margin: 0;
      min-height: 100vh;
      font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      color: var(--cp-text-main);
      background: radial-gradient(circle at top, #1b0b3a 0, #050816 45%, #020308 100%);
      overflow-x: hidden;
      position: relative;
    }

    /* Ambient glow blobs */
    body::before,
    body::after {
      content: "";
      position: fixed;
      width: 700px;
      height: 700px;
      border-radius: 50%;
      filter: blur(90px);
      opacity: 0.35;
      z-index: -2;
      animation: float-glow 26s infinite alternate ease-in-out;
    }

    body::before {
      background: radial-gradient(circle, #ff4df0, transparent 60%);
      top: -160px;
      left: -180px;
    }

    body::after {
      background: radial-gradient(circle, #35e0ff, transparent 60%);
      bottom: -220px;
      right: -220px;
      animation-delay: 6s;
    }

    @keyframes float-glow {
      0%   { transform: translate3d(0,0,0); }
      50%  { transform: translate3d(40px, -30px, 0); }
      100% { transform: translate3d(-20px, 25px, 0); }
    }

    /* SHELL --------------------------------------------------- */
    .cp-legal-shell {
      max-width: 1160px;
      margin: 0 auto;
      padding: 20px 16px 40px;
    }

    @media (min-width: 992px) {
      .cp-legal-shell {
        padding: 30px 24px 48px;
      }
    }

    /* HEADER / BRAND ------------------------------------------ */
    .cp-legal-header {
      display: flex;
      flex-wrap: wrap;
      gap: 12px 20px;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 18px;
    }

    .cp-legal-brand {
      display: flex;
      align-items: center;
      gap: 12px;
      text-decoration: none;
      color: var(--cp-text-main);
    }

    .cp-legal-brand-logo {
      width: 34px;
      height: 34px;
      border-radius: 12px;
      background: radial-gradient(circle at 30% 0%, #ffffff, #ff4df0);
      padding: 4px;
      box-shadow: 0 0 16px rgba(255, 77, 240, 0.7);
    }

    .cp-legal-brand-text {
      display: flex;
      flex-direction: column;
    }

    .cp-legal-brand-title {
      font-size: 0.9rem;
      font-weight: 600;
      letter-spacing: 0.18em;
      text-transform: uppercase;
    }

    .cp-legal-brand-sub {
      font-size: 0.78rem;
      color: var(--cp-text-muted);
    }

    .cp-legal-backlink {
      font-size: 0.8rem;
      color: var(--cp-text-soft);
      text-decoration: none;
      border-radius: 999px;
      border: 1px solid rgba(148, 163, 184, 0.7);
      padding: 7px 14px;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      background: rgba(15, 23, 42, 0.85);
      box-shadow: 0 0 10px rgba(15, 23, 42, 0.9);
    }

    .cp-legal-backlink:hover {
      background: linear-gradient(135deg, rgba(53, 224, 255, 0.16), rgba(255, 77, 240, 0.18));
      border-color: rgba(148, 163, 184, 1);
      color: #e5e7eb;
    }

    /* LEGAL TABS --------------------------------------------- */
    .cp-legal-tabs {
      margin-top: 10px;
      margin-bottom: 18px;
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }

    .cp-legal-tab {
      font-size: 0.78rem;
      letter-spacing: 0.16em;
      text-transform: uppercase;
      padding: 7px 14px;
      border-radius: 999px;
      border: 1px solid rgba(148, 163, 184, 0.65);
      color: var(--cp-text-muted);
      text-decoration: none;
      background: rgba(15, 23, 42, 0.9);
      display: inline-flex;
      align-items: center;
      gap: 6px;
    }

    .cp-legal-tab span.dot {
      width: 7px;
      height: 7px;
      border-radius: 999px;
      background: rgba(148, 163, 184, 0.9);
    }

    .cp-legal-tab.active {
      border-color: rgba(53, 224, 255, 0.9);
      color: #e5e7eb;
      background: linear-gradient(135deg, rgba(53, 224, 255, 0.16), rgba(255, 77, 240, 0.12));
      box-shadow:
        0 0 14px rgba(53, 224, 255, 0.6),
        0 0 20px rgba(255, 77, 240, 0.5);
    }

    .cp-legal-tab.active span.dot {
      background: #22c55e;
      box-shadow: 0 0 8px rgba(34, 197, 94, 0.9);
    }
    .cp-legal-tab-secondary{
  opacity: .85;
}
.cp-legal-tab-secondary:hover{
  opacity: 1;
}

    /* HERO CARD ---------------------------------------------- */
    .cp-legal-hero {
      border-radius: 22px;
      background: var(--cp-card-bg);
      border: 1px solid var(--cp-border);
      padding: 20px 18px 18px;
      box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.04),
        0 24px 60px rgba(0, 0, 0, 0.9);
      position: relative;
      overflow: hidden;
      margin-bottom: 24px;
    }

    .cp-legal-hero::before {
      content: "";
      position: absolute;
      inset: 0;
      background:
        radial-gradient(circle at 0 0, rgba(255, 77, 240, 0.35), transparent 55%),
        radial-gradient(circle at 100% 100%, rgba(53, 224, 255, 0.32), transparent 55%);
      opacity: 0.65;
      mix-blend-mode: soft-light;
      pointer-events: none;
    }

    .cp-legal-hero-inner {
      position: relative;
      z-index: 1;
    }

    .cp-legal-hero-kicker {
      font-size: 0.78rem;
      letter-spacing: 0.22em;
      text-transform: uppercase;
      color: var(--cp-text-soft);
      margin-bottom: 6px;
    }

    .cp-legal-hero-title {
      font-size: 1.65rem;
      font-weight: 700;
      letter-spacing: 0.03em;
      margin-bottom: 4px;
    }

    .cp-legal-hero-title span {
      background: linear-gradient(120deg, #ff4df0, #35e0ff);
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
    }

    .cp-legal-meta {
      font-size: 0.82rem;
      color: var(--cp-text-muted);
      margin-bottom: 10px;
    }

    .cp-legal-hero-text {
      font-size: 0.9rem;
      color: var(--cp-text-muted);
      max-width: 640px;
    }

    /* LAYOUT: OUTLINE + CONTENT ------------------------------ */
    .cp-legal-main {
      display: grid;
      grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
      gap: 20px;
      align-items: flex-start;
    }

    @media (max-width: 900px) {
      .cp-legal-main {
        grid-template-columns: 1fr;
      }
    }

    /* Outline / TOC */
    .cp-legal-outline {
      border-radius: 18px;
      background: rgba(9, 13, 38, 0.96);
      border: 1px solid rgba(148, 163, 184, 0.35);
      padding: 14px 14px 10px;
      position: sticky;
      top: 16px;
      max-height: calc(100vh - 40px);
      overflow: auto;
      scrollbar-width: thin;
      scrollbar-color: rgba(148,163,184,.7) transparent;
    }

    .cp-legal-outline::-webkit-scrollbar {
      width: 6px;
    }

    .cp-legal-outline::-webkit-scrollbar-thumb {
      background: rgba(148, 163, 184, 0.7);
      border-radius: 999px;
    }

    .cp-outline-title {
      font-size: 0.8rem;
      letter-spacing: 0.2em;
      text-transform: uppercase;
      color: var(--cp-text-soft);
      margin-bottom: 8px;
    }

    .cp-outline-list {
      list-style: none;
      padding: 0;
      margin: 0;
      font-size: 0.86rem;
    }

    .cp-outline-list li {
      margin-bottom: 4px;
    }

    .cp-outline-link {
      display: block;
      padding: 4px 6px;
      border-radius: 999px;
      color: var(--cp-text-muted);
      text-decoration: none;
      transition: 0.16s ease;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .cp-outline-link:hover {
      background: rgba(53, 224, 255, 0.16);
      color: #e5e7eb;
    }

    .cp-outline-link span.num {
      font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
      font-size: 0.8em;
      opacity: 0.85;
      margin-right: 6px;
      color: var(--cp-accent-secondary);
    }

    /* Content area */
    .cp-legal-content {
      border-radius: 22px;
      background: rgba(9, 13, 38, 0.96);
      border: 1px solid rgba(148, 163, 184, 0.35);
      padding: 20px 18px 24px;
      box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.03),
        0 18px 45px rgba(0, 0, 0, 0.9);
      font-size: 0.94rem;
      line-height: 1.6;
      color: var(--cp-text-main);
    }

    @media (min-width: 768px) {
      .cp-legal-content {
        padding: 24px 26px 28px;
      }
    }

    .cp-legal-content h1,
    .cp-legal-content h2,
    .cp-legal-content h3 {
      color: #e5e7eb;
      margin-top: 1.3rem;
      margin-bottom: 0.45rem;
      font-weight: 600;
    }

    .cp-legal-content h1 {
      font-size: 1.35rem;
      margin-top: 0;
    }

    .cp-legal-content h2 {
      font-size: 1.1rem;
      border-top: 1px solid rgba(148, 163, 184, 0.4);
      padding-top: 1rem;
    }

    .cp-legal-content h3 {
      font-size: 0.98rem;
      color: var(--cp-text-soft);
    }

    .cp-legal-content p {
      margin: 0.35rem 0 0.7rem;
      color: var(--cp-text-main);
    }

    .cp-legal-content ul {
      margin: 0.3rem 0 0.9rem 1.25rem;
      padding: 0;
    }

    .cp-legal-content li {
      margin-bottom: 0.28rem;
    }

    .cp-legal-content a {
      color: var(--cp-accent-secondary);
      text-decoration: underline;
    }

    .cp-legal-content a:hover {
      color: #e0f2fe;
    }

    .cp-meta-inline {
      font-size: 0.82rem;
      color: var(--cp-text-muted);
      margin-bottom: 0.8rem;
    }

    code {
      font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
      font-size: 0.85em;
      background: rgba(15, 23, 42, 0.95);
      padding: 1px 4px;
      border-radius: 4px;
    }

    /* FOOTER -------------------------------------------------- */
.cp-legal-footer {
  margin-top: 26px;
  padding: 20px 16px 32px;
  border-top: 1px solid rgba(148, 163, 184, 0.45);
  font-size: 0.78rem;
  color: var(--cp-text-muted);

  /* FIX: centre content instead of left/right */
  text-align: center;
}

.cp-legal-footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  max-width: 980px;
  margin: 0 auto;
}

.cp-legal-footer small {
  opacity: 0.9;
}

.cp-legal-footer a {
  color: var(--cp-text-soft);
  text-decoration: none;
}

.cp-legal-footer a:hover {
  text-decoration: underline;
  color: #e5e7eb;
}

  gap: 6px;
  max-width: 980px;
  margin: 0 auto;
}

