/* Moved out of terms.html so the CSP needs no 'unsafe-inline'. */
  *, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
  :root {
    --bg: #0B0F1A;
    --surface: #131926;
    --elevated: #1A2236;
    --border: #1E293B;
    --text: #F1F5F9;
    --text2: #94A3B8;
    --text3: #64748B;
    --primary: #6366F1;
    --primary-glow: rgba(99,102,241,.25);
    --cyan: #06B6D4;
  }
  html { scroll-behavior: smooth; font-size: 16px; }
  body {
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', system-ui, sans-serif;
    background: var(--bg); color: var(--text); line-height: 1.75;
    overflow-x: hidden; -webkit-font-smoothing: antialiased;
  }
  a { color: var(--cyan); text-decoration: none; }
  a:hover { text-decoration: underline; }
  ::selection { background: var(--primary); color: #fff; }

  /* Nav */
  nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 16px 0;
    background: rgba(11,15,26,.85); backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255,255,255,.04);
  }
  nav .inner {
    max-width: 1200px; margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between;
  }
  nav .logo {
    font-size: 1.25rem; font-weight: 800; letter-spacing: -.02em;
    display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none;
  }
  nav .logo:hover { text-decoration: none; }
  nav .logo-icon {
    width: 32px; height: 32px; border-radius: 8px;
    background: linear-gradient(135deg, #6366F1, #06B6D4);
    display: flex; align-items: center; justify-content: center;
    font-size: .9rem; color: #fff;
  }
  nav .links { display: flex; gap: 24px; align-items: center; }
  nav .links a { color: var(--text2); font-size: .875rem; font-weight: 500; transition: color .2s; }
  nav .links a:hover { color: var(--text); text-decoration: none; }

  /* Content */
  .page { max-width: 860px; margin: 0 auto; padding: 120px 24px 80px; }
  .page-title {
    font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; letter-spacing: -.03em;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #818CF8, #6366F1, #06B6D4);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  }
  .page-subtitle { color: var(--text2); font-size: 1.05rem; margin-bottom: 48px; }

  /* TOC */
  .toc {
    background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
    padding: 28px 32px; margin-bottom: 48px;
  }
  .toc h2 { font-size: 1.1rem; font-weight: 700; margin-bottom: 16px; color: var(--text); }
  .toc ol { padding-left: 20px; }
  .toc li { margin-bottom: 6px; }
  .toc a { color: var(--cyan); font-size: .925rem; }

  /* Sections */
  .section { margin-bottom: 48px; }
  .section h2 {
    font-size: 1.4rem; font-weight: 700; margin-bottom: 16px; padding-top: 16px;
    color: var(--text); border-top: 1px solid var(--border); padding-top: 24px;
  }
  .section h3 { font-size: 1.1rem; font-weight: 600; margin: 20px 0 10px; color: #818CF8; }
  .section p { color: var(--text2); margin-bottom: 14px; }
  .section ul, .section ol { color: var(--text2); padding-left: 24px; margin-bottom: 14px; }
  .section li { margin-bottom: 6px; }
  .section strong { color: var(--text); font-weight: 600; }

  /* Table */
  .pricing-table { width: 100%; border-collapse: collapse; margin: 16px 0 20px; }
  .pricing-table th, .pricing-table td {
    padding: 12px 16px; text-align: left; border: 1px solid var(--border); font-size: .925rem;
  }
  .pricing-table th { background: var(--elevated); color: var(--text); font-weight: 600; }
  .pricing-table td { color: var(--text2); }

  /* Footer */
  footer {
    border-top: 1px solid var(--border); padding: 32px 24px; text-align: center;
    color: var(--text3); font-size: .85rem;
  }

  @media (max-width: 640px) {
    .page { padding: 100px 16px 60px; }
    .toc { padding: 20px 20px; }
    nav .links { gap: 16px; }
  }
