/* HM Age Gate (standalone template)
   Goal:
   - Blank HTML page (no theme wrappers)
   - Use theme background color/header image
   - Center the gate content perfectly
*/

html, body{
  height: 100%;
}

body.hm-age-gate-page{
  margin: 0;
}

.hm-age-gate{
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 16px;
}

.hm-age-gate__inner{
  width: 100%;
  max-width: 640px;
  text-align: center;
}

.hm-age-gate__header img{
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 18px;
}

.hm-age-gate__title{
  margin: 0 0 10px;
}

/* Top restriction notice (headline + short paragraph) */
.hm-age-gate__notice-body{
  margin: 0 auto 12px;
  max-width: 560px;
}
.hm-age-gate__notice-body p{
  margin: 0 0 10px;
}
.hm-age-gate__notice-body p:last-child{
  margin-bottom: 0;
}

.hm-age-gate__text{
  margin: 0 auto 14px;
}

.hm-age-gate__list{
  margin: 0 auto 18px;
  padding-left: 20px;
  display: inline-block;
  text-align: left;
  max-width: 560px;
}

.hm-age-gate__form{
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 0 0 14px;
}

/* Make the Enter/Exit buttons larger and more tap-friendly (front-end age gate only) */
.hm-age-gate .hm-age-gate__form .button.hm-age-gate__enter,
.hm-age-gate .hm-age-gate__form .button.hm-age-gate__exit{
  font-size: 16px;
  padding: 12px 22px;
  line-height: 1.2;
  min-height: 44px;
  border-radius: 10px;
}

@media (min-width: 782px){
  .hm-age-gate .hm-age-gate__form .button.hm-age-gate__enter,
  .hm-age-gate .hm-age-gate__form .button.hm-age-gate__exit{
    font-size: 17px;
    padding: 14px 26px;
    min-height: 46px;
  }
}
.hm-age-gate__fineprint{
  font-size: 0.9em;
  opacity: 0.85;
  margin: 0;
}

/* Terms box: keep long terms readable without making the gate page excessively tall */
.hm-age-gate__terms{
  margin-top: 18px;
  text-align: left;
}

.hm-age-gate__terms-title{
  font-size: 1.05em;
  margin: 0 0 10px;
  text-align: center;
}

.hm-age-gate__terms-body{
  max-height: 240px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 12px 14px;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 10px;
  background: rgba(255,255,255,0.75);
}

/* Ensure Terms formatting displays correctly even if the active theme resets list/paragraph styles */
.hm-age-gate__terms-body p{
  margin: 0 0 10px;
}
.hm-age-gate__terms-body p:last-child{
  margin-bottom: 0;
}
.hm-age-gate__terms-body ul,
.hm-age-gate__terms-body ol{
  margin: 0 0 10px 20px;
  padding-left: 20px;
}
.hm-age-gate__terms-body ul{
  list-style: disc;
}
.hm-age-gate__terms-body ol{
  list-style: decimal;
}
.hm-age-gate__terms-body li{
  display: list-item;
  margin: 0 0 6px;
}
.hm-age-gate__terms-body li:last-child{
  margin-bottom: 0;
}

@media (min-width: 782px){
  .hm-age-gate__terms-body{
    max-height: 280px;
  }
}

