:root {
  --primary-color: #E44D26; /* Vibrant Orange */
  --secondary-color: #FFB300; /* Golden Yellow */
  --text-light: #ffffff;
  --text-dark: #333333;
  --bg-dark: #121212; /* Body background from shared.css */
  --bg-medium-dark: #1e1e1e; /* Slightly lighter than body for sections */
  --border-color: #333333; /* Darker border for contrast */
}

/* 🚨 Fixed Navbar Spacing - Must be applied to the first main content element */
.page-terms-conditions__hero {
  padding-top: 10px; /* Desktop: Adjust based on actual shared header height */
  padding-bottom: 60px; /* General padding for the section */
}

.page-terms-conditions {
  color: var(--text-light); /* Default text color for dark body background */
  background-color: var(--bg-dark); /* Ensure consistency if main is not full height */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

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

.page-terms-conditions__hero {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('[GALLERY:hero:link 12bet,terms,agreement,vietnam,online betting]') no-repeat center center/cover;
  text-align: center;
  padding: 100px 20px 80px;
  color: var(--text-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  position: relative;
  background-attachment: fixed; /* Parallax effect */
}

.page-terms-conditions__main-title {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--secondary-color); /* Use secondary color for emphasis */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-terms-conditions__hero-description {
  font-size: 20px;
  margin-bottom: 40px;
  max-width: 800px;
  line-height: 1.8;
}

.page-terms-conditions__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--primary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  border: none;
  cursor: pointer;
  white-space: normal; /* Enable text wrapping for mobile */
  word-wrap: break-word; /* Enable text wrapping for mobile */
  max-width: 100%; /* Ensure button adapts to full width */
  box-sizing: border-box;
}

.page-terms-conditions__cta-button:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.page-terms-conditions__content-section {
  background-color: var(--bg-medium-dark); /* Slightly lighter dark background */
  padding: 60px 0;
  color: var(--text-light);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.page-terms-conditions__section-title {
  font-size: 32px;
  color: var(--secondary-color);
  margin-top: 40px;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 10px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.page-terms-conditions__content-section h3 {
  font-size: 24px;
  color: var(--primary-color);
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-terms-conditions__content-section p,
.page-terms-conditions__content-section li {
  font-size: 16px;
  margin-bottom: 15px;
  line-height: 1.7;
  color: var(--text-light);
}

.page-terms-conditions__content-section ul {
  list-style: disc inside;
  padding-left: 20px;
  margin-bottom: 20px;
}

.page-terms-conditions__content-section li {
  margin-bottom: 8px;
}

.page-terms-conditions__register-button {
  display: inline-block;
  padding: 12px 30px;
  background: var(--secondary-color);
  color: var(--text-dark); /* Dark text on golden yellow for contrast */
  text-decoration: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  margin-top: 20px;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  white-space: normal; /* Enable text wrapping for mobile */
  word-wrap: break-word; /* Enable text wrapping for mobile */
  max-width: 100%; /* Ensure button adapts to full width */
  box-sizing: border-box;
}

.page-terms-conditions__register-button:hover {
  background: #e0a100; /* Darker yellow on hover */
  transform: translateY(-1px);
}

.page-terms-conditions__link {
  color: var(--secondary-color); /* Link color for visibility */
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-terms-conditions__link:hover {
  color: var(--primary-color);
}

.page-terms-conditions__image {
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  max-width: 100%;
  height: auto;
  display: block;
}

.page-terms-conditions__image--full-width {
  width: 100%;
}

.page-terms-conditions__image--center {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-terms-conditions__cta-bottom {
  background: var(--primary-color);
  text-align: center;
  padding: 80px 20px;
  color: var(--text-light);
}

.page-terms-conditions__cta-title {
  font-size: 38px;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--text-light);
}

.page-terms-conditions__cta-description {
  font-size: 20px;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-terms-conditions__cta-button--large {
  padding: 18px 50px;
  font-size: 20px;
  background: var(--secondary-color);
  color: var(--text-dark); /* Dark text on golden yellow for contrast */
}

.page-terms-conditions__cta-button--large:hover {
  background: #e0a100;
}

/* 🚨 Mobile responsive styles */
@media (max-width: 768px) {
  .page-terms-conditions__hero {
    padding-top: 10px !important; /* Mobile: Adjust based on actual shared header height */
    padding: 60px 15px 40px;
    min-height: 300px;
    background-attachment: scroll; /* Disable parallax on mobile for performance */
  }

  .page-terms-conditions__main-title {
    font-size: 32px;
    line-height: 1.3;
  }

  .page-terms-conditions__hero-description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .page-terms-conditions__cta-button {
    padding: 12px 25px;
    font-size: 16px;
    width: 100% !important; /* Ensure button adapts to full width */
    max-width: 300px !important; /* Limit max width for better appearance */
  }

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

  .page-terms-conditions__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-terms-conditions__section-title {
    font-size: 24px;
    margin-top: 30px;
    margin-bottom: 15px;
  }

  .page-terms-conditions__content-section h3 {
    font-size: 20px;
    margin-top: 25px;
    margin-bottom: 10px;
  }

  .page-terms-conditions__content-section p,
  .page-terms-conditions__content-section li {
    font-size: 15px;
    margin-bottom: 10px;
  }

  .page-terms-conditions__register-button {
    padding: 10px 20px;
    font-size: 15px;
    width: 100% !important; /* Ensure button adapts to full width */
    max-width: 250px !important; /* Limit max width for better appearance */
  }

  .page-terms-conditions__cta-bottom {
    padding: 60px 15px;
  }

  .page-terms-conditions__cta-title {
    font-size: 28px;
  }

  .page-terms-conditions__cta-description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .page-terms-conditions__cta-button--large {
    padding: 15px 30px;
    font-size: 18px;
    width: 100% !important; /* Ensure button adapts to full width */
    max-width: 350px !important; /* Limit max width for better appearance */
  }

  /* 🚨 Images, Videos, Buttons must be responsive and not overflow */
  .page-terms-conditions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  /* No video section on this page, but keeping the responsive rules for safety */
  .page-terms-conditions video,
  .page-terms-conditions__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-terms-conditions__video-section,
  .page-terms-conditions__video-container,
  .page-terms-conditions__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-terms-conditions__cta-button,
  .page-terms-conditions__register-button,
  .page-terms-conditions__cta-button--large,
  .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;
    padding-left: 15px !important; /* Add padding to prevent text from touching edges */
    padding-right: 15px !important; /* Add padding to prevent text from touching edges */
  }
  .page-terms-conditions__cta-buttons,
  .page-terms-conditions__button-group,
  .page-terms-conditions__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }
}