@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');

body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  color: #222;
  background: linear-gradient(180deg, #f9fbff, #eaf3ff);
  transition: background 0.5s ease, color 0.4s ease;
}

/* Header */
.main-header {
  background: #fff;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo {
  display: flex;
  align-items: center;
  color: #0078d7;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.3rem;
}

.logo img {
  width: 36px;
  margin-right: 10px;
}

.navbar a {
  margin: 0 16px;
  text-decoration: none;
  color: #222;
  font-weight: 500;
  transition: color 0.3s ease;
}

.navbar a.active,
.navbar a:hover {
  color: #00bcd4;
}

.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
}

.theme-toggle img {
  width: 24px;
  transition: transform 0.3s ease;
}

.theme-toggle:hover img {
  transform: rotate(15deg);
}

/* Content */
.legal-section {
  max-width: 850px;
  margin: 80px auto;
  padding: 0 20px;
  line-height: 1.7;
}

.legal-section h1 {
  font-size: 2.4rem;
  color: #003366;
  margin-bottom: 15px;
}

.legal-section h2 {
  color: #0078d7;
  margin-top: 30px;
  font-size: 1.3rem;
}

.legal-section p, .legal-section ul {
  color: #444;
  font-size: 1rem;
  margin-bottom: 10px;
}

.legal-section a {
  color: #0078d7;
  text-decoration: none;
}

.legal-section a:hover {
  text-decoration: underline;
}

/* Footer */
.main-footer {
  background: linear-gradient(90deg, #003366, #0078d7);
  color: white;
  padding: 25px 30px;
  text-align: center;
}

.footer-links a {
  color: #cfe8ff;
  margin: 0 10px;
  text-decoration: none;
}

.footer-links a:hover {
  color: #00e5ff;
}

/* Fade Transition */
#theme-fade-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.1);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}
body.theme-transition #theme-fade-overlay {
  opacity: 1;
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 0.8s ease-out forwards;
}

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

/* Dark Mode */
body.dark {
  background: linear-gradient(180deg, #0b1a2b, #002244);
  color: #f1f5fb;
}
body.dark .main-header {
  background: rgba(10, 25, 45, 0.9);
}
body.dark .navbar a {
  color: #d7e3ff;
}
body.dark .legal-section h1 {
  color: #00e5ff;
}
body.dark .legal-section h2 {
  color: #1ad1ff;
}
body.dark .main-footer {
  background: linear-gradient(90deg, #002b55, #005b8e);
}

@media (max-width: 768px) {
  .navbar {
    display: none;
  }
  .legal-section h1 {
    font-size: 2rem;
  }
}

