:root { color-scheme: only light; }
* { box-sizing: border-box; }

body.esos-legal-page {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(160deg, #78c7ff 0%, #9dd8ff 58%, #c6edff 100%);
  color: #101827;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.legal-shell {
  width: min(100% - 28px, 760px);
  margin: 0 auto;
  padding: max(20px, env(safe-area-inset-top)) 0 max(64px, calc(48px + env(safe-area-inset-bottom)));
}

.legal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.legal-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 7px;
  border: 1px solid rgba(23,32,51,.16);
  border-radius: 17px;
  background: rgba(255,255,255,.70);
  box-shadow: 0 8px 22px rgba(15,75,116,.08);
  color: #101827;
  text-decoration: none;
  font-weight: 850;
}

.legal-brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: linear-gradient(145deg, #07598a, #0d6fa8);
  color: #fff;
  font-weight: 900;
}

.legal-signin,
.legal-links a {
  color: #07598a;
  font-weight: 850;
  text-decoration: none;
}

.legal-content {
  margin-top: 44px;
}

.legal-title {
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(23,32,51,.10);
}

.legal-kicker {
  margin: 0 0 10px;
  color: #07598a;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .19em;
}

.legal-content h1 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(40px, 8vw, 58px);
  line-height: .98;
  letter-spacing: -.045em;
}

.legal-lead {
  max-width: 690px;
  margin: 18px 0 0;
  color: #35536a;
  font-size: clamp(18px, 2.6vw, 21px);
  line-height: 1.55;
}

.legal-content section {
  max-width: 700px;
  padding: 30px 0;
  border-bottom: 1px solid rgba(23,32,51,.09);
}

.legal-summary {
  padding-top: 26px !important;
  padding-bottom: 28px !important;
}

.legal-summary ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.legal-summary li {
  position: relative;
  margin: 0;
  padding: 10px 0 10px 26px;
  font-size: 18px;
  line-height: 1.55;
}

.legal-summary li::before {
  content: "•";
  position: absolute;
  left: 4px;
  top: 9px;
  color: #07598a;
  font-size: 21px;
  font-weight: 900;
}

.legal-summary-note {
  margin-top: 12px !important;
  color: #49647a;
  font-size: 15px !important;
}

.legal-content h2 {
  margin: 0 0 12px;
  font-size: clamp(22px, 3vw, 26px);
  line-height: 1.16;
  letter-spacing: -.025em;
}

.legal-content p {
  margin: 0;
  max-width: 68ch;
  font-size: 18px;
  line-height: 1.67;
}

.legal-footer {
  padding-top: 28px;
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  color: #49647a;
  font-size: 13px;
  line-height: 1.4;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 20px;
}

.legal-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-size: 16px;
}

.legal-brand:focus-visible,
.legal-signin:focus-visible,
.legal-links a:focus-visible {
  outline: 3px solid rgba(7,89,138,.36);
  outline-offset: 4px;
  border-radius: 8px;
}

@media (max-width: 520px) {
  .legal-shell {
    width: min(100% - 24px, 760px);
  }

  .legal-content {
    margin-top: 38px;
  }

  .legal-title {
    padding-bottom: 26px;
  }

  .legal-content section {
    padding: 27px 0;
  }

  .legal-content p {
    font-size: 17px;
    line-height: 1.68;
  }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
}
