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

:root {
  color-scheme: light;
  --bg: #f5f7f6;
  --surface: #ffffff;
  --text: #17201b;
  --muted: #5f6d66;
  --line: #dbe3df;
  --accent: #1f8a5b;
  --accent-strong: #166b46;
  --header-bg: rgba(255, 255, 255, 0.92);
  --shadow: rgba(23, 32, 27, 0.06);
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #0d1110;
    --surface: #141a18;
    --text: #eef6f1;
    --muted: #b3c0ba;
    --line: #28342f;
    --accent: #25d366;
    --accent-strong: #7ce2a7;
    --header-bg: rgba(13, 17, 16, 0.92);
    --shadow: rgba(0, 0, 0, 0.28);
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

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

a:hover {
  text-decoration: underline;
}

.legal-header {
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
}

.legal-nav {
  width: min(1040px, calc(100% - 32px));
  min-height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
  font-weight: 600;
}

.legal-shell {
  width: min(860px, calc(100% - 32px));
  margin: 44px auto 56px;
}

.legal-document {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(28px, 5vw, 56px);
  box-shadow: 0 16px 50px var(--shadow);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 18px;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.08;
  letter-spacing: 0;
}

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

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

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

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

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

.legal-footer {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 640px) {
  .legal-nav,
  .legal-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 12px;
  }

  .legal-shell {
    margin-top: 24px;
  }
}
