/* JANNAT Terms of Service - Tropical Paradise Theme */
/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', 'Playfair Display', sans-serif;
  line-height: 1.6;
  color: #2c3e50;
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #667eea 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 30px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(45deg, #00d4aa, #0099cc);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(45deg, #00e6b8, #00aadd);
}

/* Navigation */
.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 2px solid rgba(0, 212, 170, 0.3);
  padding: 1.5rem 0;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(45deg, #00d4aa, #0099cc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 20px rgba(0, 212, 170, 0.3);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  color: #2c3e50;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  position: relative;
  overflow: hidden;
}

.nav-links a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 170, 0.2), transparent);
  transition: left 0.5s;
}

.nav-links a:hover::before {
  left: 100%;
}

.nav-links a:hover,
.nav-links a.active {
  color: #00d4aa;
  background: rgba(0, 212, 170, 0.1);
  transform: translateY(-2px);
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.mobile-menu-btn span {
  width: 25px;
  height: 3px;
  background: linear-gradient(45deg, #00d4aa, #0099cc);
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  color: white;
  padding: 160px 0 120px;
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 60vh;
  display: flex;
  align-items: center;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(0, 212, 170, 0.1) 0%, transparent 50%);
  animation: paradiseFloat 15s ease-in-out infinite;
}

@keyframes paradiseFloat {
  0%, 100% { transform: translateX(0) translateY(0); }
  50% { transform: translateX(-15px) translateY(-15px); }
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 30px;
  position: relative;
  z-index: 1;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 2rem;
  font-weight: 700;
  background: linear-gradient(45deg, #ffffff, #00d4aa, #ffd700);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: paradiseGlow 3s ease-in-out infinite alternate;
}

@keyframes paradiseGlow {
  0% { filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5)); }
  100% { filter: drop-shadow(0 0 30px rgba(0, 212, 170, 0.8)); }
}

.hero-content p {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
}

/* Content Section */
.content-section {
  padding: 120px 0;
  background: rgba(255, 255, 255, 0.05);
  position: relative;
}

.content-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 30% 70%, rgba(0, 212, 170, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 70% 30%, rgba(102, 126, 234, 0.05) 0%, transparent 50%);
}

.content-wrapper {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.last-updated {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border-radius: 15px;
  padding: 1.5rem;
  margin-bottom: 3rem;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.last-updated p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  margin: 0;
}

.terms-section {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 3rem;
  margin-bottom: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.terms-section:hover {
  border-color: rgba(0, 212, 170, 0.3);
  box-shadow: 0 10px 25px rgba(0, 212, 170, 0.2);
}

.terms-section h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #00d4aa;
  font-weight: 700;
  border-bottom: 2px solid rgba(0, 212, 170, 0.3);
  padding-bottom: 1rem;
}

.terms-section h3 {
  font-size: 1.4rem;
  margin: 2rem 0 1rem;
  color: #ffffff;
  font-weight: 600;
}

.terms-section p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1.5rem;
  line-height: 1.7;
  font-size: 1rem;
}

.terms-section ul {
  margin: 1.5rem 0;
  padding-left: 2rem;
}

.terms-section li {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.8rem;
  line-height: 1.6;
  font-size: 1rem;
}

.terms-section li::marker {
  color: #00d4aa;
}

.terms-section strong {
  color: #ffffff;
  font-weight: 600;
}

.contact-info {
  background: rgba(0, 212, 170, 0.1);
  border-radius: 15px;
  padding: 2rem;
  margin-top: 2rem;
  border: 1px solid rgba(0, 212, 170, 0.3);
}

.contact-info p {
  margin-bottom: 0.5rem;
  color: rgba(255, 255, 255, 0.9);
}

.contact-info strong {
  color: #00d4aa;
}

/* Important Notice Section */
.important-notice {
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.1), rgba(255, 152, 0, 0.1));
  border-radius: 20px;
  padding: 3rem;
  margin: 3rem 0;
  border: 2px solid rgba(255, 193, 7, 0.3);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.important-notice::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(255, 193, 7, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 152, 0, 0.1) 0%, transparent 50%);
  animation: paradiseFloat 15s ease-in-out infinite;
}

.important-notice h4 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: #ffc107;
  font-weight: 700;
  position: relative;
  z-index: 1;
  text-align: center;
  text-shadow: 0 0 10px rgba(255, 193, 7, 0.3);
}

.important-notice p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  line-height: 1.7;
  margin: 0;
  position: relative;
  z-index: 1;
  text-align: center;
  font-weight: 500;
}

/* Footer */
footer {
  background: rgba(10, 10, 10, 0.95);
  border-top: 1px solid rgba(0, 212, 170, 0.3);
  padding: 4rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-section h4 {
  color: #00d4aa;
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.footer-section a {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  margin-bottom: 0.8rem;
  transition: all 0.3s ease;
  font-size: 1rem;
  line-height: 1.6;
}

.footer-section a:hover {
  color: #00d4aa;
  transform: translateX(3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(0, 212, 170, 0.2);
  color: rgba(255, 255, 255, 0.6);
  font-size: 1rem;
}

/* Table of Contents */
.toc-section {
  background: linear-gradient(120deg, #e3ffe6 0%, #e0f7fa 100%);
  border-left: 6px solid #00d4aa;
  border-radius: 20px;
  box-shadow: 0 8px 32px 0 rgba(0, 212, 170, 0.13);
  padding: 2.5rem 2.5rem 2.5rem 2rem;
  margin: 2.5rem 0 4rem 0; /* Increased bottom margin to 4rem */
  position: relative;
  overflow: hidden;
  z-index: 1; /* Ensure it does not float above footer */
}

.toc-section h2 {
  color: #009e7a;
  font-size: 2.1rem;
  margin-bottom: 2.2rem;
  text-align: left;
  font-weight: 700;
  text-shadow: 0 0 20px rgba(0, 212, 170, 0.18);
  letter-spacing: 0.5px;
}

.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.toc-list li {
  margin: 0;
  padding: 0;
}

.toc-link {
  display: block;
  padding: 1.1rem 1.5rem;
  color: #17405e;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.22);
  border: 1.5px solid rgba(0, 212, 170, 0.22);
  border-radius: 15px;
  transition: all 0.22s cubic-bezier(.4,2,.6,1);
  font-weight: 600;
  font-size: 1.08rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 212, 170, 0.07);
}

.toc-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 170, 0.13), transparent);
  transition: left 0.5s;
}

.toc-link:hover::before {
  left: 100%;
}

.toc-link:hover {
  background: rgba(0, 212, 170, 0.18);
  border-color: #00d4aa;
  color: #009e7a;
  transform: scale(1.04) translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 212, 170, 0.18);
}

.toc-link:active {
  transform: scale(0.98) translateY(0);
}

/* Hide any default Table of Contents above the styled one */
b:contains('Table of Contents') + ul,
strong:contains('Table of Contents') + ul {
  display: none !important;
}

/* Make .toc-section .toc-list even more visually distinct */
.toc-section .toc-list {
  box-shadow: 0 4px 24px rgba(0, 212, 170, 0.12);
  background: rgba(255,255,255,0.35);
  border-radius: 18px;
  padding: 1.5rem 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }
  
  .nav-links {
    display: none;
  }
  
  .mobile-menu-btn {
    display: flex;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .content-wrapper {
    padding: 0 20px;
  }
  
  .terms-section {
    padding: 2rem;
  }
  
  .terms-section h2 {
    font-size: 1.6rem;
  }
  
  .important-notice {
    padding: 2rem;
    margin: 2rem 0;
  }
  
  .important-notice h4 {
    font-size: 1.5rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-section {
    padding: 120px 0 80px;
  }
  
  .content-section {
    padding: 80px 0;
  }

  .toc-section {
    padding: 1.2rem;
    margin: 1.2rem 0;
  }
  .toc-section h2 {
    font-size: 1.3rem;
  }
  .toc-list {
    gap: 0.6rem;
  }
  .toc-link {
    padding: 0.7rem 1rem;
    font-size: 0.98rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }
  
  .hero-section {
    padding: 100px 0 60px;
  }
  
  .content-section {
    padding: 60px 0;
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .terms-section {
    padding: 1.5rem;
  }
  
  .terms-section h2 {
    font-size: 1.4rem;
  }
  
  .terms-section h3 {
    font-size: 1.2rem;
  }

  .toc-section {
    padding: 0.7rem;
    margin: 0.7rem 0;
  }
  .toc-section h2 {
    font-size: 1.1rem;
  }
  .toc-link {
    padding: 0.5rem 0.7rem;
    font-size: 0.9rem;
  }
} 