:root {
  color-scheme: dark;
  background: #0d1117;
  color: #f0f6fc;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  background: #0d1117;
}

body {
  min-height: 100vh;
  display: grid;
}

.legal-page {
  grid-template-rows: 1fr auto;
  justify-items: center;
  padding: 48px 24px 28px;
}

.legal-content {
  width: min(1500px, 100%);
  color: #f0f6fc;
  line-height: 1.72;
  text-align: center;
}

.legal-content :first-child {
  margin-top: 0;
}

.legal-content :last-child {
  margin-bottom: 0;
}

.legal-content h1,
.legal-content h2,
.legal-content h3 {
  margin: 0 0 14px;
  margin-top: 34px;
  color: #fff;
  line-height: 1.08;
  letter-spacing: 0;
}

.legal-content h1 {
  margin-top: 0;
  font-size: clamp(2.45rem, 7vw, 4.9rem);
}

.legal-content h2 {
  font-size: clamp(1.45rem, 3vw, 2.2rem);
}

.legal-content p,
.legal-content li {
  color: rgba(240, 246, 252, 0.8);
  font-size: clamp(1rem, 2.1vw, 1.16rem);
}

.legal-content ul,
.legal-content ol {
  display: inline-block;
  margin: 16px auto;
  padding-left: 1.4em;
  text-align: left;
}

.legal-content li {
  margin: 6px 0;
}

.legal-content a {
  color: #58a6ff;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.legal-content strong {
  color: rgba(255, 255, 255, 0.94);
}

.legal-content code {
  padding: 0.12em 0.35em;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.legal-content pre {
  max-width: 100%;
  overflow: auto;
  padding: 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  text-align: left;
}

.legal-content img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 18px auto;
  border-radius: 12px;
}

.legal-content table {
  width: 100%;
  margin: 18px 0;
  border-collapse: collapse;
  text-align: left;
}

.legal-content .markdown-table-wrap {
  max-width: 100%;
  overflow-x: auto;
}

.legal-content th,
.legal-content td {
  padding: 10px;
  border: 1px solid rgba(240, 246, 252, 0.14);
}

.legal-content blockquote {
  width: fit-content;
  max-width: 100%;
  margin: 22px auto;
  padding: 0 18px;
  border-left: 3px solid rgba(88, 166, 255, 0.72);
}

.legal-content hr {
  width: min(480px, 100%);
  margin: 34px auto;
  border: 0;
  border-top: 1px solid rgba(240, 246, 252, 0.14);
}

.legal-footer {
  width: min(1500px, 100%);
  margin-top: 56px;
  padding-top: 18px;
  border-top: 1px solid rgba(240, 246, 252, 0.12);
  color: rgba(240, 246, 252, 0.62);
  font-size: 0.92rem;
  text-align: center;
}

.legal-footer a {
  margin: 0 8px;
  color: rgba(240, 246, 252, 0.78);
  text-decoration: none;
}

.legal-footer a:hover,
.legal-footer a:focus-visible {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
