/* style/terms-conditions.css */

:root {
  --primary-color: #007bff;
  --secondary-color: #ffc107;
  --dark-bg-color: #000;
  --light-text-color: #ffffff;
  --dark-text-color: #333333;
  --border-color: #e0e0e0;
  --card-bg-dark: rgba(255, 255, 255, 0.1);
  --card-bg-light: #ffffff;
}

/* Global page styling for Terms & Conditions */
.page-terms-conditions {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--light-text-color); /* Default light text for dark body background */
  background-color: var(--dark-bg-color); /* Inherited from shared.css, specified here for clarity */
  padding-top: 100px; /* Adjust for fixed header on desktop */
}

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

/* Hero Section */
.page-terms-conditions__hero-section {
  padding: 80px 0;
  text-align: center;
  background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
  color: var(--light-text-color);
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 -5px 15px rgba(0, 0, 0, 0.2);
}

.page-terms-conditions__hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('[GALLERY:bg:bet 789,terms and conditions,hero background,abstract pattern,1920x1080]') no-repeat center center/cover;
  opacity: 0.1;
  z-index: 0;
}

.page-terms-conditions__hero-section > .page-terms-conditions__container {
  position: relative;
  z-index: 1;
}

.page-terms-conditions__hero-title {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--light-text-color);
  text-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}

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

.page-terms-conditions__brand-link:hover {
  color: var(--light-text-color);
}

.page-terms-conditions__hero-subtitle {
  font-size: 20px;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.9;
}

.page-terms-conditions__cta-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-terms-conditions__cta-button {
  display: inline-block;
  padding: 15px 35px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-terms-conditions__cta-button--primary {
  background-color: var(--secondary-color);
  color: var(--dark-text-color);
  border: 2px solid var(--secondary-color);
}

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

.page-terms-conditions__cta-button--secondary {
  background-color: transparent;
  color: var(--light-text-color);
  border: 2px solid var(--light-text-color);
}

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

.page-terms-conditions__cta-group--bottom {
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Content Section */
.page-terms-conditions__content-section {
  padding: 60px 0;
  background-color: #1a1a1a; /* Slightly lighter dark background for content */
  color: var(--light-text-color);
}

.page-terms-conditions__section-title {
  font-size: 32px;
  font-weight: bold;
  margin-top: 50px;
  margin-bottom: 25px;
  color: var(--secondary-color);
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 15px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.page-terms-conditions__section-title:first-of-type {
  margin-top: 0;
}

.page-terms-conditions h3 {
  font-size: 24px;
  font-weight: bold;
  margin-top: 35px;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-terms-conditions p {
  margin-bottom: 15px;
  font-size: 16px;
  line-height: 1.7;
  color: #e0e0e0;
}

.page-terms-conditions__list {
  list-style: disc inside;
  margin-bottom: 20px;
  padding-left: 20px;
  color: #e0e0e0;
}

.page-terms-conditions__list li {
  margin-bottom: 10px;
  font-size: 16px;
  line-height: 1.7;
}

.page-terms-conditions__list ul {
  list-style: circle inside;
  margin-top: 10px;
  padding-left: 20px;
}

.page-terms-conditions__link {
  color: var(--secondary-color);
  text-decoration: none;
  border-bottom: 1px dashed var(--secondary-color);
  transition: color 0.3s ease, border-color 0.3s ease;
}

.page-terms-conditions__link:hover {
  color: var(--light-text-color);
  border-bottom-color: var(--light-text-color);
}

/* Image Styling */
.page-terms-conditions__image-figure {
  margin: 30px 0;
  text-align: center;
  background: rgba(255, 255, 255, 0.05);
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-terms-conditions__image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  margin: 0 auto;
  object-fit: cover;
}

.page-terms-conditions__image-caption {
  margin-top: 15px;
  font-size: 14px;
  color: #b0b0b0;
  opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-terms-conditions__hero-title {
    font-size: 40px;
  }
  .page-terms-conditions__hero-subtitle {
    font-size: 18px;
  }
  .page-terms-conditions__section-title {
    font-size: 28px;
  }
  .page-terms-conditions h3 {
    font-size: 22px;
  }
}

@media (max-width: 768px) {
  .page-terms-conditions {
    padding-top: 80px !important; /* Adjust for fixed header on mobile */
    font-size: 16px;
    line-height: 1.6;
  }
  .page-terms-conditions__container {
    padding: 0 15px;
  }
  .page-terms-conditions__hero-section {
    padding: 60px 0;
  }
  .page-terms-conditions__hero-title {
    font-size: 32px;
    margin-bottom: 15px;
  }
  .page-terms-conditions__hero-subtitle {
    font-size: 16px;
    margin-bottom: 30px;
  }
  .page-terms-conditions__cta-group {
    flex-direction: column;
    gap: 15px;
  }
  .page-terms-conditions__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 25px;
    font-size: 16px;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-terms-conditions__content-section {
    padding: 40px 0;
  }
  .page-terms-conditions__section-title {
    font-size: 24px;
    margin-top: 40px;
    margin-bottom: 20px;
    padding-bottom: 10px;
  }
  .page-terms-conditions h3 {
    font-size: 20px;
    margin-top: 30px;
    margin-bottom: 10px;
  }
  .page-terms-conditions p,
  .page-terms-conditions__list li {
    font-size: 15px;
  }
  .page-terms-conditions__image-figure {
    margin: 20px 0;
    padding: 10px;
  }
  .page-terms-conditions__image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }
  .page-terms-conditions__image-caption {
    font-size: 13px;
  }
  .page-terms-conditions__cta-group--bottom {
    margin-top: 40px;
    padding-top: 20px;
  }
}

@media (max-width: 480px) {
  .page-terms-conditions__hero-title {
    font-size: 28px;
  }
  .page-terms-conditions__hero-subtitle {
    font-size: 15px;
  }
  .page-terms-conditions__section-title {
    font-size: 22px;
  }
  .page-terms-conditions h3 {
    font-size: 18px;
  }
  .page-terms-conditions p,
  .page-terms-conditions__list li {
    font-size: 14px;
  }
}