/* Legal pages use the storefront's current typography, colors and footer. */
body.legal-page {
  min-height: 100vh;
  background: #f7f9fc;
  color: #17334d;
}
body.legal-page .announcement {
  display: flex;
  align-items: center;
  justify-content: flex-start !important;
  min-height: 32px;
  padding: 5px 24px;
  background: #eef5fb;
  color: #385f7c;
  font: 500 11px/1.4 'DM Sans', sans-serif;
}
body.legal-page .announcement-copy {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  margin: 0 auto 0 0 !important;
  white-space: nowrap;
}
body.legal-page .announcement .pulse { background: #18b66a; }
.legal-header {
  position: sticky;
  z-index: 20;
  top: 0;
  min-height: 82px;
  padding: 0 max(24px, calc((100vw - 1160px) / 2));
  border-bottom: 1px solid #dce7ef;
  background: rgba(255,255,255,.97);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.legal-header { justify-content: space-between; gap: 16px; }
.legal-header .brand { flex: 0 1 auto; margin-right: auto; }
.legal-header .brand-logo { display: block; width: 181px; height: auto; max-width: 100%; filter: none; }
.legal-back {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
}
.legal-main {
  width: min(calc(100% - 48px), 1160px);
  margin: 0 auto;
  padding: 54px 0 72px;
}
.legal-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #0879be;
  font: 750 11px/1.5 'DM Sans', sans-serif;
  letter-spacing: 1.1px;
}
.legal-main h1 {
  max-width: 950px;
  margin: 12px 0 14px;
  color: #17334d;
  font: 800 clamp(32px, 4vw, 48px)/1.15 'Manrope', sans-serif;
  letter-spacing: -1.8px;
}
.legal-lead {
  max-width: 900px;
  margin: 0;
  color: #60788b;
  font: 400 16px/1.7 'DM Sans', sans-serif;
}
.legal-meta {
  margin: 16px 0 0;
  color: #8295a5 !important;
  font: 500 12px/1.5 'DM Sans', sans-serif !important;
}
.legal-alert {
  margin: 28px 0 20px;
  padding: 18px 21px;
  border: 1px solid #d8e8f3;
  border-left: 3px solid #1687ca;
  border-radius: 12px;
  background: #eef5fb;
  color: #45677e;
  font: 400 14px/1.7 'DM Sans', sans-serif;
}
.legal-alert strong { display: block; margin-bottom: 4px; color: #173d59; font-weight: 700; }
.legal-card {
  margin-top: 14px;
  padding: clamp(20px, 2.3vw, 30px);
  border: 1px solid #dce7ef;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(24,68,96,.035);
}
.legal-card h2 {
  margin: 0 0 12px;
  color: #173d59;
  font: 750 clamp(19px, 1.8vw, 23px)/1.35 'Manrope', sans-serif;
  letter-spacing: -.4px;
}
.legal-card h3 { margin: 20px 0 8px; color: #1d4b68; font: 700 17px/1.4 'Manrope', sans-serif; }
.legal-card p,
.legal-card li {
  color: #5b7385;
  font: 400 14px/1.7 'DM Sans', sans-serif;
  overflow-wrap: anywhere;
}
.legal-card p { margin: 10px 0; }
.legal-card ul,
.legal-card ol { padding-left: 23px; }
.legal-card li + li { margin-top: 7px; }
.legal-card a,
.legal-footer a { color: #0879be; text-underline-offset: 3px; }
.legal-card a:hover,
.legal-footer a:hover { text-decoration-thickness: 2px; }
.legal-placeholders { padding: 16px 18px; border-radius: 10px; background: #eef5fb; color: #315c76 !important; font-weight: 650; }
.legal-footer { margin: 24px 0 0; color: #8293a1; font: 400 12px/1.65 'DM Sans', sans-serif; overflow-wrap: anywhere; }
body.legal-page > footer.pp-footer { width: 100%; }

/* Legal headers use the same centered content rails as the document below. */
body.legal-page.ios27-trial .site-header.legal-header {
  justify-content: space-between !important;
  padding-left: max(24px, calc((100vw - 1160px) / 2)) !important;
  padding-right: max(24px, calc((100vw - 1160px) / 2)) !important;
}
body.legal-page.ios27-trial .site-header.legal-header > .brand {
  flex: 0 1 auto !important;
  margin-right: auto;
  transform: none !important;
}
body.legal-page.ios27-trial .site-header.legal-header > .legal-back {
  margin-left: auto;
}

@media (max-width: 800px) {
  .legal-header { min-height: 72px; padding: 0 max(20px, calc((100vw - 680px) / 2)); }
  body.legal-page.ios27-trial .site-header.legal-header {
    padding-left: max(20px, calc((100vw - 680px) / 2)) !important;
    padding-right: max(20px, calc((100vw - 680px) / 2)) !important;
  }
  .legal-header .brand-logo { width: 165px; }
  .legal-main { width: min(calc(100% - 40px), 680px); padding: 42px 0 58px; }
  .legal-main h1 { letter-spacing: -1.25px; }
}
@media (max-width: 520px) {
  body.legal-page .announcement { min-height: 30px; padding: 6px 5vw; font-size: 10px; }
  .legal-header { min-height: 66px; gap: 10px; padding: 0 5vw; }
  body.legal-page.ios27-trial .site-header.legal-header { padding-inline: 5vw !important; }
  .legal-header .brand-logo { width: clamp(130px, 39vw, 160px); }
  .legal-main { width: 90%; padding: 34px 0 46px; }
  .legal-kicker { font-size: 10px; letter-spacing: .8px; }
  .legal-main h1 { margin: 11px 0 9px; font-size: clamp(29px, 8vw, 38px); letter-spacing: -1.1px; }
  .legal-lead { font-size: 14px; }
  .legal-meta { margin-top: 12px; font-size: 11px !important; }
  .legal-alert { margin: 22px 0 14px; padding: 15px 16px; font-size: 13px; }
  .legal-card { margin-top: 12px; padding: 18px 16px; border-radius: 10px; }
  .legal-card h2 { margin-bottom: 9px; font-size: 18px; }
  .legal-card h3 { margin: 16px 0 7px; font-size: 15px; }
  .legal-card p,
  .legal-card li { font-size: 13px; line-height: 1.65; }
  .legal-card ul,
  .legal-card ol { padding-left: 20px; }
  .legal-footer { margin-top: 19px; font-size: 10px; }
}
