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

    body {
      font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
      background: #fafafa;
      color: #1e1e2f;
      line-height: 1.6;
      padding: 2rem 1rem;
    }

    .terms-container {
      max-width: 950px;
      margin: 0 auto;
      background: white;
      border-radius: 24px;
      box-shadow: 0 20px 40px -10px rgba(0,0,0,0.08);
      padding: 2.5rem 2rem;
    }

    h1 {
      font-size: 2.4rem;
      font-weight: 600;
      letter-spacing: -0.02em;
      border-bottom: 2px solid #f0b400;
      padding-bottom: 0.75rem;
      margin-bottom: 1.5rem;
      color: #1f2937;
    }

    h2 {
      font-size: 1.5rem;
      font-weight: 600;
      margin: 2rem 0 1rem;
      padding-bottom: 0.4rem;
      border-bottom: 1px solid #eaeaea;
      color: #1f2937;
      scroll-margin-top: 1.5rem;
    }

    h2:first-of-type {
      margin-top: 1rem;
    }

    p, li {
      margin-bottom: 1rem;
      color: #334155;
    }

    ul, ol {
      margin: 0.5rem 0 1.5rem 1.8rem;
    }

    li {
      margin-bottom: 0.4rem;
    }

    a {
      color: #f0b400;
      text-decoration: none;
      font-weight: 500;
      border-bottom: 1px dotted transparent;
      transition: border-color 0.2s;
    }

    a:hover {
      border-bottom-color: #f0b400;
    }

    .toc {
      background: #f8f9fa;
      border-radius: 20px;
      padding: 1.5rem 1.8rem;
      margin: 2rem 0 1.5rem;
      border: 1px solid #edf2f7;
    }

    .toc p {
      font-weight: 600;
      margin-bottom: 0.8rem;
      color: #1e293b;
      font-size: 1.1rem;
    }

    .toc-grid {
      display: flex;
      flex-wrap: wrap;
      gap: 0.6rem 1.2rem;
    }

    .toc-grid a {
      font-size: 0.9rem;
      background: white;
      padding: 0.25rem 1rem 0.25rem 0.8rem;
      border-radius: 30px;
      border: 1px solid #e2e8f0;
      color: #2d3c53;
      font-weight: 450;
      transition: all 0.15s;
    }

    .toc-grid a:hover {
      background: #f0b400;
      border-color: #f0b400;
      color: white;
    }

    .contact-details {
      background: #f2f4f8;
      padding: 1.4rem 1.8rem;
      border-radius: 18px;
      margin: 1.8rem 0 0.8rem;
      border-left: 4px solid #f0b400;
    }

    .contact-details p {
      margin-bottom: 0.4rem;
    }

    .back-to-top {
      position: fixed;
      bottom: 2rem;
      right: 2rem;
      background: #f0b400;
      color: #1e1e2f;
      width: 48px;
      height: 48px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.8rem;
      box-shadow: 0 6px 14px rgba(0,0,0,0.1);
      cursor: pointer;
      opacity: 0;
      transition: opacity 0.25s, transform 0.2s;
      border: none;
      z-index: 99;
    }

    .back-to-top.visible {
      opacity: 1;
    }

    .back-to-top:hover {
      transform: scale(1.05);
      background: #d9a300;
    }

    footer {
      text-align: center;
      margin-top: 2.5rem;
      font-size: 0.85rem;
      color: #64748b;
      border-top: 1px dashed #cbd5e1;
      padding-top: 2rem;
    }

    hr {
      border: none;
      border-top: 2px dashed #e9e9e9;
      margin: 2rem 0;
    }