:root {
  color-scheme: light;
  --paper: #f3f0ed;
  --ink: #242522;
  --muted: #64645e;
  --focus: #1717d9;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  -webkit-text-size-adjust: 100%;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 0;
  font-size: 1rem;
  line-height: 1.5;
}

.site-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  padding: 1.5rem;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover { text-decoration-thickness: 2px; }

a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 5px;
  border-radius: 2px;
}

.brand {
  display: inline-flex;
  width: fit-content;
  border-radius: 1rem;
}

.app-icon {
  display: block;
  width: 4.25rem;
  height: 4.25rem;
  border-radius: 1rem;
}

.home-content {
  width: 100%;
  max-width: 43rem;
  margin-top: clamp(4rem, 12vh, 7rem);
}

.intro {
  margin: 0;
  font-size: clamp(1.375rem, 2.15vw, 1.75rem);
  line-height: 1.35;
  letter-spacing: -0.025em;
}

.coming-soon {
  margin: 3.5rem 0 0;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.site-footer {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  margin-top: auto;
  padding-top: 6rem;
  font-size: 0.9375rem;
}

.site-footer p { margin: 0; }

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
}

.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

.legal-content {
  width: 100%;
  max-width: 46rem;
  margin-top: 4rem;
  font-size: 1.125rem;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.legal-content h1,
.error-content h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.effective-date {
  margin: 1rem 0 2.5rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

.legal-content h2 {
  margin: 2.5rem 0 0.75rem;
  font-size: 1.375rem;
  line-height: 1.35;
  letter-spacing: -0.025em;
}

.legal-content p { margin: 0 0 1rem; }
.legal-content .effective-date { margin: 1rem 0 2.5rem; }
.legal-content ul { padding-left: 1.4rem; margin: 0 0 1rem; }
.legal-content li + li { margin-top: 0.625rem; }

.error-content { max-width: 43rem; margin-top: 5rem; }
.error-content p { font-size: 1.125rem; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1.5rem;
  top: -5rem;
  padding: 0.75rem 1rem;
  color: var(--paper);
  background: var(--ink);
  z-index: 1;
}

.skip-link:focus { top: 1rem; }

@media (max-width: 40rem) {
  .site-shell { padding: 1.25rem; }
  .app-icon { width: 3.5rem; height: 3.5rem; border-radius: 0.8125rem; }
  .site-footer { flex-direction: column; align-items: flex-start; gap: 1rem; padding-top: 5rem; }
  .legal-links { gap: 0.75rem 1.5rem; }
  .legal-content { margin-top: 3rem; font-size: 1rem; }
}

@media print {
  :root { background: white; color: black; }
  .site-shell { padding: 0; }
  .site-header, .skip-link, .site-footer { display: none; }
  .legal-content { margin-top: 0; max-width: none; font-size: 11pt; }
  .legal-content h2 { break-after: avoid; }
  .legal-content p, .legal-content li { orphans: 3; widows: 3; }
}
