* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #1f2937;
  background: #f5f7fb;
  line-height: 1.5;
}

.page {
  width: min(1080px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2.5rem 0 2rem;
}

.hero {
  text-align: center;
  margin-bottom: 2rem;
}

.brand {
  margin: 0 0 0.5rem;
  color: #2563eb;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.hero h1 {
  margin: 0;
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  line-height: 1.2;
  color: #111827;
}

.subtitle {
  margin: 0.75rem auto 0;
  max-width: 36rem;
  color: #6b7280;
  font-size: 1.05rem;
}

.games {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 1rem;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.1);
}

.card:focus-visible {
  outline: 3px solid #93c5fd;
  outline-offset: 2px;
}

.icon-wrap {
  position: relative;
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(145deg, var(--accent, #60a5fa), #1e3a8a);
}

.icon-wrap::before {
  content: attr(data-fallback);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.6rem;
  font-weight: 700;
}

.icon-wrap img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.icon-wrap img.is-hidden {
  display: none;
}

.card-body {
  min-width: 0;
  flex: 1;
}

.tag {
  display: inline-block;
  margin-bottom: 0.35rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 0.75rem;
  font-weight: 700;
}

.card-body h2 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.3;
  color: #111827;
}

.card-body p {
  margin: 0.4rem 0 0.8rem;
  color: #6b7280;
  font-size: 0.95rem;
}

.play-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: #01875f;
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
}

.play-btn:hover {
  background: #016b4c;
}

.play-btn:focus-visible {
  outline: 3px solid #86efac;
  outline-offset: 2px;
}

.footer {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid #e5e7eb;
  text-align: center;
  color: #6b7280;
  font-size: 0.92rem;
}

.footer p {
  margin: 0.25rem 0;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 0.65rem;
}

.footer a {
  color: #2563eb;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

.legal-page {
  width: min(920px, calc(100% - 2rem));
  padding-bottom: 3.5rem;
}

.legal-hero {
  margin-bottom: 1rem;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  text-align: left;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.legal-hero .brand {
  margin-bottom: 0.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-hero h1 {
  margin: 0;
  color: #111827;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  line-height: 1.2;
}

.legal-intro,
.legal-meta {
  color: #6b7280;
}

.legal-intro {
  max-width: 65ch;
  margin: 0.75rem 0 0;
}

.legal-meta {
  margin: 0.5rem 0 0;
  font-size: 0.94rem;
}

.legal-content {
  display: grid;
  gap: 1rem;
}

.legal-section {
  padding: 1.35rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.legal-section h2 {
  margin: 0 0 0.6rem;
  color: #111827;
  font-size: 1.08rem;
  line-height: 1.35;
}

.legal-section p,
.legal-section li {
  color: #6b7280;
}

.legal-section p {
  margin: 0 0 0.75rem;
}

.legal-section p:last-child {
  margin-bottom: 0;
}

.legal-section ul {
  margin: 0.5rem 0 0.75rem;
  padding-left: 1.35rem;
}

.legal-section li + li {
  margin-top: 0.35rem;
}

.legal-section a {
  color: #2563eb;
  font-weight: 700;
}

@media (min-width: 700px) {
  .games {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .legal-section {
    padding: 1.15rem;
  }
}

@media (min-width: 980px) {
  .page {
    padding-top: 3rem;
  }

  .games {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .card {
    flex-direction: column;
  }

  .icon-wrap {
    width: 84px;
    height: 84px;
    flex-basis: 84px;
  }
}
