/* Base Reset & Typography */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f9f9f9;
  color: #333;
  line-height: 1.7;
}

/* Header */
.terms-header {
  text-align: center;
  background-color: #fff;
  padding: 2rem 1rem;
  border-bottom: 1px solid #ddd;
}

.terms-header h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.terms-header p {
  color: #666;
  max-width: 700px;
  margin: 0.5rem auto;
}

/* Table of Contents */
.terms-toc {
  background-color: #fff;
  padding: 1.5rem;
  margin: 2rem auto;
  border-left: 4px solid #06BBCC;
  border-radius: 5px;
  max-width: 800px;
}

.terms-toc h2 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.terms-toc ul {
  list-style-type: none;
  padding-left: 0;
}

.terms-toc li {
  margin-bottom: 0.6rem;
}

.terms-toc a {
  text-decoration: none;
  color: #06BBCC;
  transition: color 0.2s ease;
}

.terms-toc a:hover {
  color: #06BBCC;
}

/* Main Content */
.terms-content {
  max-width: 800px;
  margin: 2rem auto;
  background-color: #fff;
  padding: 2rem;
  border-radius: 5px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.terms-content section {
  margin-bottom: 2rem;
}

.terms-content h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #222;
}

.terms-content p,
.terms-content ul {
  margin-bottom: 1rem;
  color: #555;
}

.terms-content ul {
  padding-left: 1.25rem;
}

.terms-content li {
  margin-bottom: 0.5rem;
}

/* Links */
a {
  color: #007BFF;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Footer */
.terms-footer {
  text-align: center;
  font-size: 0.875rem;
  color: #999;
  margin-top: 3rem;
  padding: 1rem;
}

/* RESPONSIVENESS */

/* Large desktops */
@media (min-width: 1080px) {
  html {
    font-size: 17px;
  }
}

/* Tablets and small desktops */
@media (max-width: 991px) {
  html {
    font-size: 16px;
  }

  .terms-header h1 {
    font-size: 1.75rem;
  }

  .terms-toc,
  .terms-content {
    padding: 1.5rem;
  }
}

/* Phones */
@media (max-width: 600px) {
  html {
    font-size: 15px;
  }

  .terms-header,
  .terms-content,
  .terms-toc {
    padding: 1rem;
  }

  .terms-header h1 {
    font-size: 1.5rem;
  }

  .terms-toc h2 {
    font-size: 1.1rem;
  }

  .terms-toc li {
    font-size: 0.95rem;
  }

  .terms-content h2 {
    font-size: 1.25rem;
  }
}

/* Very small phones (350px - 400px) */
@media (max-width: 400px) {
  html {
    font-size: 15px;
  }

  .terms-header h1 {
    font-size: 1.35rem;
  }

  .terms-content,
  .terms-toc {
    padding: 0.8rem;
  }

  .terms-content h2 {
    font-size: 1.2rem;
  }
}
