/* =========================================================
   PharmaCommerce — Legal / Content Pages
   Used by: page-faq.php, page-terminos.php, page-privacidad.php
   ========================================================= */


/* ── Page wrapper ─────────────────────────────────────────── */
.pc-legal-page {
  padding: 48px 0 72px;
}


/* ── Hero / header area ───────────────────────────────────── */
.pc-legal-hero {
  padding-bottom: 28px;
  margin-bottom: 40px;
  border-bottom: 2px solid var(--pc-color-primary);
}

.pc-legal-hero__eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pc-color-primary);
  margin: 0 0 12px;
}

.pc-legal-hero__title {
  font-size: 2rem;
  font-weight: 900;
  color: #111827;
  margin: 0 0 10px;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.pc-legal-hero__meta {
  font-size: 13px;
  color: #6B7280;
  margin: 0;
}


/* ── Section blocks ───────────────────────────────────────── */
.pc-legal-section {
  margin-bottom: 40px;
}

.pc-legal-section__title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #111827;
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid #F3F4F6;
  letter-spacing: -0.01em;
}

.pc-legal-section p {
  font-size: 15px;
  line-height: 1.75;
  color: #374151;
  margin: 0 0 14px;
}

.pc-legal-section p:last-child {
  margin-bottom: 0;
}

.pc-legal-section ul,
.pc-legal-section ol {
  padding-left: 22px;
  margin: 0 0 14px;
}

.pc-legal-section li {
  font-size: 15px;
  line-height: 1.75;
  color: #374151;
  margin-bottom: 6px;
}


/* ── FAQ Accordion (details/summary) ─────────────────────── */
.pc-faq-intro {
  font-size: 15px;
  line-height: 1.7;
  color: #6B7280;
  margin: 0 0 32px;
}

.pc-faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pc-faq-item {
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pc-faq-item[open] {
  border-color: var(--pc-color-primary);
  box-shadow: 0 2px 12px rgba(35, 65, 136, 0.10);
}

.pc-faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  -webkit-user-select: none;
  user-select: none;
  transition: color 0.18s ease;
}

.pc-faq-item summary::-webkit-details-marker {
  display: none;
}

/* Chevron icon via inline SVG background */
.pc-faq-item summary::after {
  content: "";
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='M2 4.5l5 5 5-5' stroke='%23234188' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform 0.25s ease;
}

.pc-faq-item[open] summary::after {
  transform: rotate(180deg);
}

.pc-faq-item[open] summary {
  color: var(--pc-color-primary);
  border-bottom: 1px solid #F3F4F6;
}

.pc-faq-body {
  padding: 16px 20px 20px;
  font-size: 15px;
  line-height: 1.75;
  color: #374151;
}

.pc-faq-body p {
  margin: 0 0 10px;
}

.pc-faq-body p:last-child {
  margin-bottom: 0;
}

.pc-faq-body ul {
  padding-left: 20px;
  margin: 8px 0 0;
}

.pc-faq-body li {
  margin-bottom: 6px;
}


/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .pc-legal-page {
    padding: 28px 0 52px;
  }

  .pc-legal-hero {
    padding-bottom: 22px;
    margin-bottom: 28px;
  }

  .pc-legal-hero__title {
    font-size: 1.5rem;
  }

  .pc-legal-section {
    margin-bottom: 28px;
  }

  .pc-legal-section__title {
    font-size: 1rem;
  }

  .pc-faq-item summary {
    padding: 15px 16px;
    font-size: 14.5px;
  }

  .pc-faq-body {
    padding: 14px 16px 16px;
    font-size: 14.5px;
  }
}
