:root {
  color-scheme: light;
  --page: #f7f8fb;
  --paper: #ffffff;
  --ink: #111216;
  --text: #2f333a;
  --muted: #69707c;
  --faint: #9298a3;
  --line: #e3e6eb;
  --soft: #f2f4f8;
  --blue: #2f5be8;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

.legal-shell {
  min-height: 100dvh;
}

.legal-main,
.legal-footer {
  width: min(880px, calc(100vw - 40px));
  margin: 0 auto;
}

.legal-nav {
  width: min(1180px, calc(100vw - 40px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
}

.wordmark {
  position: relative;
  display: inline-flex;
  color: var(--ink);
  font-size: 21px;
  font-weight: 900;
  letter-spacing: 0;
  text-decoration: none;
  isolation: isolate;
}

.wordmark span {
  color: var(--blue);
}

.wordmark::after {
  position: absolute;
  right: -0.04em;
  bottom: 0.03em;
  left: -0.04em;
  z-index: -1;
  height: 0.15em;
  border-radius: 999px;
  background: rgba(47, 91, 232, 0.85);
  content: "";
  transform: rotate(-0.7deg);
}

.legal-footer a {
  text-decoration: none;
}

.legal-footer a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.legal-register-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 820;
  text-decoration: none;
  white-space: nowrap;
}

.legal-register-button:hover {
  background: #24262b;
  text-decoration: none;
}

.legal-main {
  padding: 54px 0 76px;
}

.legal-header {
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line);
}

.legal-kicker {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 850;
}

h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 930;
  letter-spacing: 0;
  line-height: 1.08;
}

.legal-lead {
  max-width: 720px;
  margin: 20px 0 0;
  color: var(--text);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.9;
}

.legal-date {
  margin: 22px 0 0;
  color: var(--faint);
  font-size: 13px;
  font-weight: 720;
}

.legal-section {
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}

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

h2 {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.35;
}

h3 {
  margin: 24px 0 10px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 880;
  letter-spacing: 0;
}

p,
li {
  color: var(--text);
  font-size: 16px;
  font-weight: 560;
  line-height: 1.9;
}

p {
  margin: 0;
}

p + p,
ul + p,
ol + p {
  margin-top: 14px;
}

ul,
ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 1.35em;
}

strong {
  color: var(--ink);
  font-weight: 850;
}

.legal-list {
  margin-top: 14px;
}

.legal-table {
  display: grid;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  overflow: hidden;
}

.legal-row {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  border-bottom: 1px solid var(--line);
}

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

.legal-row dt,
.legal-row dd {
  margin: 0;
  padding: 16px 18px;
  font-size: 15px;
  line-height: 1.75;
}

.legal-row dt {
  background: var(--soft);
  color: var(--muted);
  font-weight: 830;
}

.legal-row dd {
  color: var(--text);
  font-weight: 600;
}

.legal-note {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.legal-note p {
  color: var(--muted);
  font-size: 14px;
}

.legal-footer {
  display: grid;
  gap: 16px;
  padding: 0 0 42px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 720;
}

.legal-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
}

.legal-footer-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.legal-footer p {
  margin: 0;
  color: var(--faint);
  font-size: 13px;
}

@media (max-width: 640px) {
  .legal-nav {
    width: min(100% - 28px, 1180px);
    padding: 18px 0;
  }

  .legal-register-button {
    min-height: 40px;
    padding: 0 15px;
    font-size: 13px;
  }

  .legal-main {
    padding-top: 38px;
  }

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

  .legal-row {
    grid-template-columns: 1fr;
  }

  .legal-row dt {
    padding-bottom: 6px;
  }

  .legal-row dd {
    padding-top: 6px;
  }
}
