/* The smaller pages: Privacy, Terms, shared games and groups, and the
   emergency-contact page. Same look as the home page (DESIGN.md), quieter. */

@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/Inter-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/Inter-Medium.ttf') format('truetype');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Inter Display';
  src: url('/assets/fonts/InterDisplay-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-display: swap;
}

:root {
  --canvas: #000000;
  --surface: #0b0e14;
  --raised: #161b24;
  --heading: #ffffff;
  --body: #f0f0f0;
  --muted: #a1a4a5;
  --hairline: #292d30;
  --accent: #0a6cff;
  --success: #3ad389;
  --display: 'Inter Display', 'Inter', system-ui, -apple-system, sans-serif;
  --text: 'Inter', system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }
html { overflow-x: clip; }
body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--canvas);
  color: var(--body);
  font-family: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--heading); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(760px, calc(100% - 40px)); margin-inline: auto; }

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 24px;
}
.bar img { width: 96px; height: auto; }
.bar-link { font-size: 14px; font-weight: 500; color: var(--muted); text-decoration: none; }
.bar-link:hover { color: var(--heading); }

.eyebrow {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
h1 {
  margin: 12px 0 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(40px, 8vw, 64px);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--heading);
}
.lead { margin: 20px 0 0; font-size: 19px; line-height: 1.55; color: var(--muted); }

.foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: auto;
  padding-block: 48px 40px;
  font-size: 14px;
  color: var(--muted);
}
.foot a { text-decoration: none; }
.foot a:hover { color: var(--heading); }
.foot span { margin-left: auto; }

/* ── Privacy + Terms ── */
.legal { padding-bottom: 40px; }
.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 32px 0 16px;
  padding: 0;
}
.toc a {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface);
  font-size: 13px;
  text-decoration: none;
  color: var(--body);
}
.toc a:hover { background: var(--raised); }
.legal section { padding-top: 40px; scroll-margin-top: 24px; }
.legal h2 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 24px;
  letter-spacing: -0.02em;
  color: var(--heading);
}
.legal p, .legal li { color: #d6d8d9; }
.legal ul { margin: 0; padding-left: 20px; }
.legal li { margin-bottom: 8px; }
.legal li::marker { color: var(--muted); }

/* ── A shared game or group: one card, like the app's share card ── */
.share { padding-block: 20px 40px; }
.card-top a { display: block; }
.card {
  padding: 10px;
  border-radius: 32px;
  background: linear-gradient(160deg, #3d8bff 0%, #0a6cff 45%, #0047c2 100%);
}
.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px 16px;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
}
.card-top img { width: 84px; height: auto; }
.card-panel {
  padding: 28px 24px;
  border-radius: 24px;
  background: #000;
}
.card-panel h1 { margin-top: 10px; font-size: clamp(34px, 7vw, 52px); }
.facts { margin: 24px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--hairline); }
.facts li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 16px;
}
.facts li span:first-child { color: var(--muted); }
.facts li span:last-child { text-align: right; color: var(--heading); }
.good { color: var(--success) !important; }
.actions { display: grid; gap: 10px; margin-top: 24px; }
.button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--heading);
  color: var(--canvas);
  font-weight: 500;
  font-size: 16px;
  text-decoration: none;
}
.button.ghost { background: var(--raised); color: var(--heading); }
.note { margin: 16px 0 0; font-size: 14px; color: var(--muted); text-align: center; }

/* ── The emergency-contact page ── */
.check { padding-block: 32px 40px; }
.status {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
  padding: 20px;
  border-radius: 24px;
  background: var(--surface);
}
.status-dot { flex-shrink: 0; width: 14px; height: 14px; border-radius: 50%; background: #f5a524; }
.status.fine .status-dot { background: var(--success); }
.status p { margin: 0; font-size: 18px; color: var(--heading); }
.status small { display: block; font-size: 14px; color: var(--muted); }
.call {
  margin-top: 28px;
  padding: 20px;
  border-radius: 24px;
  border: 1px solid var(--hairline);
}
.call h2 { margin: 0 0 8px; font-family: var(--display); font-size: 20px; color: var(--heading); }
.call p { margin: 0; color: var(--muted); }
.call a { color: var(--heading); font-weight: 500; }
