:root {
  --primary: #3b82f6;
  --dark: #0f172a;
  --gray: #64748b;
  --bg: #f8fafc;
  --border: #e2e8f0;
}

body {
  background-color: var(--bg);
  font-family: "Poppins", sans-serif;
  color: var(--dark);
  line-height: 1.6;
}

/* Hero Section */
.terms-hero {
  background: var(--dark);
  color: white;
  padding: 60px 0;
  text-align: center;
  margin-bottom: 40px;
}

.terms-hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.terms-hero p {
  color: #94a3b8;
  font-size: 0.95rem;
}

/* Layout */
.terms-container {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 50px;
  padding-bottom: 60px;
}

/* Sidebar */
.terms-sidebar {
  position: relative;
}

#termsNav {
  position: sticky;
  top: 100px; /* Offset for fixed header */
  background: white;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 5px;
}

#termsNav a {
  text-decoration: none;
  color: var(--gray);
  font-size: 0.9rem;
  padding: 10px 15px;
  border-radius: 6px;
  transition: all 0.2s;
  border-left: 3px solid transparent;
}

#termsNav a:hover {
  background: #f1f5f9;
  color: var(--dark);
}

#termsNav a.active {
  background: #eff6ff;
  color: var(--primary);
  border-left-color: var(--primary);
  font-weight: 600;
}

/* Content */
.terms-content {
  background: white;
  padding: 40px;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.01);
}

section {
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid #f1f5f9;
  scroll-margin-top: 100px; /* Fix for sticky header covering text */
}

section:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

section h2 {
  font-size: 1.5rem;
  color: var(--dark);
  margin-bottom: 20px;
  font-weight: 600;
}

section p {
  color: #475569;
  margin-bottom: 15px;
}

section ul {
  margin-left: 20px;
  margin-bottom: 15px;
}

section ul li {
  color: #475569;
  margin-bottom: 10px;
}

section strong {
  color: var(--dark);
}

/* Contact List */
.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
}

.contact-list i {
  color: var(--primary);
}

/* Responsive */
@media (max-width: 900px) {
  .terms-container {
    grid-template-columns: 1fr;
  }

  .terms-sidebar {
    display: none; /* Hide sidebar on mobile */
  }

  .terms-content {
    padding: 25px;
  }
}
