* {
  box-sizing: border-box
}

:root {
  --primary: #0b1120;
  --secondary: #1f5c7a;
  --accent: #34495e;
  --cyan: #22d3ee;
  --blue: #60a5fa;
  --text: #e5e7eb;
  --muted: rgba(229, 231, 235, .78);
  --stroke: rgba(255, 255, 255, .16);
  --row: rgba(255, 255, 255, .04);
  --row-alt: rgba(255, 255, 255, .07)
}

html,
body {
  margin: 0;
  height: 100%
}

body {
  min-height: 100dvh;
  font-family: 'Space Grotesk', Inter, system-ui, sans-serif;
  color: var(--text);
  background: #0c1a2a;
  --sidebar-w: 0px;
}

.page-terms {
  display: flex;
  flex-direction: column
}

.legal-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 28px 16px
}

.logo {
  height: 44px;
  width: auto;
  display: block
}

.btn-back {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .06);
  color: var(--text);
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none !important;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease
}

.btn-back:hover {
  transform: translateY(-1px);
  border-color: rgba(96, 165, 250, .5);
  box-shadow: 0 10px 24px rgba(96, 165, 250, .18)
}

.btn-back-fallback {
  display: inline-block;
  color: var(--blue);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  padding: 10px 18px
}

.legal-main {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 26px 64px
}

.md h1 {
  margin: 8px 0 4px;
  font-size: var(--fs-3xl);
  line-height: 1.15;
  letter-spacing: -.02em
}

.md h2 {
  margin: 28px 0 10px;
  font-size: var(--fs-2xl);
  letter-spacing: -.01em
}

.md h3 {
  margin: 20px 0 8px;
  font-size: var(--fs-xl);
}

.md h4 {
  margin: 16px 0 6px;
  font-size: var(--fs-lg);
}

.md p {
  margin: 10px 0 12px;
  line-height: 1.78;
  max-width: 82ch;
  color: #dbe3ee
}

.md ul,
.md ol {
  margin: 10px 0 18px 22px;
  line-height: 1.9;
  color: #dbe3ee
}

.md li {
  margin: 0 0 8px
}

.md hr {
  border: none;
  height: 1px;
  background: rgba(255, 255, 255, .12);
  margin: 20px 0
}

.link {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 2px
}

.table-wrap {
  width: 100%;
  overflow: auto;
  border: 1px solid var(--stroke);
  border-radius: 14px;
  background: rgba(0, 0, 0, .08);
  margin: 12px 0 16px
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0
}

thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .08));
  color: #eef2f7;
  font-weight: 700;
  border-bottom: 1px solid var(--stroke)
}

th,
td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: top
}

td {
  color: #dbe3ee
}

tbody tr:nth-child(odd) {
  background-color: var(--row)
}

tbody tr:nth-child(even) {
  background-color: var(--row-alt)
}

tbody tr:hover {
  background: rgba(96, 165, 250, .12)
}

tbody td+td,
thead th+th {
  border-left: 1px solid var(--stroke)
}

.meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: space-between;
  color: var(--muted);
  margin-top: 16px
}

@media (max-width: 768px) {
  .legal-main {
    padding: 0 18px 48px
  }

  th,
  td {
    padding: 12px
  }

  table {
    min-width: 600px;
  }

  .table-wrap {
    -webkit-overflow-scrolling: touch;
  }
}

@media (prefers-reduced-motion:reduce) {
  * {
    animation: none !important;
    transition: none !important
  }
}