/* ===== Base Styles ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  width: 100%;
  overflow-x: hidden;
}

body {
  width: 100%;
  overflow-x: hidden;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  line-height: 1.6;
  color: #333;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== Navigation ===== */
.terms-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background-color: #1a1a1a;
  padding: 1rem;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: center;
}

.nav-link {
  color: #ffffff;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  white-space: nowrap;
}

.nav-link:hover {
  color: #00aaff;
  background-color: rgba(255, 255, 255, 0.1);
}

/* ===== Main Content ===== */
.terms-section {
  width: 100%;
  padding: 5rem 0rem 0rem;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.terms-container {
  width: 100%;
  max-width: 900px;
  background-color: #ffffff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  margin: 1rem;
}

/* ===== Typography ===== */
.terms-container h1 {
  font-size: 2rem;
  color: #1a1a1a;
  margin-bottom: 1.5rem;
  text-align: center;
  line-height: 1.3;
  font-weight: 700;
}

.terms-container h2 {
  font-size: 1.5rem;
  color: #1a1a1a;
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 600;
  position: relative;
  padding-bottom: 0.5rem;
}

.terms-container h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: #00aaff;
  border-radius: 2px;
}

.terms-container p {
  font-size: 1rem;
  color: #444;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.terms-container ul {
  list-style-type: disc;
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
  padding-left: 0.5rem;
}

.terms-container li {
  font-size: 1rem;
  color: #444;
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

/* ===== Dividers ===== */
.terms-container hr {
  border: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, #ddd, transparent);
  margin: 2rem 0;
}

/* ===== Links ===== */
.contact-link {
  color: #00aaff;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  border-bottom: 1px solid transparent;
  word-break: break-word;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.contact-link:hover {
  color: #0077cc;
  border-bottom: 1px solid #0077cc;
}

/* ===== Media Elements ===== */
img, iframe, video, embed, object {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===== Responsive Breakpoints ===== */

/* Tablet and larger */
@media (min-width: 768px) {
  .terms-section {
    padding: 6rem 2rem 3rem;
  }
  
  .terms-container {
    padding: 3rem;
  }
  
  .terms-container h1 {
    font-size: 2.5rem;
  }
  
  .terms-container h2 {
    font-size: 1.75rem;
  }
}

/* Desktop */
@media (min-width: 992px) {
  .terms-container {
    margin: 2rem auto;
  }
}

/* Mobile (small screens) */
@media (max-width: 480px) {
  .terms-section {
    padding: 4.5rem 0.5rem 1.5rem;
  }
  
  .terms-container {
    padding: 1.5rem;
    margin: 0.5rem;
  }
  
  .terms-container h1 {
    font-size: 1.75rem;
  }
  
  .terms-container h2 {
    font-size: 1.3rem;
    margin-top: 1.5rem;
  }
  
  .terms-container p,
  .terms-container li {
    font-size: 0.95rem;
  }
  
  .nav-link {
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
  }
}

/* ===== Print Styles ===== */
@media print {
  body {
    background: none;
    padding: 0;
    font-size: 12pt;
  }
  
  .terms-nav {
    display: none;
  }
  
  .terms-section {
    padding: 0;
    min-height: auto;
  }
  
  .terms-container {
    box-shadow: none;
    border-radius: 0;
    padding: 0.5in;
    margin: 0;
    max-width: 100%;
  }
  
  .contact-link {
    color: #0066cc;
    text-decoration: underline;
  }
  
  .terms-container h1 {
    font-size: 18pt;
  }
  
  .terms-container h2 {
    font-size: 16pt;
  }
  
  .terms-container p,
  .terms-container li {
    font-size: 12pt;
  }
}

/* ===== Utility Classes ===== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}