/* style/terms-conditions.css */
/* body đã padding-top: var(--header-offset); trang này KHÔNG được viết lại padding-top cho body hoặc các phần tử đầu tiên */

.page-terms-conditions {
  /* Body background is #0a0a0a (dark), so default text should be light */
  color: #ffffff; /* Default text color for the main page content */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: transparent; /* Main wrapper should not have a background, let body's background show */
}

/* Hero Section */
.page-terms-conditions__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Ensure image is above content */
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding as body handles header offset */
  background-color: #0a0a0a; /* Ensure dark background for this section */
  color: #ffffff; /* Light text for dark background */
}

.page-terms-conditions__hero-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  margin-bottom: 20px; /* Space between image and content */
}

.page-terms-conditions__hero-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 15px;
}

.page-terms-conditions__main-title {
  font-size: clamp(2em, 4vw, 3.2em); /* Responsive font size for H1 */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
  color: #ffffff; /* White for dark background */
  max-width: 100%; /* Ensure H1 doesn't overflow */
}

.page-terms-conditions__description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #f0f0f0; /* Slightly off-white for body text */
}

/* Content Area */
.page-terms-conditions__content-area {
  background-color: #ffffff; /* White background for readability */
  color: #333333; /* Dark text for light background */
  padding: 60px 20px;
}

.page-terms-conditions__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.page-terms-conditions__section-title {
  font-size: 2.2em;
  font-weight: 700;
  color: #26A9E0; /* Brand color for main titles */
  margin-top: 40px;
  margin-bottom: 20px;
  line-height: 1.3;
}

.page-terms-conditions__section-title--light {
  color: #ffffff; /* White for dark background sections */
}

.page-terms-conditions__sub-title {
  font-size: 1.6em;
  font-weight: 600;
  color: #26A9E0; /* Brand color for subtitles */
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-terms-conditions p {
  margin-bottom: 1em;
  color: #333333; /* Dark text for paragraphs in light section */
}

.page-terms-conditions p span.keyword {
  font-weight: bold;
  color: #26A9E0;
}

.page-terms-conditions a {
  color: #26A9E0; /* Brand color for links */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-terms-conditions a:hover {
  color: #EA7C07; /* Login color for hover */
  text-decoration: underline;
}

.page-terms-conditions__content-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  display: block;
  margin: 20px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  object-fit: cover;
}

/* Buttons */
.page-terms-conditions__btn-primary,
.page-terms-conditions__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent; /* Default transparent border */
  margin-top: 20px;
  margin-right: 15px;
}

.page-terms-conditions__btn-primary {
  background-color: #26A9E0; /* Primary brand color */
  color: #ffffff;
}

.page-terms-conditions__btn-primary:hover {
  background-color: #1a7eb3; /* Darker shade of primary */
  border-color: #1a7eb3;
}

.page-terms-conditions__btn-secondary {
  background-color: #EA7C07; /* Login color */
  color: #ffffff;
}

.page-terms-conditions__btn-secondary:hover {
  background-color: #c96506; /* Darker shade of login color */
  border-color: #c96506;
}

/* FAQ Section */
.page-terms-conditions__faq-section {
  background-color: #0a0a0a; /* Dark background */
  color: #ffffff;
  padding: 60px 20px;
}

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

.page-terms-conditions__faq-item {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white for dark bg */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #ffffff;
}

.page-terms-conditions__faq-item details {
  /* Reset default details styling */
  list-style: none;
}

.page-terms-conditions__faq-item summary {
  list-style: none; /* Hide default marker for summary */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: 600;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.1); /* Slightly darker for summary */
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.page-terms-conditions__faq-item summary::-webkit-details-marker {
  display: none; /* Hide default marker for webkit browsers */
}

.page-terms-conditions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.page-terms-conditions__faq-qtext {
  flex-grow: 1;
  margin-right: 15px;
}

.page-terms-conditions__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  width: 20px;
  text-align: center;
}

.page-terms-conditions__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1em;
  color: #f0f0f0;
}

.page-terms-conditions__faq-answer p {
  margin-bottom: 0;
  color: #f0f0f0;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-terms-conditions__hero-section {
    padding: 40px 15px;
    padding-top: 10px;
  }
  .page-terms-conditions__main-title {
    font-size: clamp(1.8em, 5vw, 2.8em);
  }
  .page-terms-conditions__section-title {
    font-size: 1.8em;
  }
  .page-terms-conditions__sub-title {
    font-size: 1.4em;
  }
}

@media (max-width: 768px) {
  /* Mobile specific adjustments */
  .page-terms-conditions {
    font-size: 16px;
    line-height: 1.6;
  }

  /* Images responsive */
  .page-terms-conditions img {
    max-width: 100% !important;
    width: 100% !important; /* Ensure content images take full width */
    height: auto !important;
    display: block !important;
  }
  
  /* Containers responsive */
  .page-terms-conditions__hero-section,
  .page-terms-conditions__content-area,
  .page-terms-conditions__faq-section,
  .page-terms-conditions__container,
  .page-terms-conditions__faq-list,
  .page-terms-conditions__hero-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }

  .page-terms-conditions__hero-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }

  .page-terms-conditions__main-title {
    font-size: clamp(1.5em, 6vw, 2.5em) !important;
    margin-bottom: 10px !important;
  }

  .page-terms-conditions__description {
    font-size: 1em !important;
    margin-bottom: 20px !important;
  }

  .page-terms-conditions__section-title {
    font-size: 1.6em !important;
    margin-top: 30px !important;
    margin-bottom: 15px !important;
  }

  .page-terms-conditions__sub-title {
    font-size: 1.2em !important;
    margin-top: 25px !important;
    margin-bottom: 10px !important;
  }

  /* Buttons responsive */
  .page-terms-conditions__btn-primary,
  .page-terms-conditions__btn-secondary,
  .page-terms-conditions a[class*="button"],
  .page-terms-conditions a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin-left: 0 !important; /* Remove horizontal margin for stacking */
    margin-right: 0 !important; /* Remove horizontal margin for stacking */
    margin-bottom: 10px !important; /* Space between stacked buttons */
    padding-left: 15px !important;
    padding-right: 15px !important;
    text-align: center;
  }
  /* If buttons are in a flex container that stacks them */
  .page-terms-conditions__hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .page-terms-conditions__faq-item summary {
    padding: 15px 20px !important;
    font-size: 1.05em !important;
  }
  .page-terms-conditions__faq-answer {
    padding: 10px 20px 15px !important;
  }
}

@media (max-width: 480px) {
  .page-terms-conditions__main-title {
    font-size: clamp(1.4em, 7vw, 2em) !important;
  }
  .page-terms-conditions__section-title {
    font-size: 1.4em !important;
  }
  .page-terms-conditions__sub-title {
    font-size: 1.1em !important;
  }
}