.legal-page {
  margin: 0;
  background: #f5f7fb;
  color: #203249;
  font: 16px/1.75 system-ui, -apple-system, "Segoe UI", "Microsoft YaHei", sans-serif;
}
.legal-page * { box-sizing: border-box; }
.legal-page a, .legal-entry a, .legal-links a { color: #184fa9; text-decoration: underline; text-underline-offset: .2em; }
.legal-page a:focus-visible, .legal-page button:focus-visible, .legal-entry a:focus-visible, .legal-links a:focus-visible {
  outline: 3px solid #184fa9;
  outline-offset: 4px;
}
.legal-page .legal-skip { position: absolute; top: -90px; left: 16px; padding: 12px; background: #fff; z-index: 10; }
.legal-page .legal-skip:focus { top: 8px; }
.legal-page .legal-header, .legal-page .legal-main, .legal-page .legal-footer { width: min(100% - 40px, 1020px); margin: auto; }
.legal-page .legal-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 24px 0; }
.legal-page .legal-brand { font-weight: 750; font-size: 21px; text-decoration: none; }
.legal-page .legal-nav, .legal-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
.legal-page .legal-nav a, .legal-links a { display: inline-flex; align-items: center; min-height: 44px; }
.legal-page [aria-current="page"] { font-weight: 700; }
.legal-page .legal-main { padding: 12px 0 40px; }
.legal-page h1 { font-size: clamp(28px, 5vw, 38px); line-height: 1.3; margin: 0 0 12px; }
.legal-page h2 { font-size: 23px; margin: 0 0 12px; line-height: 1.45; }
.legal-page h3 { font-size: 18px; }
.legal-page p { margin: 10px 0; }
.legal-page .legal-lead { max-width: 75ch; margin-bottom: 24px; }
.legal-page .legal-card { background: #fff; border: 1px solid #d5dfec; border-radius: 16px; padding: 24px; margin: 20px 0; scroll-margin-top: 20px; overflow-wrap: anywhere; }
.legal-page .legal-notice, .legal-entry { border: 1px solid #d6c38f; background: #fffbef; color: #50401e; border-radius: 12px; padding: 16px 20px; }
.legal-page .legal-notice a, .legal-entry a { color: #184fa9; }
.legal-page .legal-facts { display: grid; grid-template-columns: minmax(120px, 1fr) minmax(0, 3fr); margin: 16px 0; gap: 8px 20px; }
.legal-page .legal-facts dt { font-weight: 650; }
.legal-page .legal-facts dd { margin: 0; white-space: pre-line; }
.legal-page li + li { margin-top: 10px; }
.legal-page .legal-toc { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.legal-page .legal-toc a { display: inline-flex; min-height: 44px; align-items: center; }
.legal-page .legal-step-list { padding-left: 24px; }
.legal-page .legal-muted { color: #52647b; font-size: 14px; }
.legal-page details { padding: 14px 0; border-bottom: 1px solid #d5dfec; }
.legal-page summary { cursor: pointer; font-weight: 650; min-height: 44px; }
.legal-page button { min-height: 44px; padding: 8px 16px; background: #fff; border: 1px solid #7185a3; border-radius: 8px; color: #203249; cursor: pointer; font: inherit; }
.legal-page button:disabled { cursor: wait; opacity: .65; }
.legal-page .legal-footer { padding: 20px 0 40px; border-top: 1px solid #d5dfec; }
.legal-entry { max-width: 1100px; margin: 20px auto; font-size: 14px; line-height: 1.75; overflow-wrap: anywhere; }
.legal-entry p { margin: 6px 0; }
.legal-entry [data-service-info-status] { color: #50401e; }
.auth-page .legal-entry { width: calc(100% - 40px); }
.auth-footer:has(.legal-links) { flex-wrap: wrap; gap: 12px 24px; }
.cockpit-footer .legal-links { margin-top: 10px; }
[data-public-link][hidden] { display: none !important; }
@media (max-width: 600px) {
  .legal-page .legal-header, .legal-page .legal-main, .legal-page .legal-footer { width: calc(100% - 28px); }
  .legal-page .legal-card { padding: 18px; border-radius: 12px; }
  .legal-page .legal-facts { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .legal-page .legal-facts dd { margin-bottom: 12px; }
  .legal-entry { margin: 16px 14px; padding: 14px; }
}
