:root {
  --font-display: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --text: #202123;
  --muted: #5f6368;
  --rule: #e5e7eb;
  --bg: #faf7f2;
  --link: #0f5cc0;
  --max-width: 760px;
  --paper: #faf7f2;
  --paper-text: #1a1714;
  --torch: #d4750b;
  --text-primary: #111827;
  --brand-primary: #e26313;
  --text-secondary: #6b6359;
  --ink: #1a1714;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--link);
  text-decoration: underline;
}

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

.legal-footer {
  border-top: 1px solid var(--rule);
  padding: 28px 0 40px;
}

.legal-footer-inner,
.legal-main {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
}

.legal-footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
}

.legal-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.legal-footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  line-height: 1;
}

.legal-footer-links a:hover {
  color: var(--text);
  text-decoration: underline;
}

.legal-main {
  padding: 108px 0 56px;
}

.legal-doc {
  width: 100%;
}

.legal-doc h1 {
  margin: 0 0 8px;
  font-size: 40px;
  line-height: 1.15;
  font-weight: 650;
}

.legal-doc h2 {
  margin: 32px 0 12px;
  font-size: 26px;
  line-height: 1.25;
  font-weight: 650;
}

.legal-doc h3 {
  margin: 22px 0 10px;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 650;
}

.legal-doc p,
.legal-doc ul,
.legal-doc ol {
  margin: 0 0 16px;
}

.legal-doc ul,
.legal-doc ol {
  padding-left: 22px;
}

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

.legal-doc hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 28px 0;
}

.legal-meta,
.legal-note {
  color: var(--muted);
}

.legal-toc {
  margin: 24px 0 32px;
  padding-left: 18px;
}

.legal-inline-note {
  padding: 14px 16px;
  margin: 18px 0;
  border-left: 3px solid var(--text);
  background: rgba(255, 255, 255, 0.55);
  color: var(--text);
}

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

@media (max-width: 640px) {
  .legal-footer-inner {
    gap: 10px;
  }

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

  .legal-doc h1 {
    font-size: 32px;
  }

  .legal-doc h2 {
    font-size: 22px;
  }
}
