:root {
    --bg: #0a0c0e; --bg2: #111418; --bg3: #161b20;
    --card: #13191f; --border: #1e2830; --text: #e8edf2;
    --muted: #6b7e8f; --accent: #00d4aa; --accent2: #ff4b4b;
    --font-head: 'Fraunces', serif; --font-mono: 'Space Mono', monospace;
  }
  * { margin: 0; padding: 0; box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body { background: var(--bg); color: var(--text); font-family: var(--font-mono); font-size: 14px; line-height: 1.6; overflow-x: hidden; }
  body::before { content: ''; position: fixed; inset: 0; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E"); pointer-events: none; z-index: 9999; opacity: 0.4; }
  a { color: inherit; text-decoration: none; }

  nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; display: flex; align-items: center; justify-content: space-between; padding: 0 48px; height: 64px; background: rgba(10,12,14,0.85); backdrop-filter: blur(16px); border-bottom: 1px solid var(--border); }
  .logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 800; font-size: 18px; letter-spacing: -0.5px; }
  .logo-icon { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; }
  .logo-icon img { width: 36px; height: 36px; object-fit: contain; }
  .nav-back { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; transition: color 0.2s; }
  .nav-back:hover { color: var(--accent); }

  .legal-hero { padding: 120px 64px 60px; border-bottom: 1px solid var(--border); background: var(--bg2); position: relative; overflow: hidden; }
  .legal-hero::after { content: ''; position: absolute; top: -200px; right: -200px; width: 500px; height: 500px; background: radial-gradient(circle, rgba(0,212,170,0.05) 0%, transparent 70%); pointer-events: none; }
  .legal-eyebrow { font-size: 11px; letter-spacing: 3px; color: var(--accent); text-transform: uppercase; margin-bottom: 16px; display: block; }
  .legal-title { font-family: var(--font-head); font-size: clamp(36px, 4vw, 56px); font-weight: 800; letter-spacing: -2px; line-height: 1.1; margin-bottom: 16px; }
  .legal-meta { font-size: 12px; color: var(--muted); display: flex; gap: 24px; flex-wrap: wrap; margin-top: 20px; }

  .legal-body { display: grid; grid-template-columns: 220px 1fr; max-width: 1100px; margin: 0 auto; padding: 64px; gap: 64px; align-items: start; }
  .toc { position: sticky; top: 84px; }
  .toc-title { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
  .toc-list { list-style: none; }
  .toc-list li { margin-bottom: 4px; }
  .toc-list a { font-size: 12px; color: var(--muted); padding: 5px 10px; display: block; border-left: 2px solid var(--border); transition: all 0.2s; line-height: 1.4; }
  .toc-list a:hover, .toc-list a.active { color: var(--accent); border-left-color: var(--accent); background: rgba(0,212,170,0.05); }

  .legal-content { min-width: 0; }
  .legal-section { margin-bottom: 56px; padding-bottom: 56px; border-bottom: 1px solid var(--border); }
  .legal-section:last-child { border-bottom: none; }
  .legal-section h2 { font-family: var(--font-head); font-size: 22px; font-weight: 700; letter-spacing: -0.5px; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
  .legal-section h2 .sec-num { font-size: 11px; color: var(--accent); background: rgba(0,212,170,0.1); border: 1px solid rgba(0,212,170,0.2); padding: 2px 8px; border-radius: 4px; font-family: var(--font-mono); font-weight: 400; letter-spacing: 1px; }
  .legal-section p { color: #9db0c0; font-size: 13px; line-height: 1.85; margin-bottom: 14px; }
  .legal-section ul { list-style: none; margin: 16px 0; }
  .legal-section ul li { font-size: 13px; color: #9db0c0; padding: 6px 0 6px 20px; position: relative; line-height: 1.7; border-bottom: 1px solid rgba(30,40,48,0.5); }
  .legal-section ul li:last-child { border-bottom: none; }
  .legal-section ul li::before { content: '›'; position: absolute; left: 0; color: var(--accent); font-size: 16px; line-height: 1.4; }
  .highlight-box { background: var(--card); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: 0 8px 8px 0; padding: 16px 20px; margin: 20px 0; font-size: 13px; color: #9db0c0; line-height: 1.7; }
  .warning-box { background: rgba(255,75,75,0.05); border: 1px solid rgba(255,75,75,0.2); border-left: 3px solid var(--accent2); border-radius: 0 8px 8px 0; padding: 16px 20px; margin: 20px 0; font-size: 13px; color: #d4726f; line-height: 1.7; }

  .data-table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 12px; }
  .data-table th { background: var(--bg3); color: var(--accent); font-weight: 400; letter-spacing: 1px; text-transform: uppercase; font-size: 10px; padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--border); }
  .data-table td { padding: 10px 14px; color: #9db0c0; border-bottom: 1px solid rgba(30,40,48,0.5); vertical-align: top; line-height: 1.5; }
  .data-table tr:last-child td { border-bottom: none; }
  .data-table tr:hover td { background: rgba(0,212,170,0.02); }

  footer { background: var(--bg); border-top: 1px solid var(--border); padding: 60px 64px 40px; margin-top: 80px; }
  .footer-top { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
  .footer-brand p { font-size: 12px; color: var(--muted); margin-top: 12px; line-height: 1.6; max-width: 200px; }
  .footer-col h4 { font-family: var(--font-head); font-size: 13px; font-weight: 700; margin-bottom: 16px; }
  .footer-col ul { list-style: none; }
  .footer-col li { margin-bottom: 10px; }
  .footer-col a { font-size: 12px; color: var(--muted); }
  .footer-col a:hover { color: var(--accent); transition: color 0.2s; }
  .footer-col a.active-legal { color: var(--accent); }
  .footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; border-top: 1px solid var(--border); font-size: 11px; color: var(--muted); }
  .windows-badge { background: var(--bg2); border: 1px solid var(--border); border-radius: 8px; padding: 6px 14px; font-size: 11px; display: flex; align-items: center; gap: 8px; }

  @media (max-width: 900px) {
    nav { padding: 0 24px; }
    .legal-hero { padding: 100px 24px 48px; }
    .legal-body { grid-template-columns: 1fr; padding: 40px 24px; gap: 40px; }
    .toc { position: static; }
    .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
    footer { padding: 40px 24px; }
  }

.legal-inline-link { color: var(--accent); }
