/* Policy / support / terms pages under games/{slug}/ */

body.policy-page::before {
  display: none;
}

body.policy-page {
  background: #020713;
}

body.policy-page > .site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: block;
  min-height: unset;
  background: rgba(2, 6, 11, 0.82);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line, rgba(82, 185, 228, 0.26));
}

body.policy-page > .site-header a {
  text-decoration: none;
}

body.policy-page > .site-header .nav-links a {
  color: #b8c9d9;
  text-decoration: none;
}

body.policy-page > .site-header .nav-links a:hover {
  color: #f4f8ff;
}

body.policy-page > footer a {
  text-decoration: none;
}

body.policy-page .policy-breadcrumb a,
body.policy-page .policy-tabs a {
  text-decoration: none;
}

body.policy-page > footer .footer-links a {
  color: inherit;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-shadow: none;
}

.policy-shell {
  position: relative;
  z-index: 1;
  padding-bottom: 48px;
}

.policy-context {
  margin: 26px 0 34px;
  padding: 18px 20px 16px;
  border: 1px solid rgba(82, 185, 228, 0.16);
  background:
    linear-gradient(135deg, rgba(40, 217, 255, 0.04), transparent 58%),
    rgba(3, 10, 18, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.policy-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin: 0;
  padding: 0 0 14px;
  border-bottom: 1px solid rgba(82, 185, 228, 0.1);
  color: #71879a;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.4;
}

.policy-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #9eb3c8;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.15s ease;
}

.policy-back-link:hover {
  color: #f4f8ff;
}

.policy-back-icon {
  color: #28d9ff;
  font-size: 13px;
  line-height: 1;
}

.policy-breadcrumb-sep {
  color: #3a5066;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.policy-breadcrumb-current {
  color: #f4f8ff;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.policy-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
}

.policy-tabs a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  border: 1px solid rgba(82, 185, 228, 0.18);
  background: rgba(2, 8, 16, 0.72);
  color: #8fa4b8;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    color 0.15s ease,
    border-color 0.15s ease,
    background 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.15s ease;
}

.policy-tabs a:hover {
  border-color: rgba(40, 217, 255, 0.42);
  background: rgba(40, 217, 255, 0.07);
  color: #f4f8ff;
  transform: translateY(-1px);
}

.policy-tabs a[aria-current="page"] {
  border-color: rgba(40, 217, 255, 0.55);
  background: rgba(40, 217, 255, 0.12);
  color: #f4f8ff;
  box-shadow: 0 0 22px rgba(40, 217, 255, 0.12);
  pointer-events: none;
}

@media (max-width: 640px) {
  .policy-context {
    margin: 18px 0 26px;
    padding: 16px 14px 14px;
  }

  .policy-breadcrumb {
    gap: 6px 8px;
    font-size: 10px;
  }

  .policy-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .policy-tabs a {
    min-height: 42px;
    padding: 0 8px;
    font-size: 9px;
    letter-spacing: 0.1em;
    text-align: center;
  }
}

/* Undo studio homepage .hero inside policy content */
body.policy-page .policy-shell .hero {
  display: block;
  min-height: unset;
  position: static;
  overflow: visible;
  padding: 36px 0 28px;
  border-bottom: 1px solid rgba(61, 225, 255, 0.18);
  background: none;
}

body.policy-page .policy-shell .hero::after {
  display: none;
}

body.policy-page .policy-shell .hero h1 {
  margin: 0 0 18px;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  letter-spacing: -0.05em;
  line-height: 1.02;
  text-transform: none;
  white-space: normal;
}

body.policy-page .policy-shell .eyebrow {
  margin: 0 0 14px;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

body.policy-page .policy-shell .section-heading {
  display: block;
}

body.policy-page .policy-shell .section-heading::before,
body.policy-page .policy-shell .section-heading::after {
  display: none;
  content: none;
}
