:root {
  color-scheme: dark;
  --bg-base: #0D100F;
  --bg-raised: #191D1B;
  --text-primary: #F2F1EC;
  --text-secondary: #A4B5B5;
  --accent: #97CD97;
  --border: rgba(123, 150, 105, 0.20);
  --font: "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg-base);
  color: var(--text-primary);
  font: 400 16px/1.5 var(--font);
}

img { display: block; max-width: 100%; height: auto; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.site-header {
  padding: 16px;
  border-bottom: 1px solid var(--border);
}

.site-header a { display: inline-block; }

.site-header img { width: 88px; }

.site-main {
  flex: 1;
  width: 100%;
}

.centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
  text-align: center;
}

/* The lockup PNG has wide transparent margins, so crop the sides and pull in the top and bottom. */
.hero-logo {
  width: min(340px, 85vw);
  aspect-ratio: 1;
  object-fit: cover;
  margin: -24px 0 -48px;
}

.tagline {
  max-width: 34rem;
  margin: 24px 0 0;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.35;
}

.beta-note {
  margin: 24px 0 0;
  padding: 6px 14px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

.contact {
  margin: 24px 0 0;
  color: var(--text-secondary);
  overflow-wrap: anywhere;
}

.not-found-title {
  margin: 0;
  font-size: 28px;
  font-weight: 400;
}

.not-found-link { margin: 16px 0 0; }

.contact a,
.not-found-link a,
.site-footer a {
  color: var(--accent);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  padding: 20px 16px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-secondary);
}

.site-footer a {
  display: inline-block;
  padding: 4px 0;
}

.site-footer p {
  margin: 0;
  padding: 4px 0;
}

/* Termly's HTML assumes dark text, so legal content always sits on a white panel. */
.legal-main { padding: 16px; }

.legal-panel {
  color-scheme: light;
  max-width: 800px;
  margin: 0 auto;
  padding: 24px 20px;
  background: #FFFFFF;
  color: #1B201D;
  border-radius: 8px;
  overflow-wrap: break-word;
}

.legal-panel table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
}

.legal-status { margin: 0; }

@media (min-width: 640px) {
  .site-header { padding: 16px 24px; }
  .hero-logo { width: 420px; margin: -32px 0 -64px; }
  .tagline { font-size: 28px; }
  .legal-main { padding: 32px 24px; }
  .legal-panel { padding: 40px; }
}
