/* Policy Pages */
.main .container {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 20px 4rem;
}

.policy-page {
  line-height: 1.8;
  counter-reset: policy-section;
}

/* Intro paragraph */
.policy-intro {
  margin-bottom: 2rem;
  padding: 1.5rem 2rem;
  border-left: 4px solid #2d6a4f;
  border-radius: 0 8px 8px 0;
  background: #f0f7f2;
  font-size: 1.05rem;
  color: #444;
}

/* Sections */
.policy-section {
  margin-bottom: 2rem;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  background: white;
  counter-increment: policy-section;
}

.policy-section-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #e8f0ea;
}

.policy-section-header::before {
  content: counter(policy-section);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #2d6a4f;
  color: white;
  font-weight: 700;
  font-size: 0.9rem;
}

.policy-section-header h2 {
  margin-bottom: 0;
  color: #1e5128;
  font-size: 1.4rem;
  text-align: left;
}

/* Lists */
.policy-list {
  margin: 0.75rem 0;
  padding-left: 1.25rem;
  list-style: none;
}

.policy-list li {
  position: relative;
  margin-bottom: 0.75rem;
  padding-left: 1rem;
  color: #444;
}

.policy-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2d6a4f;
}

.policy-list li strong {
  color: #1e5128;
}

/* Text paragraphs */
.policy-text {
  margin-bottom: 1rem;
  color: #444;
}

/* Note boxes */
.policy-note {
  margin-top: 1rem;
  padding: 1rem 1.25rem;
  border-left: 3px solid #95d5b2;
  border-radius: 0 6px 6px 0;
  background: #f0f7f2;
  color: #444;
}

.policy-note p {
  margin: 0;
}

/* Cancellation timeline */
.policy-timeline {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1.25rem 0;
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.timeline-badge {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #2d6a4f;
  color: white;
  font-weight: 700;
  font-size: 0.85rem;
}

.timeline-content {
  flex: 1;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  background: #f8faf8;
  border: 1px solid #e8f0ea;
}

.timeline-content strong {
  color: #1e5128;
}

.timeline-content p {
  margin: 0.25rem 0 0;
  color: #555;
}

/* Rights grid (privacy page) */
.rights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1.25rem 0;
}

.right-card {
  padding: 1.25rem;
  border-radius: 8px;
  background: #f8faf8;
  border: 1px solid #e8f0ea;
  border-top: 3px solid #2d6a4f;
  text-align: center;
}

.right-card strong {
  display: block;
  margin-bottom: 0.35rem;
  color: #1e5128;
  font-size: 1.05rem;
}

.right-card p {
  margin: 0;
  color: #555;
  font-size: 0.9rem;
}

/* Acceptance box */
.policy-acceptance {
  margin-top: 2rem;
  padding: 1.5rem 2rem;
  border-radius: 10px;
  background: #2d6a4f;
  color: white;
  text-align: center;
  font-weight: 500;
}

.policy-acceptance p {
  margin: 0;
}

/* Policy links in contacto */
.policy-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e0e0e0;
}

.policy-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  border: 2px solid #2d6a4f;
  border-radius: 8px;
  color: #2d6a4f;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s;
}

.policy-link:hover {
  background: #2d6a4f;
  color: white;
}

/* Email link in privacy page */
.policy-note a {
  color: #2d6a4f;
  font-weight: 600;
  text-decoration: underline;
}

.policy-note a:hover {
  color: #1e5128;
}

/* Protegeme page */
.protegeme-page {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem 0;
}

.protegeme-image img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Staff page */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 1rem;
}

.staff-photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 1.5rem;
  border: 4px solid #e8f0ea;
}

.staff-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.staff-initial {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  background: #2d6a4f;
  color: white;
  font-size: 3rem;
  font-weight: 700;
}

.staff-info h2 {
  margin-bottom: 0.25rem;
  color: #1e5128;
  font-size: 1.5rem;
}

.staff-role {
  display: inline-block;
  padding: 0.3rem 1rem;
  border-radius: 20px;
  background: #e8f0ea;
  color: #2d6a4f;
  font-size: 0.95rem;
  font-weight: 500;
}

.staff-bio {
  margin-top: 1rem;
  color: #555;
  font-size: 0.95rem;
  line-height: 1.6;
}

.staff-bio--expandable {
  max-height: 12em;
  overflow: hidden;
  position: relative;
}

.staff-bio--expandable:not(.expanded)::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2em;
  background: linear-gradient(transparent, white);
}

.staff-bio--expandable.expanded {
  max-height: none;
}

.staff-bio--expandable p {
  margin-bottom: 0.5rem;
}

.staff-bio--expandable p:last-child {
  margin-bottom: 0;
}

.staff-read-more {
  margin-top: 0.5rem;
  background: none;
  border: none;
  color: #2d6a4f;
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0;
}

.staff-read-more:hover {
  text-decoration: underline;
}

.staff-credentials-link {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.4rem 1rem;
  border: 2px solid #2d6a4f;
  border-radius: 8px;
  color: #2d6a4f;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.3s;
}

.staff-credentials-link:hover {
  background: #2d6a4f;
  color: white;
}

/* Lightbox (shared) */
.lightbox {
  display: none;
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
  cursor: default;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  color: white;
  font-size: 2.5rem;
  font-weight: 300;
  cursor: pointer;
  line-height: 1;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .main .container {
    padding: 1.5rem 15px 3rem;
  }

  .policy-section {
    padding: 1.25rem;
  }

  .policy-section-header h2 {
    font-size: 1.2rem;
  }

  .timeline-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .rights-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .policy-links {
    flex-direction: column;
    align-items: center;
  }
}
