/* Static CMS pages (legal, about, etc.) */
.sg-static-page {
  padding: 28px 0 48px;
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 768px) {
  .sg-static-page { padding-top: 36px; }
}

.sg-static-page__layout {
  display: grid;
  gap: 24px;
  max-width: 1120px;
  margin: 0 auto;
}
@media (min-width: 1024px) {
  .sg-static-page__layout {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 32px;
    align-items: start;
  }
}

.sg-static-page__main { min-width: 0; }

.sg-static-page__back {
  margin: 0 0 12px;
  font-size: 0.8125rem;
  font-weight: 600;
}
.sg-static-page__back a {
  color: #64748b;
  text-decoration: none;
}
.sg-static-page__back a:hover {
  color: #2563eb;
  text-decoration: underline;
}

.sg-static-page__title {
  margin: 0 0 20px;
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.025em;
  color: #0f172a;
}

.sg-static-page__card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.04);
  padding: 24px 20px;
}
@media (min-width: 640px) {
  .sg-static-page__card { padding: 28px 32px; }
}

.sg-static-page__updated {
  margin: 20px 0 0;
  font-size: 0.75rem;
  font-weight: 500;
  color: #94a3b8;
  line-height: 1.5;
}

.sg-static-page__aside { min-width: 0; }
@media (min-width: 1024px) {
  .sg-static-page__aside { position: sticky; top: 88px; }
}

.sg-static-page__nav {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 18px 16px;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.04);
}
.sg-static-page__nav h2 {
  margin: 0 0 12px;
  padding: 0 8px;
  font-size: 0.6875rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #94a3b8;
}
.sg-static-page__nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sg-static-page__nav li + li { margin-top: 4px; }
.sg-static-page__nav a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #475569;
  text-decoration: none;
  transition: background 150ms, color 150ms;
}
.sg-static-page__nav a:hover {
  background: #f8fafc;
  color: #2563eb;
}
.sg-static-page__nav a.is-active {
  background: #eff6ff;
  color: #2563eb;
}

/* Prose */
.sg-static-page .sg-prose {
  color: #334155;
  font-size: 0.9375rem;
  line-height: 1.75;
  max-width: none;
}
@media (min-width: 640px) {
  .sg-static-page .sg-prose { font-size: 1rem; }
}
.sg-static-page .sg-prose > :first-child { margin-top: 0; }
.sg-static-page .sg-prose > :last-child { margin-bottom: 0; }
.sg-static-page .sg-prose p { margin: 0 0 1.15em; }
.sg-static-page .sg-prose h2 {
  margin: 2em 0 0.75em;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.3;
  color: #0f172a;
  letter-spacing: -0.02em;
}
.sg-static-page .sg-prose h3 {
  margin: 1.6em 0 0.6em;
  font-size: 1.125rem;
  font-weight: 700;
  color: #0f172a;
}
.sg-static-page .sg-prose a {
  color: #2563eb;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.sg-static-page .sg-prose a:hover { color: #1d4ed8; }
.sg-static-page .sg-prose strong { color: #0f172a; font-weight: 700; }
.sg-static-page .sg-prose ul,
.sg-static-page .sg-prose ol {
  margin: 0 0 1.15em;
  padding-left: 1.4em;
}
.sg-static-page .sg-prose li { margin: 0.4em 0; }
.sg-static-page .sg-prose blockquote {
  margin: 1.25em 0;
  padding: 0.75em 0 0.75em 1em;
  border-left: 3px solid #bfdbfe;
  color: #64748b;
  font-style: italic;
}
.sg-static-page .sg-prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  margin: 1.25em 0;
}
.sg-static-page .sg-prose th,
.sg-static-page .sg-prose td {
  border: 1px solid #e2e8f0;
  padding: 0.65rem 0.75rem;
  text-align: left;
}
.sg-static-page .sg-prose th {
  background: #f8fafc;
  font-weight: 700;
  color: #0f172a;
}
.sg-static-page .sg-prose .sg-empty-note {
  margin: 0;
  padding: 20px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  color: #64748b;
  font-style: italic;
  text-align: center;
}

.sg-static-page ~ .cx-footer { margin-top: 0; }
