/* Help, shipping/FAQ, and legal pages: charcoal panels, thin silver borders,
   subtle marble, and the same silver primary buttons as checkout/catalogue.
   Scoped so checkout-page keeps its own skin. */

body.legal-page:not(.checkout-page){
  background-color:#060d16;
  background-image:
    linear-gradient(180deg,#08111e22,#050a12bf 27rem,#050a12d9),
    url("/assets/onyx-checkout-marble.webp");
  background-repeat:no-repeat;
  background-size:cover,auto max(1200px,100vh);
  background-position:center top;
  color:#eaf1f7;
}
@media(max-width:600px){
  body.legal-page:not(.checkout-page){background-size:cover,auto 960px}
}

body.legal-page:not(.checkout-page) .site-header{
  background:linear-gradient(180deg,#090f18fa,#080e17e8);
  border-bottom:1px solid #8db8d237;
}

body.legal-page:not(.checkout-page) .legal-main h1{
  color:#f2f5f8;
  letter-spacing:-.03em;
}

body.legal-page:not(.checkout-page) .legal-card{
  padding:clamp(20px,3.2vw,34px);
  border:1px solid #81b3d2;
  border-radius:3px 18px 3px 3px;
  background:
    linear-gradient(180deg,#0d1823e8,#0b131df7),
    url("/assets/onyx-checkout-marble.webp") center top/cover;
  box-shadow:0 18px 44px #0008,inset 0 1px #d4f0ff28;
  color:#dce6ef;
}

body.legal-page:not(.checkout-page) .legal-card h2{
  color:#eef6fc;
  border-bottom:1px solid #91b8d13d;
  padding-bottom:10px;
  margin-top:28px;
}
body.legal-page:not(.checkout-page) .legal-card h2:first-child,
body.legal-page:not(.checkout-page) .legal-card :is(.shipping-summary,.shipping-faq,.shipping-help) h2:first-child{
  margin-top:0;
}

body.legal-page:not(.checkout-page) .legal-back-row .button.primary,
body.legal-page:not(.checkout-page) .shipping-help .button.primary{
  border-radius:3px 12px 3px 3px;
  border:1px solid #c6dfe9;
  background:linear-gradient(158deg,#fbfcfc,#b9d0e0 52%,#85a5bc);
  color:#07121d;
  box-shadow:0 2px 14px #8bc8ed28;
}
body.legal-page:not(.checkout-page) .legal-back-row .button.primary:hover,
body.legal-page:not(.checkout-page) .shipping-help .button.primary:hover{
  background:linear-gradient(158deg,#fff,#c9e3f3);
  transform:none;
}

/* Shipping / FAQ tiles and accordions */
.shipping-faq-page .shipping-facts{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:.85rem;
  margin:0 0 1.6rem;
}
.shipping-faq-page :is(.shipping-facts>div,.shipping-faq details,.shipping-help){
  min-width:0;
  border:1px solid #6c879d7a;
  border-radius:3px 14px 3px 3px;
  background:linear-gradient(148deg,#152638d9,#0a1520f0);
  box-shadow:inset 0 1px #c3eaff1e;
  padding:.95rem 1.05rem;
}
.shipping-faq-page .shipping-facts h3{
  margin:0 0 .35rem;
  color:#eef6fc;
  font-size:.95rem;
}
.shipping-faq-page .shipping-facts p,
.shipping-faq-page details p,
.shipping-faq-page details li{
  margin:.3rem 0;
  color:#c5d3df;
  line-height:1.6;
}
.shipping-faq-page details{
  margin:.7rem 0;
}
.shipping-faq-page summary{
  cursor:pointer;
  min-height:44px;
  padding:.55rem .15rem;
  font-weight:650;
  line-height:1.45;
  color:#eef6fc;
  list-style:none;
}
.shipping-faq-page summary::-webkit-details-marker{display:none}
.shipping-faq-page summary::before{
  content:"";
  display:inline-block;
  width:7px;height:7px;
  margin-right:.65rem;
  border-right:1.5px solid #9fd3f0;
  border-bottom:1.5px solid #9fd3f0;
  transform:rotate(-45deg) translateY(-1px);
  vertical-align:middle;
}
.shipping-faq-page details[open] summary::before{transform:rotate(45deg) translateY(-2px)}
.shipping-faq-page details[open]{border-color:#9fd6f5}
.shipping-faq-page details a{color:#b8e4ff;text-underline-offset:2px}
.shipping-faq-page .shipping-help{margin-top:1.35rem}
.shipping-faq-page .shipping-help h2{margin-top:0;border-bottom:0;padding-bottom:0}
.shipping-faq-page summary:focus-visible{
  outline:2px solid #9bdcff;
  outline-offset:3px;
}

@media(max-width:700px){
  .shipping-faq-page .shipping-facts{grid-template-columns:1fr}
  body.legal-page:not(.checkout-page) .legal-card{padding:18px 16px}
}
