:root {
  --bg: #1b1f2b;
  --text: rgba(255, 255, 255, 0.86);
  --muted: rgba(255, 255, 255, 0.6);
  --line: rgba(255, 255, 255, 0.16);
  --btn: rgba(0, 0, 0, 0.45);
  --btn-hover: rgba(0, 0, 0, 0.7);
  --accent: #9fd3ff;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg) url("/assets/bg.jpg") center / cover fixed no-repeat;
  color: var(--text);
  font-family: "Exo", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); }

.wrap {
  width: 100%;
  max-width: 34rem;
  margin: 0 auto;
  padding: 4rem 1rem 3rem;
  text-align: center;
}

.wrap.wide {
  max-width: 48rem;
  text-align: left;
}

.title {
  margin: 0;
  font-weight: 100;
  font-size: clamp(2.6rem, 9vw, 4rem);
  letter-spacing: 0.35em;
  margin-right: -0.35em; /* balance trailing letter-spacing */
  color: #fff;
}

.subtitle {
  margin: 0.25rem 0 2.5rem;
  font-size: 1.25rem;
  font-weight: 200;
  color: var(--muted);
}

.announcement {
  display: inline-block;
  margin: -1rem 0 2.25rem;
  padding: 0.5rem 1.1rem;
  border: 1px solid rgba(159, 211, 255, 0.45);
  border-radius: 999px;
  background: rgba(159, 211, 255, 0.1);
  color: #fff;
  font-weight: 300;
  letter-spacing: 0.02em;
}

.buttons {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1rem;
  max-width: 21rem;
  margin: 0 auto;
}

.button {
  display: block;
  padding: 0.75rem 1.5rem;
  border-radius: 0.3rem;
  background: var(--btn);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 300;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.button:hover,
.button:focus-visible {
  background: var(--btn-hover);
  transform: translateY(-1px);
}

.divider {
  width: 6rem;
  margin: 2.5rem auto;
  border: 0;
  border-top: 1px solid var(--line);
}

.social {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.social a {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.75);
  transition: background 0.2s ease, color 0.2s ease;
}

.social a:hover,
.social a:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.social svg { width: 1.4rem; height: 1.4rem; fill: currentColor; }

.note {
  margin: 2.5rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

footer {
  margin-top: 3rem;
  font-size: 0.9rem;
  color: var(--muted);
}

footer a { color: var(--muted); }
footer nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.5rem 1.5rem; }

/* Document pages (privacy policy, account deletion) */
.doc {
  background: rgba(15, 18, 27, 0.88);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  padding: 2rem clamp(1rem, 4vw, 2.5rem);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 400;
  font-size: 0.98rem;
  overflow-wrap: anywhere;
}

.doc h1 { margin-top: 0; font-size: 1.9rem; color: #fff; }
.doc h2 { margin-top: 2.2rem; font-size: 1.25rem; color: #fff; scroll-margin-top: 1rem; }
.doc h3 { margin-top: 1.6rem; font-size: 1.05rem; color: #fff; }
.doc .updated { color: var(--muted); margin-top: -0.5rem; }
.doc ul, .doc ol { padding-left: 1.4rem; }
.doc li { margin: 0.3rem 0; }
.doc address { font-style: normal; margin: 1rem 0; }

.table-wrap { overflow-x: auto; margin: 1rem 0; }
.doc table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.doc th, .doc td { border: 1px solid var(--line); padding: 0.5rem 0.6rem; vertical-align: top; text-align: left; }
.doc th { background: rgba(255, 255, 255, 0.06); }

.back { display: inline-block; margin-bottom: 1.25rem; color: var(--muted); text-decoration: none; }
.back:hover { color: #fff; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}

@media (max-width: 480px) {
  body { background-attachment: scroll; }
  .wrap { padding-top: 3rem; }
}
