*, *::before, *::after {
  box-sizing: border-box;
}

:root {
  --bg: #0a0e17;
  --surface: #101827;
  --panel: #131b2b;
  --line: rgba(255,255,255,0.09);
  --line-strong: rgba(255,255,255,0.16);
  --text: #e8edf5;
  --muted: #94a3b8;
  --soft: #5a6478;
  --teal: #06d6a0;
  --orange: #ff6b35;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: 'Outfit', sans-serif;
  line-height: 1.65;
}

a {
  color: var(--teal);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.legal-shell {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 56px;
}

.legal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0 28px;
}

.legal-brand {
  color: var(--text);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.legal-brand span {
  color: var(--teal);
}

.legal-nav-links {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.legal-document {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(24px, 4vw, 56px);
  box-shadow: 0 24px 80px rgba(0,0,0,0.28);
}

.legal-hero {
  padding-bottom: 26px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.legal-kicker {
  margin: 0 0 10px;
  color: var(--orange);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1.02;
  letter-spacing: 0;
}

.legal-hero p:last-child {
  margin: 14px 0 0;
  color: var(--muted);
}

section {
  padding: 7px 0;
}

h2 {
  margin: 24px 0 10px;
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: 0;
}

p {
  margin: 0 0 14px;
  color: var(--muted);
}

strong {
  color: var(--text);
}

ul {
  margin: 0 0 16px;
  padding-left: 22px;
  color: var(--muted);
}

li + li {
  margin-top: 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

th,
td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--text);
  background: rgba(255,255,255,0.035);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

td {
  color: var(--muted);
}

tr:last-child td {
  border-bottom: 0;
}

.legal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--soft);
  font-size: 14px;
}

@media (max-width: 720px) {
  .legal-shell {
    width: min(100% - 22px, 1040px);
    padding-top: 18px;
  }

  .legal-nav,
  .legal-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .legal-document {
    padding: 22px 18px;
  }

  table,
  thead,
  tbody,
  tr,
  th,
  td {
    display: block;
  }

  thead {
    display: none;
  }

  tr {
    border-bottom: 1px solid var(--line-strong);
  }

  tr:last-child {
    border-bottom: 0;
  }

  td {
    border-bottom: 0;
    padding: 11px 12px;
  }

  td:first-child {
    color: var(--text);
    font-weight: 700;
    padding-bottom: 0;
  }
}
