/* ==========================================================================
   LEGENDAS — legendas.css
   Visual “app” alinhado ao HUB (sem tema tech)
   - Remove manchas/gradientes herdados do app.css
   - Layout clean, responsivo
   - Footer apenas desktop (classe .footer-desktop-only)
   ========================================================================== */

/* ==========================================================================
   FIX BACKGROUND (remove “cores/manchas” do tema base)
   ========================================================================== */

html,
body {
  background: #f6f8fc !important;
  background-image: none !important;
}

body.app-body,
body {
  background: #f6f8fc !important;
  background-image: none !important;
}

body::before,
body::after,
body.app-body::before,
body.app-body::after {
  content: none !important;
  display: none !important;
}

/* ==========================================================================
   PAGE
   ========================================================================== */

.l-page {
  padding-top: 14px;
  padding-bottom: 18px;
}

/* ==========================================================================
   HEADER
   ========================================================================== */

.l-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.l-head__left {
  display: flex;
  gap: 12px;
  min-width: 0;
}

.l-ico {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: 0 12px 22px rgba(15, 23, 42, 0.06);
  flex: 0 0 auto;
}

.l-titles {
  min-width: 0;
}

.l-kicker {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(71, 85, 105, 0.85);
  font-weight: 950;
}

.l-title {
  margin: 2px 0 0;
  font-size: 18px;
  font-weight: 1000;
  letter-spacing: -0.35px;
  color: rgba(15, 23, 42, 0.92);
}

.l-sub {
  margin: 6px 0 0;
  font-size: 13px;
  color: rgba(71, 85, 105, 0.95);
  font-weight: 650;
  max-width: 64ch;
}

/* ==========================================================================
   CARD
   ========================================================================== */

.l-card {
  overflow: hidden;
}

.l-card__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  background: linear-gradient(#fff, #fbfbff);
}

.l-card__title {
  font-weight: 1000;
  letter-spacing: -0.25px;
}

/* ==========================================================================
   CONTENT
   ========================================================================== */

.legend {
  padding: 14px;
}

/* seção */
.l-section {
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
  border-radius: 14px;
  padding: 10px 12px;
  margin-bottom: 10px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

/* header de seção */
.l-h {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.l-h__dot {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: rgba(34, 197, 94, 0.8);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.12);
  flex: 0 0 auto;
}

.l-h__title {
  margin: 0;
  font-size: 12.5px;
  font-weight: 1000;
  letter-spacing: -0.2px;
  color: rgba(15, 23, 42, 0.92);
}

/* texto */
.l-p {
  margin: 6px 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: rgba(15, 23, 42, 0.86);
  font-weight: 650;
}

/* lista */
.l-ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

.l-ul li {
  margin: 6px 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: rgba(15, 23, 42, 0.86);
  font-weight: 650;
}

/* chip de sigla */
.l-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(15, 23, 42, 0.04);
  font-weight: 950;
  font-size: 12px;
  letter-spacing: -0.1px;
}

/* ==========================================================================
   SKELETON (se você usar carregamento)
   ========================================================================== */

.l-skel {
  padding: 6px 0;
}

.l-skel__line {
  height: 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  margin: 10px 0;
  position: relative;
  overflow: hidden;
}

.l-skel__line::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-60%);
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 0.65),
    rgba(255, 255, 255, 0)
  );
  animation: lShimmer 1.2s infinite;
}

@keyframes lShimmer {
  0% {
    transform: translateX(-60%);
  }
  100% {
    transform: translateX(120%);
  }
}

.w60 {
  width: 60%;
}
.w75 {
  width: 75%;
}
.w85 {
  width: 85%;
}
.w90 {
  width: 90%;
}

/* ==========================================================================
   FOOTER (somente desktop)
   ========================================================================== */

@media (max-width: 900px) {
  .footer-desktop-only {
    display: none !important;
  }
}

/* ==========================================================================
   MOBILE
   ========================================================================== */

@media (max-width: 720px) {
  .l-head {
    flex-direction: column;
    align-items: stretch;
  }

  .legend {
    padding: 10px;
  }

  .l-card__top {
    padding: 10px 12px;
  }

  .l-section {
    padding: 10px;
    border-radius: 12px;
  }

  .l-p,
  .l-ul li {
    line-height: 1.6;
  }

  .l-chip {
    font-size: 11px;
    padding: 2px 7px;
  }
}
