  :root {
      --background-light: #E4E6ED;
      --background-dark: #0F1117;
      --text-light: #1A1A1A;
      --text-dark: #EDEDED;
      --footer-padding: 1.2rem 2rem;
      --footer-border: rgba(0, 0, 0, 0.05);
      --font-family: 'Inter', sans-serif;
      --footer-bg-light: #F1F3F7;
      --footer-bg-dark: #1B1F2A;
      --hover-bg: rgba(100, 100, 100, 0.1);
      --link-text-colour: #3a6efc;
      --link-hover-dark: #7fa6ff;
  }

  * {
      user-select: none;
  }

  body {
      margin: 0;
      font-family: var(--font-family);
      background-color: var(--background-light);
      color: var(--text-light);
      line-height: 1.6;
      padding: 2rem;
      background-image: linear-gradient(to right top, #f2f5ff, #e2eaff);

  }

  body.dark {
      background-color: var(--background-dark);
      color: var(--text-dark);
      background-image: linear-gradient(to right top, #0f1117, #1b1f2a);

  }




  .footer-right a.link-blue {
      color: var(--link-text-colour);
  }

  h1,
  h2 {
      color: var(--link-text-colour);
  }

  a {
      color: var(--link-text-colour);
      text-decoration: none;
  }

  a:hover {
      color: var(--link-hover-dark);
  }

  section {
      max-width: 800px;
      margin: auto;
  }

  h1 {
      font-size: 2rem;
      margin-bottom: 0.5rem;
  }

  h2 {
      font-size: 1.5rem;
      margin-top: 2rem;
      border-bottom: 2px solid var(--hover-bg);
      padding-bottom: 0.3rem;
  }

  p {
      margin: 1rem 0;
  }

  ul {
      padding-left: 1.5rem;
  }

  /* Terms container base styles */
  .terms {
      max-width: 700px;
      margin: 2rem auto;
      padding: 1.5rem 2rem;
      border-radius: 12px;
      font-family: var(--font-family);
      font-size: 1rem;
      line-height: 1.5;
      transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
      background-color: var(--footer-bg-light);
      color: var(--text-light);
      border: 1px solid var(--footer-border);
  }

  /* Dark mode overrides */
  body.dark .terms {
      background-color: var(--footer-bg-dark);
      color: var(--text-dark);
      border-color: rgba(255, 255, 255, 0.1);
  }


  .site-footer {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: var(--footer-padding);
      font-size: 0.95rem;
      border-top: 1px solid var(--footer-border);
      background-color: var(--footer-bg-light);
      color: var(--text-light);
      transition: background-color 0.3s ease, color 0.3s ease;
      flex-wrap: wrap;

  }

  body.dark .site-footer {
      background-color: var(--footer-bg-dark);
      color: var(--text-dark);
  }

  .footer-left button {
      background: none;
      border: none;
      font-size: 1rem;
      cursor: pointer;
      color: inherit;
      display: flex;
      align-items: center;
      gap: 0.5rem;
      padding: 0.5rem 1rem;
      border-radius: 8px;
      transition: background 0.3s;
  }

  .footer-left button:hover {
      background-color: var(--hover-bg);
  }

  .footer-right {
      display: flex;
      gap: 1.5rem;
      align-items: center;
      flex-wrap: wrap;
  }

  .footer-right a {
      text-decoration: none;
      color: inherit;
      font-weight: 500;
      transition: color 0.3s ease;
  }

  .footer-right a:hover {
      text-decoration: underline;
  }

  @media (max-width: 768px) {
      .site-footer {
          flex-direction: column;
          text-align: center;
          gap: 1rem;
      }

      .footer-left,
      .footer-right {
          justify-content: center;
          width: 100%;
      }

      .footer-right {
          flex-direction: column;
          gap: 0.75rem;
      }

      .footer-left button {
          justify-content: center;
          width: 100%;
      }
  }

  @media (max-width: 480px) {
      .footer-left button {
          padding: 0.5rem;
          font-size: 0.9rem;
      }

      .footer-right a {
          font-size: 0.9rem;
      }
  }

  #back-button {
      position: absolute;
      top: 1rem;
      left: 1rem;
      font-size: 1rem;
      background: none;
      border: none;
      color: var(--link-text-colour);
      text-decoration: none;
      padding: 0.5rem 0.75rem;
      border-radius: 8px;
      transition: background-color 0.3s ease, color 0.3s ease;
  }

  #back-button:hover {
      background-color: var(--hover-bg);
      text-decoration: underline;
  }

  body.dark #back-button {
      color: var(--text-dark);
  }

  body.dark #back-button:hover {
      background-color: rgba(255, 255, 255, 0.05);
  }