/* ==========================================================================
   FAVOR LEGAL PAGES (Kebijakan Privasi, Syarat & Ketentuan, Kebijakan Refund)
   Scoped strictly to .favor-legal-main
   ========================================================================== */

.favor-legal-main {
  padding: 28px 0 56px;
}

.favor-legal-wrap {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.favor-legal-hero {
  background: linear-gradient(135deg, rgba(235, 178, 59, 0.14) 0%, rgba(17, 17, 17, 0.96) 55%, #000000 100%);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 14px;
  padding: 28px 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.favor-legal-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(235, 178, 59, 0.16);
  border: 1px solid rgba(235, 178, 59, 0.4);
  color: #F5C542;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.favor-legal-hero h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.25;
  color: #ffffff;
}

.favor-legal-lead {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.84);
}

.favor-legal-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.45);
}

.favor-legal-updated {
  margin: 0;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.62);
}

.favor-legal-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.favor-legal-tab {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(17, 17, 17, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.favor-legal-tab:hover {
  border-color: #EBB23B;
  color: #ffffff;
}

.favor-legal-tab.is-active {
  background: #EBB23B;
  border-color: #EBB23B;
  color: #ffffff;
}

.favor-legal-toc {
  background: #111111;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 12px;
  padding: 18px 22px;
}

.favor-legal-toc__title {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.72);
}

.favor-legal-toc__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 18px;
}

.favor-legal-toc__list a {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-size: 13.5px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  transition: color 0.15s ease;
}

.favor-legal-toc__list a:hover {
  color: #F5C542;
}

.favor-legal-card {
  background: #111111;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 14px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.favor-legal-section {
  scroll-margin-top: 84px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}

.favor-legal-section:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.favor-legal-section h2 {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.favor-legal-pasal {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 6px;
  background: rgba(235, 178, 59, 0.16);
  color: #F5C542;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.favor-legal-section h3 {
  margin: 14px 0 8px;
  font-size: 14.5px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.94);
}

.favor-legal-section p {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.72;
  color: rgba(255, 255, 255, 0.82);
}

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

.favor-legal-section ul,
.favor-legal-section ol {
  margin: 0 0 10px;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.favor-legal-section li {
  font-size: 14px;
  line-height: 1.68;
  color: rgba(255, 255, 255, 0.82);
}

.favor-legal-section strong {
  color: #ffffff;
  font-weight: 600;
}

.favor-legal-section a {
  color: #F5C542;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.favor-legal-section a:hover {
  color: #ffffff;
}

.favor-legal-note {
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 10px;
  background: rgba(235, 178, 59, 0.08);
  border-left: 3px solid #EBB23B;
  font-size: 13.5px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
}

@media (max-width: 767.98px) {
  .favor-legal-main {
    padding: 18px 0 40px;
  }

  .favor-legal-hero {
    padding: 20px 18px;
    border-radius: 12px;
  }

  .favor-legal-hero h1 {
    font-size: 22px;
  }

  .favor-legal-toc {
    padding: 16px 18px;
  }

  .favor-legal-toc__list {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .favor-legal-card {
    padding: 20px 18px;
    gap: 22px;
    border-radius: 12px;
  }

  .favor-legal-section h2 {
    font-size: 16px;
    flex-wrap: wrap;
    gap: 6px 8px;
  }
}
