/* Terms of Service Page Styles */

.tos-page {
  display: flex;
  min-height: 100vh;
  background: var(--white);
  padding-top: 5rem;
}

/* Left Sidebar - Navigation */
.tos-sidebar {
  position: sticky;
  top: 5rem;
  width: 280px;
  padding: 2rem 1.5rem;
  border-right: 1px solid var(--border-color);
  background: var(--white);
  height: fit-content;
  flex-shrink: 0;
}

.tos-sidebar-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0 0 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tos-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.tos-nav-item {
  margin: 0;
}

.tos-nav-link {
  display: block;
  padding: 0.5rem 0.75rem;
  color: var(--text-gray);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 400;
  border-radius: 0.375rem;
  transition: all 0.2s;
}

.tos-nav-link:hover {
  color: var(--text-dark);
  background: rgba(0, 0, 0, 0.02);
}

.tos-nav-link.active {
  color: var(--primary-green);
  font-weight: 600;
  background: var(--bg-green);
}

/* Main Content Area */
.tos-content {
  flex: 1;
  max-width: 800px;
  padding: 2rem 3rem;
  margin: 0 auto;
}

.tos-header {
  margin-bottom: 2rem;
}

.tos-logo {
  margin-bottom: 2rem;
}

.tos-logo-text {
  color: var(--primary-green);
  font-size: 1.75rem;
  font-weight: 700;
}

.tos-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-dark);
  margin: 0 0 2rem;
  line-height: 1.2;
}

.tos-section {
  margin-bottom: 2rem;
}

.tos-section-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 1rem;
}

.tos-section-title::before {
  content: attr(data-number);
  font-weight: 700;
}

.tos-text {
  color: var(--text-gray);
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0 0 1rem;
}

.tos-text strong {
  color: var(--text-dark);
  font-weight: 600;
}

/* Right Action Buttons - Fixed */
.tos-actions {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border-color);
  padding: 1rem 2rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
  z-index: 10;
}

.tos-btn {
  padding: 0.75rem 2rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.tos-btn-decline {
  background: var(--bg-cream);
  color: var(--text-gray);
  border: 1px solid var(--border-color);
}

.tos-btn-decline:hover {
  background: var(--white);
  border-color: var(--text-gray);
  color: var(--text-dark);
}

.tos-btn-accept {
  background: var(--primary-green);
  color: var(--white);
}

.tos-btn-accept:hover {
  background: var(--dark-green);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .tos-sidebar {
    width: 240px;
    padding: 1.5rem 1rem;
  }

  .tos-content {
    padding: 2rem 2rem 6rem;
  }
}

@media (max-width: 768px) {
  .tos-page {
    flex-direction: column;
    padding-top: 4rem;
  }

  .tos-sidebar {
    position: static;
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem;
  }

  .tos-nav {
    flex-direction: row;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .tos-nav::-webkit-scrollbar {
    display: none;
  }

  .tos-nav-link {
    white-space: nowrap;
    padding: 0.5rem 1rem;
  }

  .tos-content {
    padding: 2rem 1.5rem 6rem;
    max-width: 100%;
  }

  .tos-title {
    font-size: 2rem;
  }

  .tos-section-title {
    font-size: 1.125rem;
  }

  .tos-actions {
    padding: 1rem;
  }

  .tos-btn {
    padding: 0.75rem 1.5rem;
    flex: 1;
  }
}

@media (max-width: 480px) {
  .tos-title {
    font-size: 1.75rem;
  }

  .tos-section-title {
    font-size: 1rem;
  }

  .tos-text {
    font-size: 0.875rem;
  }
}
