  
    :root {
      --black: #111;
      --white: #fff;
      --gray: #f8f9fa;
      --accent: #000;
      --accent-light: #222;
    }

    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    body {
      font-family: 'Inter', sans-serif;
      background-color: var(--gray);
      color: var(--black);
      display: flex;
      min-height: 100vh;
      flex-direction: column;
    }

    header {
      background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0,0,0,0.6));
      
      color: var(--white);
      padding: 40px 20px;
      text-align: center;
      box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    }

    header h1 {
      font-weight: 600;
      font-size: 2.5rem;
      text-shadow: 1px 1px 5px rgba(0,0,0,0.7);
    }

    main {
      flex: 1;
      display: flex;
      max-width: 1200px;
      margin: 30px auto;
      padding: 0 20px;
      gap: 30px;
      width: 100%;
    }

    nav {
      flex-basis: 250px;
      background: var(--white);
      border-radius: 12px;
      box-shadow: 0 10px 20px rgba(0,0,0,0.07);
      padding: 20px;
      position: sticky;
      top: 20px;
      height: fit-content;
    }

    nav h2 {
      font-size: 1.3rem;
      margin-bottom: 15px;
      font-weight: 600;
      color: var(--accent);
      border-bottom: 2px solid var(--accent);
      padding-bottom: 8px;
    }

    nav ul {
      list-style: none;
    }

    nav ul li {
      margin-bottom: 12px;
    }

    nav ul li a {
      text-decoration: none;
      color: var(--black);
      font-weight: 500;
      transition: color 0.3s ease;
      display: block;
      padding: 6px 10px;
      border-radius: 6px;
    }

    nav ul li a:hover,
    nav ul li a.active {
      background-color: var(--accent);
      color: var(--white);
      font-weight: 600;
    }

    section.terms {
      flex: 1;
      background: var(--white);
      border-radius: 12px;
      padding: 30px 35px;
      box-shadow: 0 10px 30px rgba(0,0,0,0.08);
      overflow-y: auto;
      max-height: 75vh;
    }

    .terms_item {
      margin-bottom: 35px;
    }

    .terms_item h3 {
      position: relative;
      font-size: 1.4rem;
      font-weight: 600;
      padding-left: 45px;
      margin-bottom: 10px;
      color: var(--accent-light);
    }

    .terms_item h3::before {
      content: attr(data-index);
      position: absolute;
      left: 0;
      top: 0;
      width: 36px;
      height: 36px;
      background: var(--accent);
      color: white;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 700;
      font-size: 1rem;
      box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    }

    .terms_item p {
      font-size: 1rem;
      line-height: 1.5;
      color: #444;
    }

    footer {
      text-align: center;
      padding: 20px 15px;
      font-size: 0.9rem;
      color: #999;
      background: #fff;
      box-shadow: 0 -4px 10px rgba(0,0,0,0.03);
      margin-top: auto;
    }

    footer a {
      color: var(--accent);
      text-decoration: none;
      font-weight: 600;
    }

    footer a:hover {
      text-decoration: underline;
    }

    /* Scrollbar styling for terms */
    section.terms::-webkit-scrollbar {
      width: 8px;
    }

    section.terms::-webkit-scrollbar-thumb {
      background-color: var(--accent);
      border-radius: 8px;
    }

    @media (max-width: 900px) {
      main {
        flex-direction: column;
      }

      nav {
        position: relative;
        top: auto;
        width: 100%;
        margin-bottom: 25px;
      }

      section.terms {
        max-height: none;
        overflow-y: visible;
      }
    }
