html, body { overflow-anchor: none; }
.ph-legal-nav {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline;
  gap: 8px 24px; width: 100%; box-sizing: border-box;
  color: var(--mute, #60666d);
  font-family: inherit; font-size: 13px; font-weight: 400; line-height: 1.55;
}
.ph-legal-nav > .ph-legal-links {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 20px; min-width: 0;
}
footer .wrap:has(> .ph-legal-nav) { row-gap: 14px; }
footer > .ph-legal-nav {
  max-width: 1440px; width: calc(100% - 40px); margin: 0 auto; padding: 14px 0;
  border-top: 1px solid var(--line, #e5e5ea);
}
.ph-legal-dialog a, .ph-legal-page a { color: #224974; }
.ph-legal-nav .ph-legal-links a, .ph-legal-nav button {
  color: inherit; font: inherit; text-decoration: none; text-underline-offset: 3px;
}
.ph-legal-nav .ph-legal-links a[aria-current="page"] { color: var(--link, #0a7f5f); }
.ph-legal-nav .ph-legal-links a:is(:hover, :focus-visible),
.ph-legal-nav button:is(:hover, :focus-visible) {
  color: var(--link, #0a7f5f); text-decoration: underline;
}
.ph-legal-dialog a { text-underline-offset: 3px; }
.ph-legal-dialog button {
  appearance: none; border-radius: 999px; font: inherit; cursor: pointer; box-shadow: none;
}
.ph-legal-nav button {
  appearance: none; padding: 0; margin: 0; background: none; border: 0;
  box-shadow: none; cursor: pointer; text-align: left;
}
.ph-legal-dialog {
  position: fixed; z-index: 10000; inset: auto auto 20px 50%; transform: translateX(-50%);
  width: min(680px, calc(100% - 32px)); margin: 0; padding: 18px 22px;
  box-sizing: border-box; border: 1px solid #b9cee4; border-radius: 18px;
  background: #fff; color: #24364f; font: 15px/1.5 system-ui, sans-serif;
}
.ph-legal-dialog[hidden] { display: none !important; }
.ph-legal-dialog h2 { margin: 0 0 4px; font: 700 19px/1.3 system-ui, sans-serif; color: inherit; }
.ph-legal-dialog p { margin: 0 0 10px; color: inherit; }
.ph-legal-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ph-legal-dialog button { min-height: 40px; padding: 6px 15px; background: #fff; border: 1px solid #52739a; color: #224974; }
.ph-legal-dialog button[data-choice] { font-weight: 650; }
.ph-legal-dialog button:disabled { opacity: .65; cursor: default; }
.ph-legal-dialog [role="status"] { min-height: 1.5em; margin: 5px 0 0; font-size: 13px; }
.ph-legal-page { margin: 0; background: #f7faff; color: #18293f; font: 16px/1.65 Onest, system-ui, sans-serif; }
.ph-legal-page main { box-sizing: border-box; max-width: 940px; padding: 36px 24px 52px; margin: 0 auto; }
.ph-legal-page article { background: #fff; border: 1px solid #d8e2ee; border-radius: 20px; padding: clamp(22px, 4vw, 50px); }
.ph-legal-page header { max-width: 1240px; box-sizing: border-box; margin: 0 auto; padding: 22px 24px 0; }
.ph-legal-page h1 { margin: 0 0 8px; font-size: clamp(28px, 4vw, 42px); line-height: 1.15; letter-spacing: -.02em; }
.ph-legal-page h2 { margin: 28px 0 8px; font-size: 21px; line-height: 1.35; }
.ph-legal-page p { margin: 0 0 12px; }
.ph-legal-page li { margin: 0 0 10px; }
.ph-legal-page .ph-legal-date { color: #50637b; font-size: 14px; }
