.legal-page {
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 48px;
}

.legal-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
}

.legal-heading h1 {
  color: #243f32;
  font-size: clamp(25px, 3vw, 34px);
  margin: 9px 0 7px;
  line-height: 1.15;
}

.legal-heading p,
.legal-panel-head p {
  margin: 0;
  color: #718077;
  line-height: 1.6;
}

.legal-mode,
.legal-status {
  display: inline-flex;
  align-items: center;
  border-radius: 30px;
  padding: 8px 12px;
  background: #f2eee7;
  color: #687468;
  font-size: 12px;
  white-space: nowrap;
}

.legal-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.legal-stat,
.legal-panel {
  background: #fff;
  border: 1px solid #e8e8e1;
  border-radius: 14px;
}

.legal-stat {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.legal-stat span {
  color: #738077;
  font-size: 12px;
}

.legal-stat strong {
  color: #243f32;
  font-size: 30px;
  line-height: 1;
}

.legal-notice {
  border: 1px solid #e9e2d4;
  background: #f9f6f0;
  color: #6c6152;
  padding: 17px 19px;
  border-radius: 12px;
  line-height: 1.65;
  margin: 18px 0 24px;
  font-size: 13px;
}

.legal-panel {
  overflow: hidden;
}

.legal-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 23px;
  border-bottom: 1px solid #ecece7;
}

.legal-panel h2 {
  margin: 0 0 6px;
  font-size: 19px;
  color: #253d32;
}

#legal-search {
  width: min(300px, 100%);
  border: 1px solid #dfdfd7;
  border-radius: 9px;
  padding: 12px 14px;
  background: #fff;
  color: #243f32;
  font: inherit;
}

.legal-product {
  display: flex;
  align-items: center;
  gap: 17px;
  padding: 16px 23px;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid #f0f0eb;
  transition: background .15s ease;
}

.legal-product:last-child {
  border-bottom: 0;
}

.legal-product:hover {
  background: #f8f8f3;
}

.legal-product-symbol {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: #f0f1e9;
  color: #304d3d;
  font-size: 20px;
  flex-shrink: 0;
}

.legal-product-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.legal-product-info strong {
  color: #253d32;
  font-size: 14px;
}

.legal-product-info small {
  color: #8a9188;
  font-size: 12px;
}

.legal-chevron {
  color: #9da69c;
}

.legal-back {
  color: #49634f;
  display: inline-block;
  text-decoration: none;
  margin-bottom: 24px;
  font-size: 13px;
}

.legal-detail {
  padding: 25px;
}

.legal-detail dl {
  margin: 18px 0 0;
}

.legal-detail dl div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid #eee;
  padding: 15px 0;
}

.legal-detail dt {
  color: #728078;
}

.legal-detail dd {
  margin: 0;
  color: #253d32;
  font-weight: 600;
  text-align: right;
}

.legal-empty {
  padding: 20px;
  text-align: center;
  color: #79847a;
}

.legal-product[hidden],
.legal-empty[hidden] {
  display: none;
}

@media (max-width: 850px) {
  .legal-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .legal-heading,
  .legal-panel-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .legal-status {
    display: none;
  }

  #legal-search {
    width: 100%;
  }
}


/* GIHS Legal Document Library */

.legal-library {
  margin-top: 24px;
}

.legal-library .legal-product {
  cursor: default;
}

.legal-library .legal-product:hover {
  background: #fff;
}

.legal-library .legal-product-info {
  min-width: 0;
}
