:root {
  color-scheme: light dark;
  --bg: #f7f8f6;
  --text: #202421;
  --muted: #667069;
  --line: rgba(26, 34, 29, 0.12);
  --sandstone: #d7ad86;
  --sandstone-soft: #f2d9bf;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-feature-settings: "calt" 1, "cv09" 1, "cv03" 1, "cv04" 1, "cv10" 1, "cv06" 1, "ss03" 1;
  font-optical-sizing: auto;
  font-synthesis: none;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101816;
    --text: #f3f6f1;
    --muted: #b8c0b9;
    --line: rgba(235, 244, 239, 0.13);
    --sandstone: #9b7453;
    --sandstone-soft: #d7ad86;
  }
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 6%, color-mix(in srgb, var(--sandstone) 20%, transparent), transparent 30%),
    linear-gradient(180deg, var(--bg), color-mix(in srgb, var(--bg) 91%, var(--sandstone-soft) 9%));
}

a {
  color: inherit;
}

.legal-page {
  width: min(760px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0 40px;
}

.legal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 46px;
}

.legal-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  font-size: 18px;
  font-weight: 740;
  text-decoration: none;
}

.legal-brand img {
  display: block;
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.back-home {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.back-home:hover,
.legal-footer a:hover {
  color: var(--text);
}

.legal-document h1 {
  margin: 0 0 20px;
  font-size: clamp(36px, 7vw, 58px);
  line-height: 1;
  letter-spacing: 0;
}

.legal-document h1 + p {
  margin-top: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.legal-document h2 {
  margin: 42px 0 10px;
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: 0;
}

.legal-document p,
.legal-document li {
  font-size: 16px;
  line-height: 1.65;
}

.legal-document p {
  margin: 14px 0;
}

.legal-document strong {
  font-weight: 700;
}

.legal-document a {
  color: #087bf0;
  text-underline-offset: 3px;
}

.legal-document ul {
  margin: 16px 0 20px;
  padding-left: 24px;
}

.legal-document li + li {
  margin-top: 8px;
}

.license-text {
  margin: 0;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.65;
  white-space: pre-wrap;
}

.legal-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 58px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  color: var(--muted);
  font-size: 12px;
}

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

@media (max-width: 560px) {
  .legal-page {
    width: min(100% - 24px, 760px);
    padding-top: 18px;
  }

  .legal-nav {
    padding-bottom: 34px;
  }

  .legal-document h2 {
    margin-top: 34px;
  }
}
