:root {
  --primary-color: #e50914;
  --secondary-color: #f40612;
  --text-color: #333;
  --light-gray: #f5f5f5;
  --medium-gray: #e0e0e0;
  --dark-gray: #666;
  --background-color: #141414
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-color)
}

header {
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

nav {
  /* @tweakable The background color of the navigation bar */
  background-color: #141414;
  /* @tweakable Remove margins and set full-width for the nav bar */
  max-width: none;
  margin: 0;
  padding: 1rem;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  /* @tweakable Ensure the nav bar stretches across the full viewport width */
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

/* @tweakable The gap between navigation links */
.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

/* @tweakable The color of navigation links */
.nav-links a {
  text-decoration: none;
  color: white;
  transition: color 0.3s ease;
  margin-left: 0;
}

.nav-links a:hover {
  color: var(--primary-color);
}

/* @tweakable The background color of the dropdown container */
.legal-dropdown {
  position: relative;
  display: inline-block;
}

/* @tweakable The background color of the dropdown content */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: var(--light-gray);
  min-width: 160px;
  box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
  z-index: 1;
  border-radius: 4px;
  top: 100%;
  left: 0;
}

/* @tweakable The color of dropdown content links */
.dropdown-content a {
  color: white;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  transition: background-color 0.3s ease;
}

/* @tweakable The hover background color of dropdown items */
.dropdown-content a:hover {
  background-color: var(--medium-gray);
  color: var(--primary-color);
}

/* @tweakable Controls whether the dropdown shows on hover (remove if you want click-only) */
.legal-dropdown:hover .dropdown-content {
  display: block;
}

/* @tweakable The color of the Legal link when dropdown is active */
.legal-dropdown:hover > a {
  color: var(--primary-color);
}

.terms-container {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1rem;
}

h1 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 2.5rem;
}

.last-updated {
  color: var(--dark-gray);
  margin-bottom: 2rem;
  font-style: italic;
}

.terms-section {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--light-gray);
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.terms-section:hover {
  transform: translateY(-2px);
}

.terms-section h2 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.terms-section ul {
  margin-left: 1.5rem;
  margin-top: 0.5rem;
}

.terms-section li {
  margin-bottom: 0.5rem;
}

footer {
  background: var(--light-gray);
  padding: 2rem 0;
  margin-top: 4rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: 0 1rem;
}

.footer-section h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.footer-section a {
  display: block;
  color: var(--dark-gray);
  text-decoration: none;
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--primary-color);
}

.footer-section a.active {
  color: var(--primary-color);
  font-weight: bold;
}

.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--medium-gray);
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .nav-links a {
    margin-left: 0;
    font-size: 0.9rem;
  }
}