/* ================= ROOT ================= */
:root {
  --text: #111;
  --muted: #666;
  --border: #ddd;
  --bg: #fff;
}

/* ================= BASE ================= */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
}

/* ================= HEADER ================= */
.header {
  border-bottom: 1px solid var(--border);
}

.container {
  max-width: 1100px;
  margin: auto;
  padding: 30px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: 900;
  font-size: 1.4rem;
  letter-spacing: 0.4px;
}

.logo span {
  font-weight: 700;
}

nav a {
  margin-left: 26px;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  position: relative;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--text);
  transition: width .3s ease;
}

nav a:hover::after {
  width: 100%;
}

/* ================= TERMS / LEGAL ================= */
.terms-page {
  max-width: 880px;
  margin: 100px auto;
  padding: 0 20px;
}

.terms-page h1 {
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -0.6px;
  margin-bottom: 10px;
}

.updated {
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: 80px;
}

/* SECTIONS */
.terms-page section {
  margin-bottom: 70px;
}

/* SECTION HEADINGS */
.terms-page h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 16px;
}

/* TEXT */
.terms-page p {
  font-size: 16.5px;
  line-height: 1.9;
  color: #2a2a2a;
  max-width: 720px;
}

/* LIST */
.terms-page ul {
  margin-top: 18px;
  padding-left: 18px;
}

.terms-page li {
  font-size: 16px;
  margin: 12px 0;
  color: #2a2a2a;
}

/* LINKS */
.terms-page a {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

.terms-page a:hover {
  opacity: 0.75;
}

/* ================= FOOTER ================= */
.footer {
  border-top: 1px solid var(--border);
  padding: 28px 20px;
}

.footer-inner {
  max-width: 1100px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-left {
  font-size: 14px;
  white-space: nowrap;
}

.footer-center {
  display: flex;
  gap: 18px;
}

.footer-center a {
  font-size: 18px;
  color: var(--text);
  text-decoration: none;
  transition: transform .2s ease, opacity .2s ease;
}

.footer-center a:hover {
  transform: translateY(-2px);
  opacity: 0.7;
}

.footer-right {
  display: flex;
  gap: 18px;
}

.footer-right a {
  font-size: 13px;
  color: var(--text);
  text-decoration: none;
  transition: transform .2s ease, opacity .2s ease;
}

.footer-right a:hover {
  transform: translateY(-2px);
  opacity: 0.7;
}

.hamburger {
    display: none;
}

.mobile-nav {
    display: none;
}

@media (max-width: 768px) {

  /* ===================== MOBILE HEADER / NAV ===================== */

  .hamburger {
      display: block;
      cursor: pointer;
      font-size: 28px;
      margin-right: 15px;
  }

  /* Hide Desktop Nav */
  nav, 
  .nav-right nav {
      display: none !important;
  }
  /* -------------------------------
   MOBILE DARK MODE NAV
    ---------------------------------*/
    body.dark .mobile-nav {
        background: var(--card); /* dark background */
    }

    body.dark .mobile-nav a {
        color: var(--text); /* white text */
    }

    body.dark .mobile-nav a:hover {
        background: var(--accent); /* hover background in dark mode */
        color: var(--bg);           /* hover text in dark mode */
    }

    body.dark .mobile-close {
        color: var(--text); /* close button white */
    }

    body.dark .mobile-close:hover {
        color: var(--accent); /* hover color for close button */
    }

  /* Mobile Nav Dropdown */
  .mobile-nav {
      display: none;
      flex-direction: column;
      background: #fff;
      position: fixed;
      top: 60px;
      left: 0;
      width: 100%;
      padding: 10px 0;
      border-bottom: 1px solid #ccc;
      z-index: 9999 !important;
  }

  .mobile-nav.open {
      display: flex;
  }

  .mobile-nav a {
      padding: 12px 20px;
      color: #000;
      font-weight: 600;
      text-decoration: none;
      border-top: 1px solid #eee;
  }

  .mobile-nav a:first-child {
      border-top: none;
  }

  .mobile-nav a:hover {
      background: #000;
      color: #fff;
      transition: 0.2s ease;
  }

  .mobile-close {
    background: none;
    border: none;
    font-size: 28px;
    color: var(--text);
    text-align: right;
    width: 100%;
    padding: 10px 20px;
    cursor: pointer;
}

.mobile-close:hover {
    color: var(--accent);
}
.footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-center,
  .footer-right {
    justify-content: center;
  }
}