:root {
  color-scheme: light dark;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; }
body { color: #111; background: #fff; }
a { color: inherit; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

.landing {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: 100vh;
  min-height: 100svh;
  width: min(100%, 600px);
  margin: 0 auto;
  padding: 24vh max(20px, env(safe-area-inset-right)) 48px max(20px, env(safe-area-inset-left));
  text-align: left;
}
.brand-row { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; }
.landing h1 { margin: 0; line-height: 1; }
.brand-logo { display: block; width: 170px; height: 36px; object-fit: cover; object-position: center; }
.cat-button { display: grid; place-items: center; flex: none; width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; touch-action: manipulation; }
.cat-button img { display: block; width: 32px; height: 32px; image-rendering: pixelated; }
.intro {
  max-width: 600px;
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.6;
}
.document-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-size: 14px;
  line-height: 1.6;
}
.document-links a, .legal-footer a { display: inline-flex; align-items: center; min-height: 44px; }

.document-shell {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 18vh max(20px, env(safe-area-inset-right)) 64px max(20px, env(safe-area-inset-left));
  text-align: center;
}
.doc-heading { margin: 0 0 36px; }
.doc-heading h1 {
  margin: 0;
  font-size: clamp(22px, 3.5vw, 25px);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -.02em;
}
.legal-copy {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  text-align: left;
  font-size: 14px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.legal-copy section { margin: 0 0 26px; }
.legal-copy h2 {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
}
.legal-copy p { margin: 0 0 8px; }
.legal-copy ul { margin: 4px 0 12px; padding-left: 28px; }
.legal-copy li { margin: 3px 0; }
.legal-footer { margin-top: 32px; font-size: 13px; }

@media (prefers-color-scheme: dark) {
  body { color: #f5f5f5; background: #000; }
  .brand-logo { filter: invert(1); }
  .cat-button img { filter: invert(1); }
}
@media (max-width: 640px) {
  .landing {
    justify-content: center;
    padding-top: max(32px, env(safe-area-inset-top));
    padding-bottom: max(40px, env(safe-area-inset-bottom));
  }
  .intro, .document-links { font-size: 13px; }
  .document-shell { padding-top: max(48px, env(safe-area-inset-top)); padding-bottom: max(48px, env(safe-area-inset-bottom)); }
  .legal-copy, .legal-copy h2 { font-size: 13px; }
  .doc-heading { margin-bottom: 26px; }
}
@media (max-width: 480px) {
  .doc-heading h1 { font-size: 21px; }
}
