.content {
  overflow-y: auto;
}

.legal-workspace-page {
  position: relative;
  display: block;
  padding: 28px;
  background: var(--page-bg);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.legal-workspace-page::-webkit-scrollbar {
  display: none;
}

.legal-card {
  position: relative;
  z-index: 1;
  width: min(1220px, 100%);
  margin: 0 auto;
  border: 2px solid #111111;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: none;
  overflow: hidden;
}

.legal-card-head {
  padding: 28px 30px 24px;
  border-bottom: 2px solid #111111;
  background: #111111;
}

.legal-card-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 12px;
}

.legal-card-head .legal-kicker {
  margin: 0;
  width: fit-content;
  min-height: 26px;
  padding: 0 10px;
  border: 2px solid #111111;
  border-radius: 4px;
  background: #f4c73f;
  color: #111111;
  font-size: 12px;
  line-height: 22px;
  text-transform: uppercase;
  letter-spacing: 0;
  font-weight: 900;
  box-shadow: none;
}

.legal-card-head h1 {
  margin: 0;
  font-size: clamp(28px, 3.3vw, 42px);
  line-height: 1.08;
  letter-spacing: 0;
  color: #ffffff;
}

.legal-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  justify-content: flex-end;
  text-align: right;
}

.legal-card-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  line-height: 1.3;
  font-weight: 800;
}

.legal-card-head p {
  margin: 12px 0 0;
  color: #dfe6ee;
  font-size: 15px;
  line-height: 1.6;
  max-width: 980px;
  font-weight: 600;
}

.legal-section {
  padding: 26px 30px;
  border-bottom: 1px solid #dce2ea;
  background: #ffffff;
}

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

.legal-section h2 {
  margin: 0 0 16px;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: 0;
  color: #111111;
}

.legal-section p {
  margin: 0 0 10px;
  color: #202833;
  font-size: 15px;
  line-height: 1.68;
}

.legal-section ul {
  margin: 0;
  padding-left: 20px;
  color: #202833;
}

.legal-section li {
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.64;
}

.legal-section a {
  color: #0d5f95;
  text-decoration-line: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  font-weight: 700;
}

.legal-table-wrap {
  margin: 14px 0 16px;
  overflow-x: auto;
  border: 2px solid #111111;
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
}

.legal-table {
  width: 100%;
  min-width: 720px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: auto;
}

.legal-table th,
.legal-table td {
  padding: 14px 16px;
  border-right: 1px solid #dce2ea;
  border-bottom: 1px solid #dce2ea;
  text-align: left;
  vertical-align: top;
  font-size: 15px;
  line-height: 1.58;
  word-break: break-word;
  color: #111111;
}

.legal-table th:last-child,
.legal-table td:last-child {
  border-right: 0;
}

.legal-table tbody tr:last-child td {
  border-bottom: 0;
}

.legal-table th {
  background: #111111;
  color: #ffffff;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0;
  font-weight: 900;
}

.legal-table tbody tr:nth-child(odd) td {
  background: #ffffff;
}

.legal-table tbody tr:nth-child(even) td {
  background: #ffffff;
}

.legal-table tbody td:first-child {
  width: 34%;
  background: #f7f9fc;
  font-weight: 700;
}

@media (max-width: 768px) {
  .legal-workspace-page {
    padding: 16px 12px;
  }

  .legal-card {
    border-radius: 8px;
    box-shadow: none;
  }

  .legal-card-head,
  .legal-section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .legal-card-toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .legal-card-meta {
    justify-content: flex-start;
    text-align: left;
  }

  .legal-section h2 {
    font-size: 18px;
  }

  .legal-table {
    min-width: 640px;
  }

  .legal-table th,
  .legal-table td {
    padding: 11px 12px;
    font-size: 14px;
  }
}
