/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Body Styling */
body {
  font-family: "Inter Tight", sans-serif;
  color: #ecf7f4;
  background-color: #030908;
  line-height: 1.6;
}

/* Legal Documents Section */
.legal-documents {
  background-color: #030908;
  padding: 4rem 1rem;
  color: #ecf7f4;
}

.legal-container {
  max-width: 1280px;
  margin: 0 auto;
  text-align: center;
}

.legal-container h1 {
  font-size: 2.369rem; /* Perfect Fourth Scale */
  color: #99ddcc;
  margin-bottom: 2rem;
}

.tab-content {
  display: none; /* Hide all tab content by default */
  text-align: left;
  padding: 2rem;
  background-color: #0a1a17;
  border-radius: 8px;
  margin-top: 1rem;
}

.tab-content.active {
  display: block; /* Show active tab content */
}

.tab-content h2 {
  font-size: 1.75rem;
  color: #99ddcc;
  margin-bottom: 1rem;
}

.tab-content p {
  font-size: 1rem;
  color: #ecf7f4;
  margin-bottom: 1rem;
}

/* Navbar Styling */
.navbar {
  margin-top: 25px;
  padding: 1rem 0;
  background-color: transparent;
  position: relative;
  z-index: 100;
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(90deg, rgba(3, 9, 8, 0.8), rgba(4, 19, 16, 0.8));
  backdrop-filter: blur(8px);
  border: 1px solid rgba(59, 206, 170, 0.1);
  border-radius: 12px;
  padding: 1rem 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Left Side: Logo */
.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ecf7f4;
  text-decoration: none;
  position: relative;
  padding: 0.5rem 0;
}

.logo::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #3bceaa, transparent);
  transition: width 0.3s ease;
}

.logo:hover::after {
  width: 100%;
}

.logo .accent {
  color: #3bceaa; /* Accent color */
}

/* Centered: Navigation Links */
.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0 auto; /* Center the links */
}

.nav-links li a {
  color: #ecf7f4;
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 0; /* Removed horizontal padding */
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.nav-links li a::before {
  content: "";
  position: absolute;
  bottom: 0; /* Changed from top to bottom */
  left: 0;
  width: 0; /* Start with 0 width */
  height: 2px; /* Reduced height to create an underline effect */
  background: #3bceaa; /* Solid color instead of gradient */
  opacity: 1;
  z-index: -1;
  transition: width 0.3s ease; /* Transition the width instead of opacity */
}

.nav-links li a:hover {
  color: #3bceaa; /* Changed hover color */
  transform: translateY(-1px);
}

.nav-links li a:hover::before {
  width: 100%; /* Expand width on hover */
}

/* Right Side: Dashboard Button */
.billing-button {
  font-size: 1rem;
  font-weight: 500;
  color: #ecf7f4;
  background: linear-gradient(135deg, #3bceaa 0%, #247d67 100%);
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(59, 206, 170, 0.2);
  position: relative;
  overflow: hidden;
}

.billing-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 206, 170, 0.3);
}

.billing-button:active {
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    gap: 1rem;
  }
  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .legal-container {
    padding: 0 1rem;
  }
}
