/* style/terms-conditions.css */

:root {
  --primary-color: #0A2463;
  --secondary-color: #FFD700;
  --text-on-dark: #ffffff;
  --text-on-light: #333333;
  --background-dark: #0a0a0a;
  --background-light: #f5f5f5;
  --border-color: #e0e0e0;
}

.page-terms-conditions {
  font-family: 'Arial', sans-serif;
  color: var(--text-on-dark); /* Default text color for dark body background */
  background-color: var(--background-dark); /* Inherited from body */
  line-height: 1.6;
  padding-top: 120px; /* Adjust for fixed header on desktop */
}

/* HERO Banner Section */
.page-terms-conditions__hero-banner {
  background: linear-gradient(135deg, var(--primary-color), #2a4a90);
  padding: 80px 20px;
  text-align: center;
  color: var(--text-on-dark);
  margin-bottom: 40px;
}

.page-terms-conditions__hero-container {
  max-width: 900px;
  margin: 0 auto;
}

.page-terms-conditions__main-title {
  font-size: 3.2em;
  font-weight: bold;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--secondary-color);
}

.page-terms-conditions__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  opacity: 0.9;
}

.page-terms-conditions__cta-button {
  display: inline-block;
  padding: 15px 35px;
  background: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: none;
}

.page-terms-conditions__cta-button:hover {
  background: #ffcc00;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Content Section */
.page-terms-conditions__content-section {
  padding: 40px 20px;
  background-color: var(--background-dark);
}

.page-terms-conditions__container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

.page-terms-conditions__article-content {
  flex: 3;
  min-width: 600px;
  background-color: #1a1a1a; /* Slightly lighter dark for content card */
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
  color: var(--text-on-dark);
}

.page-terms-conditions__section-title {
  font-size: 2.2em;
  font-weight: bold;
  color: var(--secondary-color);
  margin-top: 40px;
  margin-bottom: 25px;
  border-bottom: 2px solid rgba(255, 215, 0, 0.3);
  padding-bottom: 10px;
}

.page-terms-conditions__article-content h2:first-of-type {
  margin-top: 0;
}

.page-terms-conditions__subsection-title {
  font-size: 1.6em;
  font-weight: bold;
  color: var(--secondary-color);
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-terms-conditions__article-content p {
  margin-bottom: 15px;
  font-size: 1.05em;
  line-height: 1.7;
  color: var(--text-on-dark);
}

.page-terms-conditions__article-content ul {
  list-style-type: disc;
  margin-left: 25px;
  margin-bottom: 15px;
  color: var(--text-on-dark);
}

.page-terms-conditions__article-content li {
  margin-bottom: 8px;
  font-size: 1.05em;
  line-height: 1.6;
  color: var(--text-on-dark);
}

.page-terms-conditions__article-content a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-terms-conditions__article-content a:hover {
  color: #ffcc00;
  text-decoration: underline;
}

.page-terms-conditions__sidebar {
  flex: 1;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.page-terms-conditions__quick-links-card, .page-terms-conditions__cta-card {
  background-color: #1a1a1a;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
  color: var(--text-on-dark);
}

.page-terms-conditions__light-bg {
  background-color: #f9f9f9;
  color: var(--text-on-light);
}

.page-terms-conditions__light-bg .page-terms-conditions__sidebar-title {
  color: var(--primary-color);
}

.page-terms-conditions__light-bg .page-terms-conditions__quick-link {
  color: var(--primary-color);
}

.page-terms-conditions__light-bg .page-terms-conditions__quick-link:hover {
  color: #000000;
}

.page-terms-conditions__dark-bg {
  background-color: var(--primary-color);
  color: var(--text-on-dark);
}

.page-terms-conditions__dark-bg .page-terms-conditions__sidebar-title {
  color: var(--secondary-color);
}

.page-terms-conditions__sidebar-title {
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--secondary-color);
}

.page-terms-conditions__quick-links-list {
  list-style-type: none;
  padding: 0;
}

.page-terms-conditions__quick-links-list li {
  margin-bottom: 10px;
}

.page-terms-conditions__quick-link {
  color: var(--text-on-dark);
  text-decoration: none;
  font-size: 1.1em;
  display: block;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: color 0.3s ease, padding-left 0.3s ease;
}

.page-terms-conditions__quick-link:hover {
  color: var(--secondary-color);
  padding-left: 10px;
}

.page-terms-conditions__cta-card p {
  margin-bottom: 20px;
  font-size: 1.05em;
  color: var(--text-on-dark);
}

.page-terms-conditions__cta-card .page-terms-conditions__cta-button {
  display: block;
  width: 100%;
  text-align: center;
  margin-bottom: 15px;
}

.page-terms-conditions__btn-primary {
  background: var(--secondary-color);
  color: var(--primary-color);
}

.page-terms-conditions__btn-primary:hover {
  background: #ffcc00;
}

.page-terms-conditions__btn-secondary {
  background: #ffffff;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-terms-conditions__btn-secondary:hover {
  background: var(--primary-color);
  color: #ffffff;
}

/* FAQ Section */
.page-terms-conditions__faq-section {
  padding: 60px 20px;
  background-color: var(--background-dark);
  color: var(--text-on-dark);
}

.page-terms-conditions__faq-section .page-terms-conditions__section-title {
  text-align: center;
  margin-bottom: 40px;
  color: var(--secondary-color);
  border-bottom: 2px solid rgba(255, 215, 0, 0.3);
  display: inline-block;
  padding-bottom: 10px;
}

.page-terms-conditions__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-terms-conditions__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background-color: #1a1a1a; /* Dark background for FAQ items */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.page-terms-conditions__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 25px;
  opacity: 0;
  color: var(--text-on-dark);
}

.page-terms-conditions__faq-item.active .page-terms-conditions__faq-answer {
  max-height: 2000px !important; /* Sufficiently large to ensure content is visible */
  padding: 20px 25px !important;
  opacity: 1;
  background: #2a2a2a; /* Slightly lighter dark for answer */
  border-radius: 0 0 8px 8px;
}

.page-terms-conditions__faq-answer p {
  margin-bottom: 10px;
}

.page-terms-conditions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background: var(--primary-color); /* Primary color for question background */
  border: 1px solid #0A2463;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: var(--text-on-dark);
}

.page-terms-conditions__faq-question:hover {
  background: #1a3c7e; /* Darker hover for primary color */
  border-color: #1a3c7e;
}

.page-terms-conditions__faq-question:active {
  background: #051a44;
}

.page-terms-conditions__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.15em;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: var(--text-on-dark);
}

.page-terms-conditions__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: var(--secondary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.page-terms-conditions__faq-item.active .page-terms-conditions__faq-toggle {
  color: #ffffff;
  transform: rotate(45deg); /* Rotate plus to become cross */
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-terms-conditions__article-content {
    min-width: 100%;
  }
  .page-terms-conditions__container {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .page-terms-conditions {
    padding-top: 100px !important; /* Adjust for fixed header on mobile */
    font-size: 16px;
    line-height: 1.6;
  }

  .page-terms-conditions__hero-banner {
    padding: 60px 15px;
    margin-bottom: 20px;
  }

  .page-terms-conditions__main-title {
    font-size: 2.2em;
  }

  .page-terms-conditions__hero-description {
    font-size: 1em;
  }

  .page-terms-conditions__cta-button {
    padding: 12px 25px;
    font-size: 1em;
  }

  .page-terms-conditions__content-section {
    padding: 20px 15px;
  }

  .page-terms-conditions__article-content {
    padding: 25px;
  }

  .page-terms-conditions__section-title {
    font-size: 1.8em;
    margin-top: 30px;
    margin-bottom: 20px;
  }

  .page-terms-conditions__subsection-title {
    font-size: 1.4em;
    margin-top: 25px;
    margin-bottom: 10px;
  }

  .page-terms-conditions__article-content p, 
  .page-terms-conditions__article-content li {
    font-size: 0.95em;
  }

  .page-terms-conditions__sidebar {
    min-width: 100%;
    gap: 20px;
  }

  .page-terms-conditions__quick-links-card, .page-terms-conditions__cta-card {
    padding: 25px;
  }

  .page-terms-conditions__sidebar-title {
    font-size: 1.6em;
  }

  .page-terms-conditions__quick-link {
    font-size: 1em;
    padding: 6px 0;
  }

  .page-terms-conditions__faq-section {
    padding: 40px 15px;
  }

  .page-terms-conditions__faq-section .page-terms-conditions__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-terms-conditions__faq-question {
    padding: 15px 20px;
    flex-wrap: wrap;
  }
  
  .page-terms-conditions__faq-question h3 {
    font-size: 1em;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  
  .page-terms-conditions__faq-toggle {
    margin-left: 10px;
    width: 28px;
    height: 28px;
    font-size: 24px;
  }
  
  .page-terms-conditions__faq-answer {
    padding: 0 20px;
  }
  
  .page-terms-conditions__faq-item.active .page-terms-conditions__faq-answer {
    padding: 15px 20px !important;
  }

  /* Image responsiveness */
  .page-terms-conditions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-terms-conditions__section,
  .page-terms-conditions__card,
  .page-terms-conditions__container,
  .page-terms-conditions__article-content,
  .page-terms-conditions__sidebar,
  .page-terms-conditions__quick-links-card,
  .page-terms-conditions__cta-card,
  .page-terms-conditions__faq-list,
  .page-terms-conditions__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-terms-conditions__hero-banner .page-terms-conditions__hero-container {
    padding-left: 0;
    padding-right: 0;
  }
}