/* The privacy policy and the help page (/privacy, /support). Colors, cards and the backdrop come from
   /shared/theme.css. Unlike the game pages, the text here can be selected and the page zoomed. */

.info-layout {
  max-width: 720px;
  margin: 0 auto;
  padding: calc(76px + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) calc(32px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
}

/* Top-left, like the game pages' (create-room/css/game.css) - the iPhone app has no back button of its own. It
   scrolls away with the page rather than floating over the text. */
.home-btn {
  position: absolute;
  top: calc(12px + env(safe-area-inset-top, 0px));
  left: calc(12px + env(safe-area-inset-left, 0px));
  z-index: 100;
  text-decoration: none;
}

/* In the iPhone app the page runs under the status bar, so the text scrolls under a band there rather than under the
   clock. In a browser tab the safe area is 0 and so is the band. */
.info-layout::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: env(safe-area-inset-top, 0px);
  background: rgba(35, 37, 38, 0.82);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.info-head {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin-bottom: 20px;
  text-align: center;
}

.info-head h1 {
  margin: 0;
  font-size: 34px;
  font-weight: 800;
  line-height: 1.1;
}

.info-head .updated {
  margin: 0;
  color: var(--on-dark-muted);
  font-size: 14px;
}

.info-card {
  padding: 24px 22px;
  font-size: 16px;
  line-height: 1.6;
}

.info-card h2 {
  margin: 28px 0 8px;
  font-size: 20px;
  line-height: 1.3;
}

.info-card h2:first-child { margin-top: 0; }

.info-card p,
.info-card ul { margin: 0 0 12px; }

.info-card ul { padding-left: 22px; }
.info-card li { margin: 6px 0; }
.info-card li::marker { color: var(--ink-muted); }

.info-card a {
  color: var(--you);
  font-weight: 600;
  text-underline-offset: 2px;
}

/* The short version, at the top */
.info-card .summary {
  margin: 0 0 8px;
  padding: 16px 18px 6px;
  border-radius: 12px;
  background: var(--you-bg);
}

.info-card .summary h2 { margin-top: 0; }

.info-foot {
  margin: 20px 0 0;
  color: var(--on-dark-muted);
  font-size: 14px;
  text-align: center;
}

.info-foot a {
  color: #fff;
  font-weight: 600;
  text-underline-offset: 3px;
}

/* The page a shared link to the app opens off an iPhone (/app) */
.app-card { display: grid; gap: 16px; }
.app-card p { margin: 0; }
.app-banner {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}
.app-actions { display: grid; gap: 10px; }
.app-actions .btn { text-decoration: none; }
.info-card .app-actions a { font-weight: 700; }
.info-card .app-actions .btn-primary { color: #fff; }
.info-card .app-actions .btn-ghost { color: var(--ink); }
