/* TG Vault v76 — softer footer fade correction
   Removes the visible rectangular shadow under legal/contact content and makes the Japanese marks subtler. */

/* Japanese marks: keep the idea, but make it more editorial and less heavy */
body.premium-theme:not(.home-page)::before{
  opacity:.55!important;
  color:rgba(91,30,45,.055)!important;
  text-shadow:none!important;
  top:150px!important;
  left:clamp(12px,3vw,40px)!important;
  transform:rotate(-3deg)!important;
}
body.premium-theme:not(.home-page)::after{
  opacity:.42!important;
  color:rgba(212,176,106,.06)!important;
  text-shadow:none!important;
  top:42vh!important;
  bottom:auto!important;
  right:clamp(14px,3vw,46px)!important;
  transform:rotate(3deg)!important;
}

/* The old v75 content-attached fade created a visible rectangle. Remove it. */
body.legal-page .subpage-content::after,
body.contact-page .contact-shell-v72::after{
  display:none!important;
  content:none!important;
}

/* Legal/contact background: one continuous page fade instead of a box fade */
body.legal-page,
body.contact-page{
  background:
    radial-gradient(circle at 18% 12%, rgba(212,176,106,.13), transparent 24%),
    radial-gradient(circle at 84% 18%, rgba(91,30,45,.10), transparent 28%),
    linear-gradient(180deg,
      #F8F0E4 0%,
      #F4EBDD 38%,
      #EEDFCB 62%,
      #D0A8A0 74%,
      #8E4B5B 85%,
      #4A232C 93%,
      #171313 100%)!important;
}

/* Let the central legal paper sit cleaner without throwing a dark block into the footer. */
body.legal-page .subpage-content,
body.contact-page .contact-shell-v72{
  box-shadow:0 34px 90px rgba(63,31,25,.08)!important;
  border-bottom-color:rgba(91,30,45,.08)!important;
  margin-bottom:84px!important;
}

/* Full-width, soft footer blend. No hard rectangle, no content-width shadow. */
body.legal-page .tgv-footer-v72,
body.contact-page .tgv-footer-v72{
  position:relative!important;
  margin-top:0!important;
  padding-top:94px!important;
  background:
    radial-gradient(circle at 24% -10%, rgba(212,176,106,.10), transparent 28%),
    radial-gradient(circle at 88% 8%, rgba(91,30,45,.16), transparent 30%),
    linear-gradient(180deg,
      rgba(64,31,37,.96) 0%,
      rgba(38,25,24,.98) 36%,
      rgba(22,18,17,1) 100%)!important;
  border-top:1px solid rgba(212,176,106,.14)!important;
  box-shadow:none!important;
  overflow:visible!important;
}
body.legal-page .tgv-footer-v72::before,
body.contact-page .tgv-footer-v72::before{
  content:""!important;
  position:absolute!important;
  left:0!important;
  right:0!important;
  top:-300px!important;
  height:300px!important;
  pointer-events:none!important;
  background:linear-gradient(180deg,
    rgba(244,235,221,0) 0%,
    rgba(244,235,221,.18) 15%,
    rgba(225,196,176,.24) 32%,
    rgba(178,112,119,.28) 53%,
    rgba(111,52,64,.42) 73%,
    rgba(64,31,37,.74) 88%,
    rgba(64,31,37,.96) 100%)!important;
  z-index:0!important;
}
body.legal-page .tgv-footer-v72::after,
body.contact-page .tgv-footer-v72::after{
  display:none!important;
  content:none!important;
}
body.legal-page .tgv-footer-v72 .footer-top,
body.legal-page .tgv-footer-v72 .footer-bottom,
body.contact-page .tgv-footer-v72 .footer-top,
body.contact-page .tgv-footer-v72 .footer-bottom{
  position:relative!important;
  z-index:2!important;
}

/* Extra clean-up for the legal disclaimer card right above the footer */
body.legal-page .legal-note,
body.legal-page .legal-section:last-of-type{
  position:relative!important;
  z-index:3!important;
}

@media(max-width:760px){
  body.legal-page .subpage-content,
  body.contact-page .contact-shell-v72{margin-bottom:62px!important;}
  body.legal-page .tgv-footer-v72,
  body.contact-page .tgv-footer-v72{padding-top:74px!important;}
  body.premium-theme:not(.home-page)::before,
  body.premium-theme:not(.home-page)::after{opacity:.35!important;}
}
