.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-help-breadcrumb {
  width: min(1259px, 100%);
  margin: 0 auto 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: #64748b;
  font-size: 14px;
  font-weight: 750;
}

.legal-help-breadcrumb a {
  color: #111111;
  text-decoration: none;
  transition: transform 140ms ease, color 140ms ease;
}

.legal-help-breadcrumb a:hover,
.legal-help-breadcrumb a:focus-visible {
  color: #075ed1;
  outline: 0;
  transform: translateY(-1px);
}

.legal-help-layout {
  display: grid;
  width: min(1259px, 100%);
  margin-inline: auto;
  grid-template-columns: minmax(0, calc(100% - 404px)) minmax(280px, 380px);
  align-items: start;
  gap: 24px;
}

.legal-help-layout .legal-card {
  width: 100%;
  margin: 0;
}

.legal-help-toc {
  position: sticky;
  top: 0;
  align-self: start;
  min-width: 0;
  max-height: calc(100vh - 24px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 18px 16px;
  border: 2px solid #111111;
  background: #ffffff;
  box-shadow: none;
}

.legal-help-toc {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.legal-help-toc::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.legal-help-toc > p {
  margin: 0 0 12px;
  color: #111111;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.legal-help-toc nav {
  display: grid;
  gap: 8px;
}

.legal-help-toc .help-article-toc-link {
  display: block;
  color: #596273;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
  transition: color 140ms ease, transform 140ms ease;
}

.legal-help-toc .help-article-toc-link--level-3,
.legal-help-toc .help-article-toc-link--level-4 {
  padding-left: 12px;
  font-size: 12px;
  font-weight: 650;
}

.legal-help-toc .help-article-toc-link:hover,
.legal-help-toc .help-article-toc-link:focus-visible {
  color: #075ed1;
  outline: 0;
  transform: translateY(-1px);
}

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

.legal-card {
  position: relative;
  z-index: 1;
  width: min(900px, 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 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;
}

.legal-table-technology {
  font-family: var(--font-mono);
  font-size: 13px !important;
}

@media (max-width: 980px) {
  .legal-help-layout {
    width: min(900px, 100%);
    display: flex;
    flex-direction: column;
  }

  .legal-help-toc {
    position: static;
    width: 100%;
    order: -1;
  }
}

@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;
  }
}

@media (max-width: 760px) {
  .legal-help-breadcrumb {
    gap: 4px;
    margin-bottom: 10px;
    font-size: 1rem;
    line-height: 1.3;
    overflow-wrap: anywhere;
  }

  .legal-help-breadcrumb a {
    gap: 5px;
  }
}
