.gla-laws {
  --gla-green: #243925;
  --gla-green-soft: #53603a;
  --gla-orange: #e99222;
  --gla-border: #6d7450;
  --gla-cream: #fffde5;
  --gla-sun: url("https://votegoura.com.br/wp-content/uploads/2026/08/cropped-Website-Simbolo-scaled-1.png");
  width: 100%;
  background: transparent;
  font-family: "Be Vietnam Pro", "Inter", Arial, sans-serif;
  color: var(--gla-green);
}

/* Abas */
.gla-laws .gla-tabs {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 18px;
  width: 100%;
  max-width: 1435px;
  margin: 0 auto 52px;
}

.gla-laws .gla-tab {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--gla-green-soft) !important;
  background: transparent !important;
  color: var(--gla-green) !important;
  border-radius: 10px;
  padding: 12px 25px;
  min-width: 0;
  min-height: 46px;
  box-shadow: none !important;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
}

.gla-laws .gla-tab:hover:not(.is-active),
.gla-laws .gla-tab:focus-visible:not(.is-active) {
  background: var(--gla-green-soft) !important;
  border-color: var(--gla-green-soft) !important;
  color: var(--gla-cream) !important;
  outline: none;
}

.gla-laws .gla-tab:focus-visible {
  box-shadow: 0 0 0 3px rgba(74, 100, 45, .18) !important;
}

.gla-laws .gla-tab.is-active,
.gla-laws .gla-tab.is-active:hover,
.gla-laws .gla-tab.is-active:focus-visible {
  background: var(--gla-orange) !important;
  border-color: var(--gla-orange) !important;
  color: var(--gla-cream) !important;
  box-shadow: 0 5px 14px rgba(233, 146, 34, .18) !important;
}

.gla-panel {
  display: none;
}

.gla-panel.is-active {
  display: block;
}

/* Grade - 3 leis por linha */
.gla-laws .gla-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 16px;
  width: 100%;
  max-width: 1435px;
  margin: 0 auto;
}

.gla-laws .gla-card {
  min-width: 0;
  min-height: 168px;
  border: 1px solid var(--gla-border);
  border-radius: 10px;
  background: transparent;
  padding: 17px 20px 15px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  box-shadow: none;
  text-decoration: none !important;
  color: inherit !important;
}

.gla-laws a.gla-card {
  cursor: pointer;
}

.gla-laws a.gla-card:hover {
  border-color: var(--gla-border);
  background: transparent;
  color: inherit !important;
  text-decoration: none !important;
}

.gla-laws a.gla-card:focus-visible {
  outline: 2px solid var(--gla-orange);
  outline-offset: 3px;
}

.gla-laws .gla-law-number {
  color: var(--gla-green);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
  margin: 0 0 9px;
}

.gla-laws .gla-law-title {
  width: 100%;
  max-width: 100%;
  color: var(--gla-green);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 0;
  margin: 0 0 12px;
  overflow-wrap: anywhere;
}

/* CTA Conheça */
.gla-laws .gla-law-link {
  margin-top: auto;
  color: var(--gla-orange) !important;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none !important;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 4px 0;
  transition: color .18s ease;
}

.gla-laws .gla-law-link span {
  display: inline-block;
  font-size: 18px;
  line-height: 1;
  transition: transform .18s ease;
}

.gla-laws .gla-law-link:hover,
.gla-laws .gla-law-link:focus-visible {
  color: var(--gla-green) !important;
  outline: none;
}

.gla-laws .gla-law-link:focus-visible {
  text-decoration: underline !important;
  text-underline-offset: 3px;
}

.gla-laws .gla-law-link:hover span,
.gla-laws .gla-law-link:focus-visible span {
  transform: translateX(4px);
}

.gla-laws .gla-law-link-disabled {
  opacity: .45;
  pointer-events: none;
}

/* Veja mais: sem interferência de estilos globais do Elementor/tema */
.gla-laws .gla-load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}

.gla-laws .gla-load-more,
.gla-laws .gla-load-more:hover,
.gla-laws .gla-load-more:focus,
.gla-laws .gla-load-more:active {
  appearance: none;
  -webkit-appearance: none;
  border: 0 !important;
  background: transparent !important;
  color: var(--gla-green) !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 16px 28px !important;
  min-width: 150px;
  min-height: 0;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 13px;
  cursor: pointer;
  text-transform: uppercase;
  transform: none !important;
}

.gla-laws .gla-load-sun {
  width: 68px;
  height: 68px;
  display: block;
  background-image: var(--gla-sun);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  animation: gla-sun-spin 6s linear infinite;
  transform-origin: 50% 50%;
  filter: none;
}

.gla-laws .gla-load-text {
  position: relative;
  display: block;
  color: var(--gla-green) !important;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: .035em;
  transition: color .18s ease;
}

.gla-laws .gla-load-text::after {
  content: "";
  display: block;
  width: 34px;
  height: 3px;
  margin: 9px auto 0;
  background: var(--gla-orange);
  border-radius: 999px;
  transition: width .18s ease;
}

.gla-laws .gla-load-more:hover .gla-load-sun,
.gla-laws .gla-load-more:focus-visible .gla-load-sun {
  animation-duration: 1.5s;
}

.gla-laws .gla-load-more:hover .gla-load-text,
.gla-laws .gla-load-more:focus-visible .gla-load-text {
  color: var(--gla-orange) !important;
}

.gla-laws .gla-load-more:hover .gla-load-text::after,
.gla-laws .gla-load-more:focus-visible .gla-load-text::after {
  width: 54px;
}

.gla-laws .gla-load-more:focus-visible {
  outline: 2px solid var(--gla-orange) !important;
  outline-offset: 5px;
}

@keyframes gla-sun-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.gla-load-more.is-hidden,
.gla-card.is-hidden {
  display: none !important;
}

.gla-empty {
  text-align: center;
  color: var(--gla-green);
  font-size: 15px;
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  .gla-tab,
  .gla-card,
  .gla-law-link span,
  .gla-load-text,
  .gla-load-text::after {
    transition: none;
  }

  .gla-load-sun {
    animation: none;
  }
}

@media (max-width: 1024px) {
  .gla-laws .gla-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 18px;
  }

  .gla-laws .gla-tabs {
    margin-bottom: 38px;
  }
}

@media (max-width: 767px) {
  .gla-laws .gla-tabs {
    justify-content: flex-start;
    gap: 8px;
    margin-bottom: 30px;
  }

  .gla-laws .gla-tab {
    padding: 9px 14px;
    min-height: 38px;
    font-size: 11px;
    border-radius: 8px;
  }

  .gla-laws .gla-grid {
    grid-template-columns: 1fr;
    row-gap: 12px;
  }

  .gla-laws .gla-card {
    min-height: 148px;
    padding: 15px 16px 13px;
  }

  .gla-laws .gla-law-number {
    font-size: 11px;
  }

  .gla-laws .gla-law-title {
    font-size: 16px;
    line-height: 1.16;
  }

  .gla-laws .gla-law-link {
    font-size: 12px;
  }

  .gla-laws .gla-load-more-wrap {
    margin-top: 30px;
  }

  .gla-laws .gla-load-sun {
    width: 60px;
    height: 60px;
  }
}
