/* ---- css/legal-page.css ---- */
.stLegalPage {
  --st-navy: #1e2a5a;
  --st-indigo: #394b8c;
  --st-cyan: #4fc1c4;
  --st-aqua: #dff3f2;
  background: #fff;
  color: var(--st-navy);
}

.stLegalEyebrow,
.stLegalContactEyebrow {
  margin: 0 0 13px;
  color: var(--st-cyan);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.stLegalIntro {
  margin-bottom: clamp(58px, 7vw, 84px);
  padding-bottom: clamp(42px, 5vw, 58px);
  border-bottom: 1px solid #e8edf4;
}

.stLegalIntro h1 {
  max-width: 760px;
  margin: 0;
  color: var(--st-navy);
  font-size: clamp(46px, 7vw, 78px);
  line-height: 1;
  letter-spacing: -0.055em;
}

.stLegalSummary {
  max-width: 720px;
  margin: 25px 0 0;
  color: #687389;
  font-size: 18px;
  line-height: 1.65;
}

.stLegalUpdated {
  margin: 22px 0 0;
  color: var(--st-cyan);
  font-size: 12px;
  font-weight: 750;
}

.stLegalLayout {
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(70px, 8vw, 110px) 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(55px, 7vw, 95px);
  align-items: start;
}

.stLegalContent { min-width: 0; grid-column: 1; grid-row: 1; }
.stLegalSidebar { position: sticky; top: 28px; grid-column: 2; grid-row: 1; display: grid; gap: 22px; }

.stLegalLinksCard {
  padding: 25px;
  border: 1px solid rgba(57, 75, 140, 0.12);
  border-radius: 22px;
  background: linear-gradient(145deg, #f9fbff, #f1f8f8);
  box-shadow: 0 18px 45px rgba(30, 42, 90, 0.08);
}

.stLegalLinksBrand { display: flex; align-items: center; gap: 11px; color: var(--st-navy); font-size: 17px; font-weight: 780; letter-spacing: -0.025em; }
.stLegalLinksBrand img { width: 38px; height: 38px; border-radius: 10px; object-fit: contain; box-shadow: 0 7px 17px rgba(57, 75, 140, 0.15); }
.stLegalLinksIntro { margin: 18px 0 16px; color: #647087; font-size: 14px; line-height: 1.65; }
.stLegalStoreButtons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 24px;
}

.stLegalStoreButtons a {
  box-sizing: border-box;
  min-width: 0;
  min-height: 48px;
  padding: 7px 9px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  background: #171d32;
  box-shadow: 0 6px 14px rgba(20, 27, 50, 0.13);
  color: #fff;
  text-align: left;
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.stLegalStoreButtons a:hover {
  transform: translateY(-1px);
  border-color: rgba(79, 193, 196, 0.7);
  box-shadow: 0 9px 18px rgba(20, 27, 50, 0.19);
}

.stLegalStoreButtons svg {
  width: 21px;
  height: 21px;
  flex: 0 0 21px;
  fill: currentColor;
}

.stLegalStoreButtons a > span {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: #fff;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.05;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.stLegalStoreButtons small {
  margin-bottom: 2px;
  overflow: hidden;
  color: #b8bfce;
  font-size: 7px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.stLegalLinksCard h2 { margin: 0 0 9px; color: var(--st-cyan); font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.stLegalLinksCard nav { display: grid; }
.stLegalLinksCard nav a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 2px; border-bottom: 1px solid rgba(57, 75, 140, 0.1); color: #4f5d78; font-size: 14px; font-weight: 680; text-decoration: none; transition: color 0.18s ease, padding 0.18s ease; }
.stLegalLinksCard nav a:last-child { border-bottom: 0; }
.stLegalLinksCard nav a:hover { padding-left: 5px; color: var(--st-cyan); }
.stLegalLinksCard nav a.active { color: var(--st-indigo); }
.stLegalLinksCard nav a.active > span:first-child::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 8px; border-radius: 50%; background: var(--st-cyan); vertical-align: 2px; }

.stLegalToc { padding: 21px 23px; border: 1px solid rgba(57, 75, 140, 0.1); border-radius: 18px; background: #fff; }
.stLegalToc > p { margin: 0 0 15px; color: var(--st-cyan); font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.stLegalToc ol { margin: 0; padding: 0; display: grid; gap: 9px; list-style: none; }
.stLegalToc a { color: #6b758a; font-size: 12px; line-height: 1.35; text-decoration: none; }
.stLegalToc a:hover { color: var(--st-indigo); }

.stLegalSection { position: relative; padding: 0 0 48px 47px; scroll-margin-top: 30px; }
.stLegalSection + .stLegalSection { padding-top: 48px; border-top: 1px solid #e8edf4; }
.stLegalSectionNumber { position: absolute; top: 3px; left: 0; color: var(--st-cyan); font-size: 11px; font-weight: 800; letter-spacing: 0.12em; }
.stLegalSection + .stLegalSection .stLegalSectionNumber { top: 51px; }
.stLegalSection h2,
.stLegalController h2 { margin: 0 0 18px; font-size: clamp(25px, 3vw, 34px); line-height: 1.16; letter-spacing: -0.035em; }
.stLegalSection p,
.stLegalSection li,
.stLegalController p { color: #5f697f; font-size: 16px; line-height: 1.75; }
.stLegalSection p { margin: 0 0 16px; }
.stLegalSection ul { margin: 18px 0 0; padding-left: 20px; }
.stLegalSection li + li { margin-top: 9px; }

.stLegalController { margin-top: 26px; padding: 42px 0 0 47px; border-top: 1px solid #e8edf4; }
.stLegalController .stLegalContactEyebrow { color: var(--st-cyan); }
.stLegalController p { max-width: 680px; margin: 0 0 15px; }
.stLegalController strong { color: var(--st-navy); }
.stLegalController a { color: var(--st-indigo); font-weight: 700; overflow-wrap: anywhere; }
.stLegalController a:hover { color: var(--st-cyan); }

@media (max-width: 880px) {
  .stLegalLayout { grid-template-columns: 1fr; gap: 48px; }
  .stLegalSidebar { position: static; grid-column: 1; grid-row: 1; grid-template-columns: 1fr 1fr; }
  .stLegalContent { grid-column: 1; grid-row: 2; }
}

@media (max-width: 620px) {
  .stLegalLayout { width: calc(100% - 36px); }
  .stLegalSidebar { grid-template-columns: 1fr; }
  .stLegalToc ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stLegalSection { padding-left: 0; }
  .stLegalSectionNumber { position: static; display: block; margin-bottom: 10px; }
  .stLegalSection + .stLegalSection .stLegalSectionNumber { top: auto; }
  .stLegalController { padding-left: 0; }
}

@media (max-width: 420px) {
  .stLegalToc ol { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .stLegalLinksCard nav a,
  .stLegalStoreButtons a { transition: none; }
}

