/* Store Automations legal pages — scoped to avoid changing other site pages. */
.legal-page {
  color: #26364d;
  background: #f5f8fd;
}

.legal-page .legal-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 294px 0 94px;
  background:
    radial-gradient(circle at 76% 25%, rgba(124, 58, 237, .30) 0, transparent 34%),
    radial-gradient(circle at 17% 60%, rgba(14, 165, 233, .17) 0, transparent 42%),
    linear-gradient(120deg, #06111f 0%, #0b2140 58%, #101c44 100%);
  color: #fff;
}

.legal-page .legal-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(56,189,248,.27) 1px, transparent 1px);
  background-size: 15px 15px;
  -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,.5), transparent 68%, rgba(0,0,0,.26));
  mask-image: linear-gradient(90deg, rgba(0,0,0,.5), transparent 68%, rgba(0,0,0,.26));
  opacity: .76;
  z-index: -1;
}

.legal-page .legal-hero-content {
  position: relative;
  max-width: 1060px;
}

.legal-page .legal-breadcrumb {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 30px;
  font-size: 13px;
  font-weight: 600;
  color: #b9cae0;
}

.legal-page .legal-breadcrumb a {
  color: #d4e7fb;
}

.legal-page .legal-breadcrumb a:hover,
.legal-page .legal-breadcrumb a:focus-visible {
  color: #38bdf8;
}

.legal-page .legal-breadcrumb span[aria-hidden] {
  color: #6891ba;
}

.legal-page .legal-eyebrow,
.legal-page .legal-document-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.legal-page .legal-eyebrow {
  color: #7dd3fc;
  border: 1px solid rgba(56, 189, 248, .35);
  background: rgba(56, 189, 248, .07);
  padding: 9px 16px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.legal-page .legal-hero h1 {
  color: #fff !important;
  font-size: clamp(39px, 5.2vw, 66px) !important;
  font-weight: 900 !important;
  letter-spacing: -.048em;
  line-height: 1.1 !important;
  margin: 0 0 22px;
}

.legal-page .legal-hero h1::after {
  content: '';
  display: block;
  width: 75px;
  height: 5px;
  border-radius: 5px;
  margin-top: 24px;
  background: linear-gradient(90deg, #38bdf8, #7c3aed);
}

.legal-page .legal-hero p {
  max-width: 680px;
  color: #c2d3e5 !important;
  font-size: 17px;
  line-height: 1.8;
  margin: 0;
}

.legal-page .legal-body {
  padding: 75px 0 100px;
  background: linear-gradient(180deg, #f3f8fe, #fff);
}

.legal-page .legal-layout {
  max-width: 1240px;
  display: grid;
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.legal-page .legal-sidebar {
  position: sticky;
  top: 105px;
}

.legal-page .legal-toc,
.legal-page .legal-help,
.legal-page .legal-article {
  border: 1px solid #e0eaf5;
  box-shadow: 0 14px 50px rgba(15, 40, 80, .055);
  background: #fff;
  border-radius: 19px;
}

.legal-page .legal-toc {
  padding: 25px 14px 22px;
}

.legal-page .legal-toc-title {
  font-size: 11px !important;
  font-weight: 850;
  letter-spacing: .13em;
  color: #7589a4 !important;
  padding: 0 13px;
  margin: 0 0 14px;
}

.legal-page .legal-toc a {
  display: block;
  border-radius: 11px;
  padding: 10px 13px;
  color: #4c617e;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.45;
}

.legal-page .legal-toc a:hover,
.legal-page .legal-toc a:focus-visible {
  color: #12599c;
  background: #edf7ff;
}

.legal-page .legal-help {
  margin-top: 16px;
  padding: 23px 24px;
  background: linear-gradient(135deg,#0c1d34,#173052);
  border-color: rgba(0,0,0,.05);
}

.legal-page .legal-help span {
  display: block;
  font-size: 13px;
  color: #b6cee5;
  margin-bottom: 5px;
}

.legal-page .legal-help a {
  font-size: 14px;
  color: #7dd3fc;
  font-weight: 800;
}

.legal-page .legal-help a span {
  display: inline;
  color: inherit;
}

.legal-page .legal-article {
  min-width: 0;
  padding: clamp(25px, 4.2vw, 56px);
  border-radius: 24px;
}

/* The global theme positions every <header> absolutely. Keep the policy
   document header in normal flow so it cannot overlap the text below. */
.legal-page .legal-article > .legal-article-header {
  position: static;
  z-index: auto;
  width: auto;
  padding: 0 0 27px;
  margin: 0 0 27px;
  border-bottom: 1px solid #e2eaf5;
}

.legal-page .legal-document-tag {
  color: #3654c6;
  margin-bottom: 12px;
}

.legal-page .legal-article-header h2 {
  font-size: clamp(26px, 3vw, 35px) !important;
  font-weight: 850 !important;
  color: #10223c !important;
  letter-spacing: -.035em;
  margin: 0 0 6px;
}

.legal-page .legal-article-header p {
  color: #7488a3 !important;
  margin: 0;
  font-size: 14px;
}

.legal-page .legal-article > p,
.legal-page .legal-article-section p,
.legal-page .legal-article-section li {
  color: #44536a !important;
  font-size: 15px;
  line-height: 1.95;
}

.legal-page .legal-article > p {
  margin: 0 0 28px;
}

.legal-page .legal-article-section {
  padding: 26px 0 6px;
  border-top: 1px solid #e9eff7;
  scroll-margin-top: 130px;
}

.legal-page .legal-article-header + .legal-article-section,
.legal-page .legal-article > p + .legal-article-section {
  border-top: 0;
  padding-top: 0;
}

.legal-page .legal-article-section h2 {
  font-size: clamp(19px, 2vw, 23px) !important;
  font-weight: 800 !important;
  color: #122848 !important;
  letter-spacing: -.025em;
  line-height: 1.3 !important;
  margin: 0 0 15px;
}

.legal-page .legal-article-section p {
  margin: 0 0 17px;
}

.legal-page .legal-article-section ul {
  list-style: none;
  padding: 3px 0 10px;
  margin: 0 0 13px;
}

.legal-page .legal-article-section li {
  position: relative;
  padding-left: 23px;
  margin-bottom: 10px;
  overflow-wrap: anywhere;
}

.legal-page .legal-article-section li::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, #38bdf8, #7c3aed);
  position: absolute;
  top: 13px;
  left: 2px;
}

.legal-page .legal-article-section strong {
  color: #192d49;
  font-weight: 800;
}

.legal-page .legal-article-section a {
  color: #186cc5;
  text-decoration: underline !important;
  text-underline-offset: 3px;
}

.legal-page .legal-next-policy {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-top: 37px;
  padding: 23px 25px;
  border: 1px solid #dfeafa;
  border-radius: 16px;
  background: linear-gradient(110deg, #eff8ff, #f6f3ff);
}

.legal-page .legal-next-policy div span {
  display: block;
  font-size: 10px;
  letter-spacing: .13em;
  color: #6783a7;
  font-weight: 800;
  margin-bottom: 4px;
}

.legal-page .legal-next-policy div strong {
  display: block;
  color: #132a4a;
  font-size: 17px;
}

.legal-page .legal-next-policy a {
  flex-shrink: 0;
  border-radius: 10px;
  padding: 11px 15px;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  background: linear-gradient(115deg, #0ea5e9, #6d48ef);
}

.legal-page .legal-next-policy a:hover {
  color: #fff;
  box-shadow: 0 8px 20px rgba(56, 90, 210, .2);
}

@media (max-width: 991px) {
  .legal-page .legal-hero { padding: 185px 0 82px; }
  .legal-page .legal-layout { grid-template-columns: minmax(0, 1fr); }
  .legal-page .legal-sidebar { position: static; }
  .legal-page .legal-toc { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
  .legal-page .legal-toc-title { flex-basis: 100%; }
  .legal-page .legal-toc a { background: #f2f7ff; }
  .legal-page .legal-help { display: none; }
}

@media (max-width: 575px) {
  .legal-page .legal-hero { padding: 154px 0 64px; }
  .legal-page .legal-hero h1 { font-size: 37px !important; }
  .legal-page .legal-hero p { font-size: 15px; }
  .legal-page .legal-body { padding: 35px 0 65px; }
  .legal-page .legal-layout { gap: 20px; }
  .legal-page .legal-article { padding: 25px 20px; border-radius: 17px; }
  .legal-page .legal-toc { padding: 20px 12px; }
  .legal-page .legal-toc a { font-size: 12px; padding: 9px 10px; }
  .legal-page .legal-next-policy { flex-direction: column; align-items: flex-start; padding: 21px 18px; }
}
