/* Design System */
:root {
  --background: hsl(0 0% 100%);
  --foreground: hsl(152 30% 20%);
  --primary: hsl(152 35% 25%);
  --primary-foreground: hsl(0 0% 98%);
  --border: hsl(152 15% 88%);
  --muted-foreground: hsl(152 15% 45%);
  --forest-dark: hsl(152 40% 15%);
  --forest-medium: hsl(152 35% 25%);
  --gold: hsl(35 80% 65%);
  --radius: 12px;
  --shadow-card: 0 8px 32px -8px hsl(152 40% 15% / 0.1);
  --forest-dark: hsl(152 40% 15%);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  max-width: 100vw;
  overflow-x: hidden; /* prevent horizontal scroll completely */
}


body {
  background: var(--background);
  color: var(--foreground);
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.7;
}


.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: hsla(0, 0%, 100%, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.logo-img {
  height: 10rem;
  width: auto;
}

.nav.desktop-nav {
  display: none;
}

.nav-link {
  text-decoration: none;
  color: var(--foreground);
  font-weight: 500;
  transition: color 0.3s;
}

.nav-link:hover {
  color: var(--primary);
}

/* Mobile Menu Button */
.menu-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.8rem;
  color: var(--foreground);
}

/* Mobile Menu Sliding Panel */
.mobile-menu {
  position: fixed; /* fixed to viewport */
  top: 0;
  right: 0;
  height: 100vh;
  width: 250px;
  background: var(--background);
  box-shadow: var(--shadow-card);
  transform: translateX(100%); /* start offscreen to the right */
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  padding: 2rem 1.5rem;
  z-index: 999;
}

/* When menu is active */
.mobile-menu.active {
  transform: translateX(0); /* slide in */
}

.mobile-link {
  display: block;
  color: var(--foreground);
  text-decoration: none;
  font-weight: 500;
  margin: 0.8rem 0;
  transition: color 0.3s;
}

.mobile-link:hover {
  color: var(--primary);
}

.close-btn {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  color: var(--foreground);
  margin-bottom: 1rem;
  transition: color 0.3s;
}

.close-btn:hover {
  color: var(--primary);
}

/* Prevent page scroll when menu open */
body.menu-open {
  overflow: hidden;
}

/* Main */
.main {
  padding: 4rem 1.5rem;
}

.page-title {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--forest-dark);
  margin-bottom: 1rem;
}

.updated {
  color: var(--muted-foreground);
  margin-bottom: 2rem;
}

.section {
  margin-bottom: 2.5rem;
}

.section h2 {
  font-size: 1.5rem;
  color: var(--forest-dark);
  margin-bottom: 0.8rem;
}

/* Footer */


.footer {
  background-color: var(--forest-dark); /* forest-dark */
  color: #fff;
}

.footer .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
  text-align: center;
}

.footer-top {
  gap: 2rem;
  text-align: center;
}

.footer .brand .logo {
  height: 16rem;
  width: auto;
  display: block;
  margin: 0 auto;
  filter: brightness(0) invert(1);
  transition: opacity 0.3s;
  text-align: center;
}

.footer .brand .logo:hover {
  opacity: 0.8;
}

.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.footer-nav ul li a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-nav ul li a:hover {
  color: #d4af37; /* gold */
}

.footer-nav .contact-email {
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
}

.footer-bottom {
  border-top: 1px solid #3b6e4d; /* forest-light */
  padding-top: 2rem;
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer-bottom .legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.875rem;
}

.footer-bottom .legal-links a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-bottom .legal-links a:hover {
  color: #d4af37;
}

.footer-bottom .copyright {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
}

@media (min-width: 768px) {
  .footer-top {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

/* Responsive */
@media (min-width: 1024px) {
  .menu-btn {
    display: none;
  }
  .nav.desktop-nav {
    display: flex;
    gap: 2rem;
  }
  .mobile-menu {
    display: none !important;
  }
}



/* Extra styles specific to Terms page */
.terms-list {
  margin-top: 1rem;
  margin-bottom: 2rem;
  padding-left: 1.5rem;
  list-style-type: disc;
  color: var(--muted-foreground);
}

.terms-list li {
  margin-bottom: 0.5rem;
}
