/* Base */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.6;
  color: #0b1220;
  background: #f7f6f5; /* light background */
}

@media (prefers-color-scheme: dark) {
  body {
    color: #e6eaf2;
    background: #0b1220; /* dark background */
  }
}

/* Layout: center content, keep footer near bottom */
.viewport-center {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* pushes footer down */
  align-items: center;
  gap: 1.25rem;
  text-align: center;
  padding: 2rem;
}

/* Logo area */
.logo-wrap {
  display: grid;
  place-items: center;
  margin-top: 1rem;
}
.logo {
  width: clamp(220px, 20vw, 360px);
  height: auto;
  display: block;
}

/* Placeholder only if logo missing (optional) */
.logo-placeholder {
  display: none;
}

/* Intro paragraph (replaces the table) */
.intro-text {
  margin: 1.25rem auto 0;
  width: min(92vw, 640px);   /* comfy on phones and tablets */
  max-width: none;
  padding: 0 1rem;           /* avoid edge-to-edge on small screens */
  text-align: center;
}
.intro-text p {
  margin: 0;
  font-size: 1rem;
  color: inherit;
  opacity: 0.7;              /* similar feel as footer */
  line-height: 1.6;
}

/* Desktop: intro slightly wider than logo */
@media (min-width: 769px) {
  .intro-text {
    width: clamp(286px, 26vw, 468px)); /* ~130% of logo width */
    margin-left: auto;
    margin-right: auto;
    padding: 0;
  }
}

/* Footer */
footer {
  margin-top: 0.5rem;
  opacity: 0.8;
}

/* Corner atom */
.corner-atom {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 100px;
  height: auto;
  opacity: 0.9;
  pointer-events: none;
  z-index: 50;
}
@media (max-width: 768px) {
  .corner-atom { width: 60px; }
}
@media (prefers-reduced-motion: reduce) {
  .corner-atom { display: none; }
}

.privacy { margin: 2rem auto; max-width: 720px; padding: 1.5rem; text-align: center; }
.privacy h2 { font-size: 1.25rem; margin-bottom: 0.75rem; }
.privacy .meta { opacity: .7; font-size: .9rem; margin-top: .5rem; }
