/* ============================================================================
   site.css — shell for the legal pages (privacy policy / terms / game service)

   These pages replaced the old landing page: the site root is now the privacy
   policy, so the shell is deliberately plain: light background, text footer and
   a centred card. The policy wording itself lives in privacy.html /
   service_declare.html and is embedded in a card here (single source).

   The footer used to be an image (static/images/footer.png) that had the old
   contact e-mail printed into it; it is now real text so the address stays
   correct and readable on phones.
   ========================================================================== */

:root {
  --ink: #1f2430;
  --muted: #6b7280;
  --line: #e5e8ee;
  --brand: #16203c;
  --card-shadow: 0 10px 30px rgba(16, 24, 40, .07);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: #f4f6f9;
  color: var(--ink);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
        Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-text-size-adjust: 100%;
}

a { color: #1d4ed8; }

.wrap {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------------------------------------------------------------- header -- */

.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 20px;
  min-height: 62px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.site-brand {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .2px;
  color: var(--brand);
  text-decoration: none;
}

.site-brand small {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.4px;
  color: var(--muted);
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.site-nav a {
  display: inline-block;
  padding: 8px 13px;
  border-radius: 999px;
  color: #4b5563;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:hover { background: #f1f3f7; color: var(--brand); }

.site-nav a.is-active { background: var(--brand); color: #fff; }

/* -------------------------------------------------------------- content -- */

main { padding: 26px 0 40px; }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--card-shadow);
  overflow: hidden;
}

/* Embedded policy / terms. The height below is the no-JS fallback; the small
   script at the end of the page grows it to the height of its content so the
   page scrolls as one document. */
#policyFrame {
  display: block;
  width: 100%;
  height: 640px;
  border: 0;
}

/* Game Service guide image */
.guide-figure { margin: 0; padding: 22px; text-align: center; }

.guide-figure img {
  display: block;
  width: 100%;
  max-width: 720px;
  height: auto;
  margin: 0 auto;
  border-radius: 10px;
}

/* --------------------------------------------------------------- footer -- */

.site-footer {
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 26px 0 30px;
  font-size: 13.5px;
  color: var(--muted);
}

.site-footer .wrap {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.2fr;
  gap: 18px 28px;
}

.site-footer strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 14.5px;
}

.foot-label {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.site-footer a { color: #1d4ed8; text-decoration: none; word-break: break-word; }
.site-footer a:hover { text-decoration: underline; }

/* ------------------------------------------------------------- responsive */

@media (max-width: 760px) {
  .site-header .wrap { justify-content: center; }
  .site-brand { width: 100%; text-align: center; }
  .site-nav { justify-content: center; }
  .site-nav a { padding: 8px 11px; font-size: 13.5px; }
  main { padding: 18px 0 30px; }
  .site-footer .wrap { grid-template-columns: 1fr; }
  .guide-figure { padding: 14px; }
}
