/* -------------------------------------------------
   LEGAL PAGES – FULLY RESPONSIVE + MOBILE: HIDE LEGAL NAV
   ------------------------------------------------- */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #eef0ef;
  font-family: 'Satoshi', 'Poppins', Arial, sans-serif;
  position: relative;
  overflow-x: hidden;
}

/* ===== HEADER STYLES - USE SAME AS INDEX.HTML ===== */
.top-header {
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: #f1f1f1;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  backdrop-filter: none;
  transition: backdrop-filter 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.top-header.scrolled {
  backdrop-filter: blur(12px);
  background: rgba(241, 241, 241, 0.85);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.announcement {
  background: #8d0bff;
  color: white;
  text-align: center;
  font-size: 13px;
  padding: 4px 16px;
  line-height: 1.4;
  font-weight: 400;
  animation: fadeIn 0.5s ease-out;
}

.announcement a {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
}

.announcement strong {
  font-weight: 700;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 10px 80px;
  animation: fadeUp 0.6s ease-out 0.2s both;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

.logo img {
  height: 50px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.nav-links {
  display: flex;
  gap: 40px;
}

.nav-links a {
  text-decoration: none;
  color: #666;
  font-size: 16px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 0.3s ease, transform 0.2s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: #8d0bff;
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a:hover {
  color: #8d0bff;
  transform: translateY(-1px);
}

.nav-buttons {
  display: flex;
  align-items: center;
}

.try-free {
  background: #8d0bff;
  color: #fff;
  border: none;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Satoshi', sans-serif;
  box-shadow: 0 4px 6px rgba(141, 11, 255, 0.2);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  display: inline-block;
}

.try-free::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.try-free:hover::before {
  left: 100%;
}

.try-free:hover {
  background: #6a00cc;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(141, 11, 255, 0.3);
}

/* ===== LEGAL NAV ===== */
.legal-nav {
  padding: 20px 0;
  font-size: 14px;
  background: #f8f8f8;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  animation: fadeUp 0.6s ease-out 0.3s both;
}

.legal-nav p {
  margin: 0;
  color: #000;
  font-weight: 600;
  font-size: 16px;
  text-align: left;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 80px;
}

.legal-nav a {
  color: #777;
  text-decoration: none;
  font-weight: 400;
  margin-left: 12px;
  font-size: 14px;
  transition: color 0.3s ease;
  position: relative;
}

.legal-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: #8d0bff;
  transition: width 0.3s ease;
}

.legal-nav a:hover::after {
  width: 100%;
}

.legal-nav a.active {
  color: #8d0bff;
}

.legal-nav a:hover {
  color: #8d0bff;
}

/* ===== MAIN CONTENT ===== */
.legal-container {
  display: flex;
  width: 90%;
  max-width: 1440px;
  margin: 60px auto 100px;
  padding: 0 80px;
  min-height: calc(100vh - 260px);
  gap: 60px;
  animation: fadeUp 0.6s ease-out 0.4s both;
}

.legal-content {
  flex: 3;
  overflow-y: auto;
  padding-right: 40px;
  scroll-behavior: smooth;
}

.legal-content::-webkit-scrollbar {
  width: 6px;
}

.legal-content::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.legal-content::-webkit-scrollbar-thumb {
  background: #8d0bff;
  border-radius: 10px;
}

.legal-content h1 {
  font-size: 42px;
  font-weight: 800;
  margin: 0 0 12px;
  color: #111;
  letter-spacing: -0.02em;
}

.last-updated {
  color: #666;
  font-size: 14px;
  margin-bottom: 40px;
  font-weight: 400;
}

.legal-content h2 {
  font-size: 20px;
  margin: 40px 0 16px;
  color: #111;
  font-weight: 700;
  padding-top: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.legal-content h2:first-of-type {
  border-top: none;
  padding-top: 0;
}

.legal-content p {
  font-size: 16px;
  line-height: 1.7;
  color: #444;
  margin: 0 0 20px;
  font-weight: 400;
}

.legal-content ul {
  padding-left: 24px;
  margin: 16px 0 32px;
}

.legal-content li {
  margin-bottom: 10px;
  font-size: 16px;
  color: #444;
  line-height: 1.6;
}

.legal-content strong {
  color: #111;
  font-weight: 600;
}

.topics {
  flex: 1;
  position: sticky;
  top: 140px;
  align-self: flex-start;
  background: #fff;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.05);
  max-height: 400px;
  overflow-y: auto;
}

.topics h3 {
  font-size: 18px;
  margin-bottom: 20px;
  color: #111;
  font-weight: 700;
}

.topics ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.topics li {
  margin-bottom: 12px;
}

.topics a {
  color: #666;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  display: block;
  padding: 4px 0;
  position: relative;
}

.topics a::before {
  content: '';
  position: absolute;
  left: -12px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 0;
  background: #8d0bff;
  border-radius: 2px;
  transition: height 0.3s ease;
}

.topics a:hover {
  color: #8d0bff;
  transform: translateX(4px);
}

.topics a:hover::before {
  height: 16px;
}

/* ===== SUBSCRIBE SECTION - SAME AS INDEX.HTML ===== */
.subscribe-section {
  position: relative;
  background: #eef0ef;
  padding: 40px 0px;
  text-align: center;
  max-width: 2000px;
  margin: 0 auto;
  font-family: 'Satoshi', sans-serif;
  overflow: hidden;
}

.subscribe-wrapper {
  position: relative;
  z-index: 10;
}

.subscribe-title {
  font-size: 42px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 40px 0;
  font-family: 'Satoshi', sans-serif;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  opacity: 0;
  animation: fadeUp 0.6s ease-out 1s forwards;
}

.footer-bottom-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeUp 0.6s ease-out 1.4s forwards;
}

.social-dots .social-icon svg {
  color: #000000;
  width: 20px;
  height: 20px;
}

.social-dots {
  display: flex;
  gap: 18px;
  align-items: center;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  width: auto;
  height: auto;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
}

.social-icon:hover {
  opacity: 0.9;
  transform: translateY(-3px) scale(1.1);
}

.social-icon svg {
  width: 20px;
  height: 20px;
  display: block;
  fill: currentColor;
  transition: fill 0.2s ease;
}

.separator-line {
  width: 1px;
  height: 20px;
  background: #000000;
}

.legal-links {
  display: flex;
  gap: 24px;
}

.legal-links a {
  color: #000000;
  text-decoration: none;
  font-size: 16px;
  font-weight: 400;
  font-family: 'Satoshi', sans-serif;
  transition: all 0.3s ease;
  position: relative;
}

.legal-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: #000000;
  transition: width 0.3s ease;
}

.legal-links a:hover::after {
  width: 100%;
}

.legal-links a:hover {
  opacity: 0.8;
}

.copyright-text {
  color: #000000;
  font-size: 14px;
  margin: 0;
  font-family: 'Satoshi', sans-serif;
  opacity: 0;
  animation: fadeUp 0.6s ease-out 1.6s forwards;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablet Responsive */
@media (max-width: 1024px) {
  .navbar {
    padding: 10px 40px;
  }

  .legal-nav p {
    padding: 0 40px;
  }

  .legal-container {
    width: 95%;
    gap: 40px;
  }

  .legal-content h1 {
    font-size: 36px;
  }

  .legal-content h2 {
    font-size: 18px;
  }

  .legal-content p,
  .legal-content li {
    font-size: 15px;
  }
}

/* Mobile Responsive */
@media (max-width: 768px) {

  /* HIDE LEGAL NAV ON MOBILE */
  .legal-nav {
    display: none;
  }

  /* Navigation */
  .navbar {
    padding: 10px 20px;
  }

  .hamburger-menu {
    display: block;
  }

  .nav-links,
  .nav-buttons {
    display: none;
  }

  /* Legal Content */
  .legal-container {
    width: 100%;
    padding: 0 20px;
    flex-direction: column;
    margin-top: 30px;
    margin-bottom: 60px;
    gap: 30px;
  }

  .legal-content {
    padding-right: 0;
    padding-bottom: 40px;
  }

  .topics {
    display: none;
  }

  .legal-content h1 {
    font-size: 32px;
  }

  .legal-content h2 {
    font-size: 18px;
    margin-top: 32px;
  }

  .legal-content p,
  .legal-content li {
    font-size: 15px;
    line-height: 1.6;
  }

  /* Mobile menu styles from index.css are already included */
}

/* Small Mobile */
@media (max-width: 480px) {
  .navbar {
    padding: 14px 16px;
  }

  .logo img {
    height: 44px;
  }

  .legal-content h1 {
    font-size: 28px;
  }

  .legal-content h2 {
    font-size: 17px;
  }

  .legal-content p,
  .legal-content li {
    font-size: 14.5px;
  }

  /* Footer adjustments for mobile */
  .footer-bottom-row {
    flex-direction: column;
    gap: 24px;
  }

  .separator-line {
    display: none;
  }
}