/* Tiny scope disclaimer on landing / auth pages */
.legal-disclaimer {
  margin: 0;
  padding: 0 12px;
  font-size: .5625rem;
  line-height: 1.6;
  letter-spacing: 0;
  color: #8a94a6;
  text-align: center;
}
.catalog-hero .legal-disclaimer,
.enter-auth .legal-disclaimer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  z-index: 3;
}
.enter-auth .legal-disclaimer { color: #ffffff66; }

/* Legal document pages */
.legal-page { max-width: 860px; margin: 0 auto; padding: 8px 0 40px; }
.legal-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.legal-tab {
  padding: 6px 14px;
  border: 1px solid #d8dee9;
  border-radius: 999px;
  background: #ffffffb8;
  color: #3f4756;
  font-size: .8125rem;
  font-weight: 550;
  text-decoration: none;
  transition: background .15s, color .15s, border-color .15s;
}
.legal-tab:hover { background: #eef2f8; }
.legal-tab.is-active { background: #1a56db; border-color: #1a56db; color: #fff; }
.legal-panel { padding: 22px 24px; }
.legal-lead { margin: 0 0 16px; color: #4b5563; font-size: .875rem; line-height: 1.8; text-wrap: balance; }
.legal-section { margin: 0 0 18px; }
.legal-section h2 { margin: 0 0 8px; font-size: .9375rem; font-weight: 650; color: #1f2937; }
.legal-section p { margin: 0 0 8px; color: #374151; font-size: .8438rem; line-height: 1.85; text-wrap: balance; }
.legal-section ul { margin: 0 0 8px; padding-left: 20px; color: #374151; font-size: .8438rem; line-height: 1.85; }
.legal-section li { margin: 0 0 4px; text-wrap: balance; }
.legal-section strong { color: #111827; }
.legal-foot { margin: 18px 0 0; padding-top: 12px; border-top: 1px solid #e5e7eb; color: #8a94a6; font-size: .75rem; }
.legal-foot a { color: #1a56db; }

/* First-login consent dialog, mirrors the gift dialog glass style */
.consent-layer { position: fixed; inset: 0; z-index: 130; display: grid; place-items: center; padding: 20px; }
.consent-layer[hidden] { display: none; }
.consent-backdrop {
  position: absolute; inset: 0;
  background: #050b18c4;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  animation: consent-fade .25s ease both;
}
.consent-dialog {
  position: relative;
  width: min(26rem, calc(100vw - 2rem));
  max-height: calc(100vh - 3rem);
  overflow-y: auto;
  padding: 28px 26px 24px;
  border: 1px solid #ffffff1f;
  border-radius: 18px;
  background: #0d1833ee;
  box-shadow: 0 32px 80px -20px #000000cc, 0 0 0 1px #ffffff08 inset;
  color: #fff;
  animation: consent-rise .4s cubic-bezier(.16, 1, .3, 1) both;
}
.consent-dialog::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(120% 90% at 100% 0%, #38bdf824, transparent 62%);
}
.consent-body { position: relative; z-index: 2; }
.consent-title { margin: 0; font-size: 1.2rem; font-weight: 650; letter-spacing: -.01em; line-height: 1.35; }
.consent-desc { margin: 10px 0 0; color: #ffffffa6; font-size: .8125rem; line-height: 1.75; }
.consent-desc strong { color: #fff; font-weight: 600; }
.consent-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.consent-links a {
  padding: 4px 12px;
  border: 1px solid #ffffff2e;
  border-radius: 999px;
  background: #ffffff10;
  color: #cfe3ff;
  font-size: .75rem;
  text-decoration: none;
  transition: background .2s, border-color .2s;
}
.consent-links a:hover { background: #ffffff24; border-color: #ffffff45; }
.consent-check { display: flex; align-items: flex-start; gap: 10px; margin: 16px 0 0; cursor: pointer; color: #ffffffd9; font-size: .8125rem; line-height: 1.6; }
.consent-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.consent-box {
  flex: none; display: grid; place-items: center;
  width: 18px; height: 18px; margin-top: 2px;
  border: 1px solid #ffffff59; border-radius: 5px;
  background: #ffffff10; color: transparent;
  transition: background .15s, border-color .15s, color .15s;
}
.consent-box svg { width: 12px; height: 12px; }
.consent-check input:checked + .consent-box { background: #38bdf8; border-color: #38bdf8; color: #06121f; }
.consent-check input:focus-visible + .consent-box { outline: 2px solid #93c5fd; outline-offset: 2px; }
.consent-agree {
  display: inline-flex; width: 100%; height: 44px; margin-top: 18px;
  align-items: center; justify-content: center; gap: 8px;
  border: 1px solid #38bdf8; border-radius: 9px;
  background: #38bdf8; color: #06121f;
  font: inherit; font-size: .8125rem; font-weight: 600;
  cursor: pointer; transition: background .2s, opacity .2s;
}
.consent-agree:hover:not([disabled]) { background: #67cdfb; }
.consent-agree[disabled] { opacity: .4; cursor: not-allowed; }
.consent-agree:focus-visible { outline: 2px solid #93c5fd; outline-offset: 2px; }
.consent-decline {
  display: block; width: 100%; margin-top: 10px;
  border: 0; background: transparent; color: #ffffff73;
  font: inherit; font-size: .75rem; cursor: pointer;
}
.consent-decline:hover { color: #ffffffb3; }
@keyframes consent-rise { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes consent-fade { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .consent-dialog, .consent-backdrop { animation: none !important; }
}
