.legal-ad {
  cursor: pointer;
}
.legal-ad__meta {
  display: flex;
  gap: 1rem;
  color: #6b7280;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.legal-ad {
  border: 1px solid #d4d4d4;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 12px;
}

.legal-ad:hover {
  border: 1px solid #8b2500;
}

/* ===== CALENDAR ICON FOR LEGAL AD DATES ===== */
.legal_tag_date {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.legal-ad__date {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #6b7280;
}

.legal-ad__date::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z' /%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
}

.legal-ad:hover .legal-ad__date::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23a62c00' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z' /%3E%3C/svg%3E");
}

.legal-ad:hover .legal-ad__date {
  color: #a62c00;
}

@media (max-width: 480px) {
  .legal-ad__date::before {
    width: 14px;
    height: 14px;
  }
}

/* Modal */
.legal-ads-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}
.legal-ads-modal-overlay.is-open {
  display: flex;
}
.legal-ads-modal {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  max-width: 760px;
  width: 90%;
  max-height: 80vh;
  overflow: auto;
}
.legal-ads-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem 0 1.25rem;
  font-size: 1.5rem;
  font-weight: 700;
  position: relative;
}
.legal-ads-modal__body {
  padding: 1.25rem;
}
.legal-ads-modal__close {
  appearance: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 6px;
  position: absolute;
  right: 12px;
  top: 12px;
}
.legal-ads-modal__close:hover {
  background: #f3f4f6;
}

/* Badge and layout helpers */
.legal-ad__type .badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  background: #f9f3f2;
  color: #8b2500;
  font-weight: 600;
  font-size: 0.75rem;
}

.legal-ad__title {
  font-weight: 700;
  font-size: 1.125rem;
  color: #000000 !important;
  text-decoration: none !important;
  margin-bottom: 12px;
}

.legal-ad__date {
  color: #6b7280;
}

.legal-ad__actions a {
  color: #a62c00;
  font-weight: 500;
}

.legal_meta_actions {
  display: flex;
  justify-content: space-between;
}

.legal_tag_date {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}

.legal-ad__description p {
  color: lab(36.2% 0 0.00000596046) !important;
  font-weight: 400 !important;
  border: none !important;
  padding: 0 !important;
}

.legal-ad__actions .btn--primary {
  background-color: #fff !important;
  color: lab(31.1644% 49.8615 41.7994) !important;
  padding: 0 !important;
  height: 20px !important;
}

.legal-ad__actions .btn--primary:hover {
  text-decoration: underline !important;
  background-color: #fff !important;
  color: lab(31.1644% 49.8615 41.7994) !important;
}

.legal-ad__modal-body {
  font-weight: 400;
}

@media (max-width: 468px) {
  .legal-ads-modal__title {
    font-size: 18px !important;
  }
}

.legal-ads-modal__header .legal-ads-modal__title {
  position: absolute;
  top: 60px;
}

.legal-ad__modal-meta {
  margin-top: 55px;
}

.legal-ad__type {
  margin-top: -10px;
}
