/* style/terms-conditions.css */

/* Variables (ensure these are consistent with shared.css or defined if shared.css is not loaded first) */
:root {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #DC143C; /* Crimson */
  --text-light: #ffffff;
  --text-dark: #333333;
  --bg-dark: #0a0a0a; /* Body background color */
  --bg-light-card: rgba(255, 255, 255, 0.08); /* Slightly visible on dark background */
  --border-color: rgba(255, 255, 255, 0.15);
}

/* Base styles for the page content, ensuring contrast with body background */
.page-terms-conditions {
  background-color: var(--bg-dark); /* Ensure it's dark if body is dark */
  color: var(--text-light); /* Light text for dark background */
  padding-top: 120px; /* Desktop: Adjust based on fixed header height */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  min-height: calc(100vh - 200px); /* Adjust based on header/footer height */
}

/* Container for content sections */
.page-terms-conditions__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Hero Section */
.page-terms-conditions__hero-section {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(220, 20, 60, 0.15));
  padding: 80px 0;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
}

.page-terms-conditions__main-title {
  font-size: 3.2em;
  color: var(--primary-color);
  margin-bottom: 20px;
  font-weight: bold;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.page-terms-conditions__subtitle {
  font-size: 1.3em;
  color: var(--text-light);
  max-width: 800px;
  margin: 0 auto 40px;
  opacity: 0.9;
}

.page-terms-conditions__hero-cta {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.page-terms-conditions__btn-primary,
.page-terms-conditions__btn-secondary {
  display: inline-block;
  padding: 15px 40px;
  font-size: 1.1em;
  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);
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
  cursor: pointer;
  border: none; /* Remove default button border */
}

.page-terms-conditions__btn-primary {
  background-color: var(--primary-color);
  color: var(--text-dark); /* Dark text on bright gold for contrast */
  border: 2px solid var(--primary-color); /* Explicit border for consistency */
}

.page-terms-conditions__btn-primary:hover {
  background-color: #e6c200; /* Slightly darker gold */
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

.page-terms-conditions__btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--text-dark); /* Dark text on bright gold for contrast */
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Content Section */
.page-terms-conditions__content-section {
  padding: 60px 0;
  background-color: var(--bg-dark);
  color: var(--text-light);
}

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

.page-terms-conditions p {
  margin-bottom: 20px;
  font-size: 1.1em;
  color: var(--text-light);
  opacity: 0.9;
}

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

.page-terms-conditions__contact-link {
  color: var(--primary-color);
  text-decoration: underline;
  font-weight: bold;
}

.page-terms-conditions__contact-link:hover {
  color: var(--secondary-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-terms-conditions__main-title {
    font-size: 2.8em;
  }
  .page-terms-conditions__subtitle {
    font-size: 1.2em;
  }
  .page-terms-conditions__section-title {
    font-size: 1.8em;
  }
  .page-terms-conditions p {
    font-size: 1em;
  }
}

@media (max-width: 768px) {
  .page-terms-conditions {
    padding-top: 100px !important; /* Mobile: Adjust based on fixed header height */
    font-size: 16px;
    line-height: 1.6;
  }
  .page-terms-conditions__hero-section {
    padding: 60px 0;
  }
  .page-terms-conditions__main-title {
    font-size: 2.2em;
  }
  .page-terms-conditions__subtitle {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-terms-conditions__section-title {
    font-size: 1.6em;
  }
  .page-terms-conditions__hero-cta {
    flex-direction: column;
    gap: 15px;
  }
  .page-terms-conditions__btn-primary,
  .page-terms-conditions__btn-secondary {
    padding: 12px 25px;
    font-size: 1em;
    width: 100% !important; /* Force full width on mobile */
    max-width: 100% !important; /* Ensure it doesn't exceed container */
    margin: 0 auto; /* Center buttons */
    box-sizing: border-box !important;
    padding-left: 15px !important; /* Add padding to prevent touching edges */
    padding-right: 15px !important;
  }
  .page-terms-conditions__content-section {
    padding: 40px 0;
  }
  .page-terms-conditions__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }
  /* Ensure all images are responsive and don't overflow */
  .page-terms-conditions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }
  /* Ensure button containers also respect responsive rules */
  .page-terms-conditions__hero-cta {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
}