.legal-main {
  max-width: 1240px;
}

.legal-layout {
  grid-template-columns: 190px minmax(0, 860px);
}

.mcp-endpoint {
  align-items: center;
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 10px;
  color: #fff;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin: 22px 0;
  padding: 18px 20px;
}

.mcp-endpoint span {
  color: #94a3b8;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mcp-endpoint code,
.legal-section .mcp-endpoint code {
  background: transparent;
  color: #f8fafc;
  font-size: 14px;
  overflow-wrap: anywhere;
  padding: 0;
}

.mcp-callout {
  background: #f8fafc;
  border: 1px solid #dbe3ee;
  border-left: 4px solid #64748b;
  border-radius: 8px;
  margin: 22px 0;
  padding: 18px 20px;
}

.mcp-callout-safe {
  background: #f0fdf4;
  border-color: #bbf7d0;
  border-left-color: #15803d;
}

.mcp-callout > strong {
  color: #0f172a;
  display: block;
  margin-bottom: 4px;
}

.mcp-callout p,
.legal-section .mcp-callout p:last-child {
  margin: 0;
}

.mcp-client-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 24px;
}

.mcp-client-card {
  background: #fff;
  border: 1px solid #dbe3ee;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 20px;
}

.mcp-client-card-wide {
  grid-column: span 2;
}

.mcp-card-heading {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 12px;
}

.legal-section .mcp-card-heading h3 {
  color: #0f172a;
  font-size: 17px;
  line-height: 1.35;
  margin: 0;
}

.mcp-badge {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 999px;
  color: #047857;
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.025em;
  line-height: 1.2;
  padding: 5px 8px;
  text-transform: uppercase;
}

.legal-section .mcp-client-card p {
  color: #475569;
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 14px;
}

.legal-section .mcp-client-card .mcp-card-note {
  background: #f8fafc;
  border-radius: 7px;
  color: #64748b;
  padding: 10px 12px;
}

.mcp-client-card > a {
  align-self: flex-start;
  font-size: 13px;
  margin-top: auto;
}

.mcp-client-card pre {
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 8px;
  color: #e2e8f0;
  font-size: 12px;
  line-height: 1.55;
  margin: 0 0 14px;
  max-width: 100%;
  overflow-x: auto;
  padding: 14px;
}

.legal-section .mcp-client-card pre code {
  background: transparent;
  color: inherit;
  font-size: inherit;
  padding: 0;
}

.mcp-permission-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 22px 0;
}

.mcp-permission-card {
  background: #f8fafc;
  border: 1px solid #dbe3ee;
  border-radius: 10px;
  display: grid;
  gap: 8px;
  padding: 20px;
}

.mcp-permission-label {
  color: #64748b;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mcp-permission-card > code,
.mcp-permission-card > strong {
  color: #0f172a;
  font-size: 17px;
  font-weight: 750;
}

.legal-section .mcp-permission-card p {
  color: #475569;
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
}

.mcp-data-list {
  border-bottom: 1px solid #e2e8f0;
  border-top: 1px solid #e2e8f0;
  margin: 22px 0;
}

.mcp-data-list article {
  display: grid;
  gap: 18px;
  grid-template-columns: 34px minmax(0, 1fr);
  padding: 22px 0;
}

.mcp-data-list article + article {
  border-top: 1px solid #e2e8f0;
}

.mcp-data-list article > span {
  color: #059669;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 800;
}

.legal-section .mcp-data-list h3 {
  margin: 0 0 5px;
}

.legal-section .mcp-data-list p {
  color: #475569;
  margin: 0;
}

.mcp-table-wrap {
  border: 1px solid #dbe3ee;
  border-radius: 10px;
  margin: 22px 0;
  overflow-x: auto;
}

.mcp-tool-table {
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.55;
  min-width: 680px;
  width: 100%;
}

.mcp-tool-table th,
.mcp-tool-table td {
  border-bottom: 1px solid #e2e8f0;
  padding: 15px 16px;
  text-align: left;
  vertical-align: top;
}

.mcp-tool-table thead th {
  background: #f8fafc;
  color: #64748b;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mcp-tool-table tbody th {
  font-weight: 700;
  width: 29%;
}

.mcp-tool-table tr:last-child th,
.mcp-tool-table tr:last-child td {
  border-bottom: 0;
}

.mcp-status-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 22px 0;
}

.mcp-status-grid > div {
  border: 1px solid #dbe3ee;
  border-radius: 8px;
  padding: 16px;
}

.mcp-status {
  border-radius: 999px;
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  padding: 6px 8px;
}

.mcp-status-pass {
  background: #dcfce7;
  color: #166534;
}

.mcp-status-fail {
  background: #fee2e2;
  color: #991b1b;
}

.mcp-status-unknown {
  background: #fef3c7;
  color: #92400e;
}

.legal-section .mcp-status-grid p {
  color: #475569;
  font-size: 13px;
  line-height: 1.5;
  margin: 10px 0 0;
}

.mcp-example-list {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.mcp-example-card {
  background: #fff;
  border: 1px solid #dbe3ee;
  border-radius: 10px;
  display: grid;
  gap: 16px;
  grid-template-columns: 36px minmax(0, 1fr);
  padding: 20px;
  scroll-margin-top: 96px;
}

.mcp-example-number {
  color: #059669;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 850;
}

.legal-section .mcp-example-card h3 {
  margin: 0 0 10px;
}

.mcp-example-card blockquote {
  border-left: 3px solid #a7f3d0;
  color: #1e293b;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.65;
  margin: 0 0 12px;
  padding: 4px 0 4px 14px;
}

.legal-section .mcp-example-card p {
  color: #64748b;
  font-size: 13px;
  line-height: 1.6;
  margin: 0;
}

.mcp-troubleshooting-list {
  list-style: none;
  padding-left: 0;
}

.mcp-troubleshooting-list li {
  border-bottom: 1px solid #e2e8f0;
  padding: 13px 0;
}

.mcp-troubleshooting-list li:first-child {
  border-top: 1px solid #e2e8f0;
}

.mcp-support-box {
  align-items: flex-start;
  background: #0f172a;
  border-radius: 10px;
  color: #e2e8f0;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(190px, 0.7fr) minmax(0, 1.3fr);
  margin: 26px 0 20px;
  padding: 22px;
}

.mcp-support-box span,
.mcp-support-box strong {
  display: block;
}

.mcp-support-box span {
  color: #94a3b8;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.legal-section .mcp-support-box a {
  color: #fff;
  font-size: 16px;
}

.legal-section .mcp-support-box p {
  color: #cbd5e1;
  font-size: 13px;
  line-height: 1.65;
  margin: 0;
}

.legal-section .mcp-disclaimer {
  color: #64748b;
  font-size: 13px;
}

@media (max-width: 980px) {
  .legal-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .mcp-client-grid,
  .mcp-permission-grid,
  .mcp-status-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .mcp-client-card-wide {
    grid-column: auto;
  }

  .mcp-support-box {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 520px) {
  .mcp-endpoint {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .mcp-card-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .mcp-data-list article,
  .mcp-example-card {
    gap: 10px;
    grid-template-columns: minmax(0, 1fr);
  }
}
