/* Legal pages reuse blog layout; only policy-specific pieces live here. */

.legal-page .blog-sidebar__panel--sticky {
  max-height: none;
  overflow: visible;
}

.legal-page .blog-sidebar__panel--sticky > .blog-toc-block {
  flex: 0 0 auto;
  min-height: 0;
}

.legal-page .blog-toc--scroll {
  flex: 0 0 auto;
  height: auto;
  max-height: none;
  overflow: visible;
  margin-right: 0;
  padding-right: 0;
  scrollbar-gutter: auto;
}

.legal-page .blog-toc--scroll::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

@media (max-width: 1100px) {
  .legal-page .blog-toc--scroll {
    max-height: none;
    overflow: visible;
  }
}

@media (max-width: 600px) {
  .legal-page .blog-toc--scroll {
    max-height: none;
    overflow: visible;
  }
}

.legal-page .blog-hero__image-shell {
  display: none;
}

.legal-page .blog-hero__content {
  margin-bottom: 48px;
}

.legal-page .blog-content__surface > section + section {
  margin-top: 8px;
}

.legal-callout {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin: 8px 0 20px;
}

.legal-callout i {
  margin-top: 3px;
  color: var(--blue);
  flex-shrink: 0;
}

.legal-callout p {
  margin: 0;
  color: #2f3b4a;
  font-weight: 500;
  line-height: 1.7;
}

.legal-table-wrap {
  margin: 8px 0 28px;
  overflow-x: auto;
  border: 1px solid rgba(18, 99, 251, 0.1);
  border-radius: 18px;
  background: #fbfdff;
}

.legal-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 0.94rem;
}

.legal-table th,
.legal-table td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(18, 99, 251, 0.08);
}

.legal-table th {
  background: linear-gradient(180deg, #f3f7fc, #eef4fb);
  font-family: var(--font-head);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

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

.legal-table tbody tr:hover td {
  background: rgba(18, 99, 251, 0.03);
}

.legal-table td:first-child {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
}

.legal-table a {
  color: var(--blue);
  font-weight: 600;
}

.legal-table a:hover {
  text-decoration: underline;
}

.legal-table-footnote {
  margin: 0 !important;
  padding: 14px 16px 16px;
  border-top: 1px solid rgba(18, 99, 251, 0.08);
  font-size: 0.92rem !important;
  color: var(--muted) !important;
}

.legal-related {
  margin-top: 28px;
  padding-top: 8px;
}

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

.legal-related__card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 18px;
  border-radius: 16px;
  border: 1px solid rgba(18, 99, 251, 0.1);
  background:
    linear-gradient(180deg, #ffffff, #f8fbff);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.legal-related__card:hover {
  transform: translateY(-3px);
  border-color: rgba(18, 99, 251, 0.28);
  box-shadow: 0 16px 36px rgba(30, 31, 36, 0.08);
}

.legal-related__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--navy);
}

.legal-related__desc {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

.legal-related__cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue);
  font-weight: 700;
  font-size: 0.92rem;
}

@media (max-width: 700px) {
  .legal-related__grid {
    grid-template-columns: 1fr;
  }

  .legal-table {
    min-width: 0;
  }

  .legal-table thead {
    display: none;
  }

  .legal-table,
  .legal-table tbody,
  .legal-table tr,
  .legal-table td {
    display: block;
    width: 100%;
  }

  .legal-table tr {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(18, 99, 251, 0.08);
  }

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

  .legal-table td {
    padding: 6px 0;
    border-bottom: 0;
  }

  .legal-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    font-family: var(--font-head);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
  }

  .legal-table td:first-child {
    white-space: normal;
  }
}
