.page-resources-account-security-privacy {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: var(--background-color, #FFFFFF); /* Inherit from shared.css */
}

.page-resources-account-security-privacy__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px 40px;
  text-align: center;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(135deg, #26A9E0, #1a7bb0);
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

.page-resources-account-security-privacy__hero-content {
  max-width: 900px;
  z-index: 1;
  margin-bottom: 30px;
}

.page-resources-account-security-privacy__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
}

.page-resources-account-security-privacy__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-resources-account-security-privacy__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-resources-account-security-privacy__btn-primary,
.page-resources-account-security-privacy__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  min-width: 180px;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-resources-account-security-privacy__btn-primary {
  background: #EA7C07; /* Custom color for login/primary CTA */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

.page-resources-account-security-privacy__btn-primary:hover {
  background: #d46b00;
  border-color: #d46b00;
}

.page-resources-account-security-privacy__btn-secondary {
  background: #ffffff;
  color: #26A9E0;
  border: 2px solid #ffffff;
}

.page-resources-account-security-privacy__btn-secondary:hover {
  background: #e0f7fa;
  color: #1a7bb0;
  border-color: #e0f7fa;
}

.page-resources-account-security-privacy__hero-image-wrapper {
  width: 100%;
  max-width: 1200px;
  margin-top: 40px;
  z-index: 1;
}

.page-resources-account-security-privacy__hero-image {
  width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

.page-resources-account-security-privacy__content-area,
.page-resources-account-security-privacy__data-protection-section,
.page-resources-account-security-privacy__user-responsibility-section,
.page-resources-account-security-privacy__fair-play-section,
.page-resources-account-security-privacy__faq-section,
.page-resources-account-security-privacy__cta-section {
  padding: 60px 20px;
  text-align: left;
}

.page-resources-account-security-privacy__container {
  max-width: 1000px;
  margin: 0 auto;
}

.page-resources-account-security-privacy__section-title {
  font-size: 2.5em;
  margin-bottom: 30px;
  text-align: center;
  color: #26A9E0;
}

.page-resources-account-security-privacy__sub-title {
  font-size: 1.8em;
  margin-top: 40px;
  margin-bottom: 20px;
  color: #26A9E0;
}

.page-resources-account-security-privacy__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  line-height: 1.7;
  color: #333333;
}

.page-resources-account-security-privacy__feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-resources-account-security-privacy__card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  color: #333333;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 400px; /* Ensure cards are large enough */
}

.page-resources-account-security-privacy__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

.page-resources-account-security-privacy__card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-resources-account-security-privacy__card-description {
  font-size: 1em;
  color: #555555;
}

.page-resources-account-security-privacy__dark-bg {
  background: #26A9E0;
  color: #ffffff;
}

.page-resources-account-security-privacy__dark-bg .page-resources-account-security-privacy__section-title,
.page-resources-account-security-privacy__dark-bg .page-resources-account-security-privacy__sub-title {
  color: #ffffff;
}

.page-resources-account-security-privacy__dark-bg .page-resources-account-security-privacy__text-block {
  color: #f0f0f0;
}

.page-resources-account-security-privacy__image-full-width {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 40px 0;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

.page-resources-account-security-privacy__list {
  list-style: disc inside;
  margin-left: 20px;
  margin-bottom: 20px;
  color: #333333;
}

.page-resources-account-security-privacy__dark-bg .page-resources-account-security-privacy__list {
  color: #f0f0f0;
}

.page-resources-account-security-privacy__list li {
  margin-bottom: 10px;
  font-size: 1.1em;
}

.page-resources-account-security-privacy__list li strong {
  color: #26A9E0;
}

.page-resources-account-security-privacy__dark-bg .page-resources-account-security-privacy__list li strong {
  color: #ffffff;
}

.page-resources-account-security-privacy__responsibility-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-resources-account-security-privacy__responsibility-item {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  padding: 25px;
  color: #333333;
}

.page-resources-account-security-privacy__responsibility-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  color: #26A9E0;
}

.page-resources-account-security-privacy__responsibility-description {
  font-size: 1em;
  color: #555555;
}

.page-resources-account-security-privacy__faq-item {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #333333;
}

.page-resources-account-security-privacy__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  background-color: #f9f9f9;
  color: #26A9E0;
  transition: background-color 0.3s ease;
}

.page-resources-account-security-privacy__faq-question:hover {
  background-color: #eaf6fc;
}

.page-resources-account-security-privacy__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #26A9E0;
}

.page-resources-account-security-privacy__faq-item.active .page-resources-account-security-privacy__faq-toggle {
  transform: rotate(45deg);
}

.page-resources-account-security-privacy__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #555555;
}

.page-resources-account-security-privacy__faq-item.active .page-resources-account-security-privacy__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 20px;
}

.page-resources-account-security-privacy__faq-answer p {
  margin-bottom: 0;
}

.page-resources-account-security-privacy__cta-section {
  text-align: center;
  padding: 80px 20px;
}

.page-resources-account-security-privacy__cta-section .page-resources-account-security-privacy__section-title {
  color: #ffffff;
}

.page-resources-account-security-privacy__cta-section .page-resources-account-security-privacy__text-block {
  color: #f0f0f0;
  margin-bottom: 40px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-resources-account-security-privacy__hero-title {
    font-size: 2.8em;
  }

  .page-resources-account-security-privacy__hero-description {
    font-size: 1.2em;
  }

  .page-resources-account-security-privacy__section-title {
    font-size: 2em;
  }

  .page-resources-account-security-privacy__sub-title {
    font-size: 1.6em;
  }
}

@media (max-width: 768px) {
  .page-resources-account-security-privacy {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-resources-account-security-privacy__hero-section {
    padding: 60px 15px 30px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
  }

  .page-resources-account-security-privacy__hero-title {
    font-size: 2.2em;
  }

  .page-resources-account-security-privacy__hero-description {
    font-size: 1em;
  }

  .page-resources-account-security-privacy__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-resources-account-security-privacy__btn-primary,
  .page-resources-account-security-privacy__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
  }

  .page-resources-account-security-privacy__content-area,
  .page-resources-account-security-privacy__data-protection-section,
  .page-resources-account-security-privacy__user-responsibility-section,
  .page-resources-account-security-privacy__fair-play-section,
  .page-resources-account-security-privacy__faq-section,
  .page-resources-account-security-privacy__cta-section {
    padding: 40px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-resources-account-security-privacy__container {
    padding-left: 0;
    padding-right: 0;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }

  .page-resources-account-security-privacy__section-title {
    font-size: 1.8em;
  }

  .page-resources-account-security-privacy__sub-title {
    font-size: 1.4em;
  }

  .page-resources-account-security-privacy__text-block,
  .page-resources-account-security-privacy__card-description,
  .page-resources-account-security-privacy__responsibility-description,
  .page-resources-account-security-privacy__list li p {
    font-size: 0.95em;
  }

  .page-resources-account-security-privacy__feature-grid,
  .page-resources-account-security-privacy__responsibility-grid {
    grid-template-columns: 1fr;
  }

  .page-resources-account-security-privacy__card {
    padding: 20px;
    min-height: auto;
  }

  .page-resources-account-security-privacy__card-image,
  .page-resources-account-security-privacy__hero-image,
  .page-resources-account-security-privacy__image-full-width {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }

  .page-resources-account-security-privacy__faq-question {
    font-size: 1.1em;
    padding: 15px;
  }

  .page-resources-account-security-privacy__faq-answer {
    padding: 0 15px;
  }

  .page-resources-account-security-privacy__faq-item.active .page-resources-account-security-privacy__faq-answer {
    padding: 15px;
  }
}

@media (max-width: 480px) {
  .page-resources-account-security-privacy__hero-title {
    font-size: 1.8em;
  }

  .page-resources-account-security-privacy__section-title {
    font-size: 1.5em;
  }

  .page-resources-account-security-privacy__card-title {
    font-size: 1.3em;
  }

  .page-resources-account-security-privacy__responsibility-title {
    font-size: 1.2em;
  }
}