/* DineQube V7.5 — visual balance + legal center restoration */

/* Keep public page assets stable when clean route directory fallbacks are used. */
html{scroll-behavior:smooth}

/* Qube AI: cards inside the dark intelligence section must not inherit white cards
   with white headings. Give them a high-contrast glass treatment. */
.page-qube-ai .ai-section .journey{
  align-items:stretch;
}
.page-qube-ai .ai-section .journey-step{
  min-height:228px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
  text-align:center;
  border:1px solid rgba(143,192,255,.28);
  background:linear-gradient(155deg,rgba(255,255,255,.12),rgba(255,255,255,.055));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.10),0 14px 34px rgba(3,18,47,.14);
  backdrop-filter:blur(10px);
  transform:none!important;
}
.page-qube-ai .ai-section .journey-step:hover{
  transform:none!important;
  background:linear-gradient(155deg,rgba(255,255,255,.15),rgba(255,255,255,.07));
  border-color:rgba(143,192,255,.46);
}
.page-qube-ai .ai-section .journey-step .step-num{
  flex:0 0 auto;
  margin:0 auto 20px;
  background:#0f7b5a!important;
  color:#fff!important;
  border:0!important;
  box-shadow:0 8px 20px rgba(15,123,90,.25);
}
.page-qube-ai .ai-section .journey-step h3{
  color:#fff!important;
  margin:0 0 10px;
  font-size:18px;
  line-height:1.25;
}
.page-qube-ai .ai-section .journey-step p{
  color:#c9e1ff!important;
  margin:0;
  font-size:14px;
  line-height:1.55;
}

/* Restaurant + Hotel bento system: remove vertical jumping and keep all visual
   anchors centered and balanced. */
.page-restaurant .bento-card,
.page-hotel .bento-card{
  display:flex;
  flex-direction:column;
  align-items:stretch;
  transform:none!important;
  transition:border-color .22s ease,box-shadow .22s ease,background .22s ease!important;
}
.page-restaurant .bento-card:hover,
.page-hotel .bento-card:hover{
  transform:none!important;
}
.page-restaurant .bento-media,
.page-hotel .bento-media{
  width:100%;
  margin-top:auto;
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:220px;
  height:220px;
  padding:14px;
}
.page-restaurant .bento-media img,
.page-hotel .bento-media img,
.page-restaurant .bento-media video,
.page-hotel .bento-media video{
  display:block;
  margin:auto;
  max-width:100%;
  max-height:100%;
}

/* Kitchen / service icons get an intentional themed tile instead of a loose emoji. */
.dq-op-icon{
  width:118px;
  height:118px;
  border-radius:28px;
  display:grid;
  place-items:center;
  position:relative;
  margin:auto;
  background:linear-gradient(145deg,#e8f6f0,#fff9ed);
  border:1px solid #cfe7dd;
  box-shadow:0 18px 44px rgba(7,84,63,.12),inset 0 1px 0 rgba(255,255,255,.9);
}
.dq-op-icon span{font-size:52px;line-height:1;filter:saturate(.9)}
.dq-op-icon:after{
  content:"";position:absolute;inset:11px;border:1px dashed rgba(15,123,90,.22);border-radius:21px;pointer-events:none
}
.dq-service-icon{background:linear-gradient(145deg,#fff9ed,#eef8f4)}

/* Qube AI visual: stationary centered Q with symmetric animated waves. */
.dq-ai-feature-visual{
  width:min(100%,320px);
  min-height:150px;
  margin:auto;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:18px;
}
.dq-ai-logo{
  width:92px;height:92px;border-radius:27px;
  display:grid;place-items:center;
  color:#0d58dd;background:#fff;
  font-size:38px;font-weight:900;
  border:2px solid rgba(255,255,255,.85);
  box-shadow:0 0 0 9px rgba(36,137,255,.10),0 18px 42px rgba(11,75,212,.28);
  flex:0 0 auto;
}
.dq-ai-wave{
  width:72px;height:74px;position:relative;display:block;flex:0 0 72px;overflow:hidden
}
.dq-ai-wave i{
  position:absolute;top:50%;width:54px;height:54px;border:2px solid #5da8ff;border-radius:50%;
  opacity:0;animation:dqWavePulse 2.4s ease-out infinite
}
.dq-ai-wave i:nth-child(2){animation-delay:.75s}.dq-ai-wave i:nth-child(3){animation-delay:1.5s}
.dq-ai-wave-left i{right:-18px;border-right-color:transparent;border-top-color:transparent;border-bottom-color:transparent;transform:translateY(-50%) rotate(180deg)}
.dq-ai-wave-right i{left:-18px;border-left-color:transparent;border-top-color:transparent;border-bottom-color:transparent;transform:translateY(-50%)}
@keyframes dqWavePulse{0%{opacity:.8;scale:.52}100%{opacity:0;scale:1.24}}

/* Hotel cards use one visual rhythm. */
.page-hotel .bento-card .kicker,
.page-restaurant .bento-card .kicker{min-height:18px}
.page-hotel .bento-card h3,
.page-restaurant .bento-card h3{min-height:58px}
.page-hotel .bento-card .copy,
.page-restaurant .bento-card .copy{min-height:66px}
.page-hotel .bento-card.blue,
.page-restaurant .bento-card.blue{
  background:linear-gradient(145deg,#f8fbff,#edf5ff);
  border-color:#cbdcff;
}

/* Restore legal-center layout: sticky left navigation, readable content on right. */
.page-legal .page-hero{padding-bottom:34px}
.page-legal .section.legal{padding-top:24px}
.page-legal .legal-wrap{
  width:min(1180px,calc(100% - 48px));
  max-width:1180px;
  display:grid;
  grid-template-columns:280px minmax(0,1fr);
  gap:30px;
  align-items:start;
}
.page-legal .legal-nav{
  position:sticky;
  top:104px;
  display:flex;
  flex-direction:column;
  flex-wrap:nowrap;
  gap:5px;
  margin:0;
  max-height:calc(100vh - 126px);
  overflow:auto;
  padding:16px;
  border:1px solid var(--border);
  border-radius:22px;
  background:linear-gradient(180deg,#fff,#f7fbf9);
  box-shadow:0 14px 38px rgba(7,84,63,.07);
}
.page-legal .legal-nav .legal-center-title{
  display:block;
  padding:3px 7px 10px;
  color:var(--ink);
  font-size:18px;
  font-weight:850;
  letter-spacing:-.02em;
}
.page-legal .legal-nav .legal-doc-links{
  display:grid;
  gap:6px;
  margin-bottom:12px;
  padding-bottom:12px;
  border-bottom:1px solid var(--border);
}
.page-legal .legal-nav a{
  width:100%;
  display:block;
  padding:10px 11px;
  border:0;
  border-radius:11px;
  color:#49645c;
  font-size:12px;
  line-height:1.35;
  background:transparent;
  transition:.18s ease;
}
.page-legal .legal-nav a:hover,
.page-legal .legal-nav a.active{
  color:var(--green-deep);
  background:var(--mint);
}
.page-legal .legal-nav .legal-doc-link{
  font-weight:800;
  color:#214b3e;
  border:1px solid #dcebe5;
  background:#fff;
}
.page-legal .legal-nav .legal-doc-link.current{
  background:var(--green);
  color:#fff;
  border-color:var(--green);
}
.page-legal .legal-wrap>article{
  min-width:0;
  padding:34px 38px 42px;
  border:1px solid var(--border);
  border-radius:24px;
  background:#fff;
  box-shadow:0 18px 48px rgba(7,84,63,.07);
}
.page-legal .legal-wrap>article>section{
  scroll-margin-top:112px;
  padding:4px 0 23px;
  border-bottom:1px solid #edf3f0;
}
.page-legal .legal-wrap>article>section:last-child{border-bottom:0}
.page-legal .legal h2{margin-top:20px;font-size:28px;line-height:1.18}
.page-legal .legal p,.page-legal .legal li{font-size:15px;line-height:1.72;color:#526e67}

@media(max-width:900px){
  .page-legal .legal-wrap{grid-template-columns:1fr;width:min(100% - 30px,760px)}
  .page-legal .legal-nav{position:relative;top:auto;max-height:none;display:grid;grid-template-columns:1fr 1fr}
  .page-legal .legal-nav .legal-center-title,.page-legal .legal-nav .legal-doc-links{grid-column:1/-1}
  .page-legal .legal-wrap>article{padding:26px 22px}
  .page-qube-ai .ai-section .journey-step{min-height:auto}
}
@media(max-width:680px){
  .page-legal .legal-nav{grid-template-columns:1fr}
  .page-legal .legal-nav .legal-center-title,.page-legal .legal-nav .legal-doc-links{grid-column:1}
  .page-restaurant .bento-card h3,.page-hotel .bento-card h3,
  .page-restaurant .bento-card .copy,.page-hotel .bento-card .copy{min-height:0}
  .dq-ai-feature-visual{gap:10px}.dq-ai-wave{width:54px;flex-basis:54px}
}
@media(prefers-reduced-motion:reduce){.dq-ai-wave i{animation:none;opacity:.45}}
