/* Marco Legal directory */
.cfu-legal-page {
  width: 100%;
  min-width: 0;
  background: #f7f8f9;
}

.cfu-legal-header,
.cfu-legal-directory {
  background: #f7f8f9;
}

.cfu-legal-header {
  padding-bottom: 30px;
}

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

.cfu-legal-directory {
  padding-top: 24px;
}

.cfu-legal-directory__heading {
  margin-bottom: 26px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
}

.cfu-legal-directory__label {
  display: block;
  margin-bottom: 8px;
  color: #667085;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cfu-legal-directory__heading h2 {
  margin: 0;
  color: #0f50a6;
  font-size: clamp(25px, 3vw, 32px);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.cfu-legal-directory__count {
  flex: 0 0 auto;
  padding-bottom: 4px;
  color: #667085;
  font-size: 14px;
  font-weight: 700;
}

.cfu-legal-list {
  width: 100%;
  border-top: 1px solid #d8e1ed;
}

.cfu-legal-sentinel {
  min-height: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cfu-legal-sentinel.is-loading { height: 68px; }

.cfu-legal-sentinel[hidden] { display: none; }

.cfu-legal-loader {
  display: none;
  width: 26px;
  height: 26px;
  border: 3px solid rgba(15, 80, 166, 0.14);
  border-top-color: #0f50a6;
  border-radius: 50%;
  animation: cfu-legal-spin 0.75s linear infinite;
}

.cfu-legal-sentinel.is-loading .cfu-legal-loader { display: block; }

@keyframes cfu-legal-spin { to { transform: rotate(360deg); } }

.cfu-legal-empty {
  padding: 44px 0;
  border-bottom: 1px solid #d8e1ed;
  text-align: center;
}

.cfu-legal-empty[hidden] { display: none; }
.cfu-legal-empty h3 { margin: 0 0 7px; color: #0f50a6; font-size: 22px; }
.cfu-legal-empty p { margin: 0; color: #667085; }

.cfu-legal-item {
  position: relative;
  width: 100%;
  min-height: 116px;
  padding: 25px 18px;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 44px minmax(170px, 0.62fr) minmax(0, 1.45fr) auto;
  align-items: center;
  column-gap: 34px;
  border-bottom: 1px solid #d8e1ed;
  transition: background-color 0.2s ease;
}

.cfu-legal-item:hover {
  background: rgba(255, 255, 255, 0.74);
}

.cfu-legal-item__index {
  color: #b3bdc9;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.cfu-legal-item__identity {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.cfu-legal-item__type {
  color: #0367a6;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.cfu-legal-item__number {
  color: #0f50a6;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 800;
}

.cfu-legal-item__content h3 {
  margin: 0 0 8px;
  color: #0f50a6;
  font-size: 19px;
  line-height: 1.3;
  font-weight: 800;
}

.cfu-legal-item__source {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #667085;
  font-size: 13px;
  line-height: 1.45;
}

.cfu-legal-item__source i {
  color: #0367a6;
}

.cfu-legal-item__link {
  padding: 10px 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(15, 80, 166, 0.22);
  border-radius: 999px;
  color: #0f50a6;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.cfu-legal-item__link:hover,
.cfu-legal-item__link:focus {
  background: #0f50a6;
  color: #fff;
  text-decoration: none;
}

.cfu-legal-item__link i {
  font-size: 11px;
}

.cfu-legal-note {
  margin: 28px 0 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #667085;
  font-size: 14px;
  line-height: 1.6;
}

.cfu-legal-note i {
  margin-top: 4px;
  color: #0f50a6;
}

@media (max-width: 820px) {
  .cfu-legal-item {
    grid-template-columns: 38px minmax(150px, 0.7fr) minmax(0, 1.3fr);
    column-gap: 22px;
  }

  .cfu-legal-item__link {
    grid-column: 3;
    justify-self: start;
    margin-top: 10px;
  }
}

@media (max-width: 640px) {
  .cfu-legal-directory__heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .cfu-legal-item {
    min-height: 0;
    padding: 22px 4px;
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    align-items: start;
    gap: 12px 14px;
  }

  .cfu-legal-item__index {
    grid-row: 1 / span 3;
    padding-top: 3px;
  }

  .cfu-legal-item__identity,
  .cfu-legal-item__content,
  .cfu-legal-item__link {
    grid-column: 2;
  }

  .cfu-legal-item__identity {
    flex-direction: row;
    align-items: baseline;
    gap: 8px;
  }

  .cfu-legal-item__link {
    justify-self: start;
    margin-top: 2px;
  }
}
