.legal-navigation { display:flex; flex-wrap:wrap; gap:12px 20px; }
.legal-navigation a { font:inherit; font-size:13px; color:var(--muted); padding:6px 0; text-decoration:none; text-underline-offset:5px; text-decoration-thickness:1px; }
.legal-navigation a:hover { color:var(--green); text-decoration:underline; }
.legal-navigation a:focus-visible,.legal-close:focus-visible { outline:2px solid var(--green); outline-offset:4px; }
html.legal-dialog-open { overflow:hidden; }
.legal-dialog { width:min(760px,calc(100% - 32px)); max-height:calc(100dvh - 48px); padding:0; border:1px solid #dbe4e1; border-radius:16px; color:#18272a; background:#fff; box-shadow:0 24px 80px #0004; }
.legal-dialog[open] { display:flex; flex-direction:column; }
.legal-dialog::backdrop { background:rgb(10 24 23 / 65%); }
.legal-dialog-header { display:flex; align-items:flex-start; justify-content:space-between; gap:20px; padding:24px 28px; border-bottom:1px solid #e4eae7; flex-shrink:0; }
.legal-dialog-header h2 { margin:0; font-size:clamp(21px,4vw,28px); overflow-wrap:anywhere; }
.legal-close { display:flex; align-items:center; justify-content:center; padding:0; line-height:1; flex-shrink:0; width:44px; height:44px; border:1px solid #dbe4e1; border-radius:50%; background:#f6f8f7; color:inherit; font-size:28px; cursor:pointer; }
.legal-dialog-content { overflow-y:auto; overscroll-behavior:contain; padding:24px 28px; line-height:1.75; overflow-wrap:anywhere; }
.legal-dialog-content p { margin:0 0 20px; }
.legal-dialog-content p:last-child { margin-bottom:0; }
@media(max-width:600px) {
  .legal-dialog { width:calc(100% - 20px); max-height:calc(100dvh - 20px); border-radius:12px; }
  .legal-dialog-header,.legal-dialog-content { padding:18px; }
}

.legal-dialog-content ul,.legal-dialog-content ol { padding-left:1.5rem; margin:0 0 20px; }
.legal-dialog-content a { color:var(--green); text-decoration:underline; text-underline-offset:3px; }


.legal-dialog { margin:auto; }
.legal-footer { padding-block:0; }
.legal-footer:not(:has(.footer-dispute-links)) { display:none; }
.legal-navigation { justify-content:center; align-items:center; }
.footer-dispute-links { display:flex; justify-content:center; align-items:center; gap:24px; flex-wrap:wrap; margin:14px auto 0; }
.footer-dispute-links img { width:auto; max-width:240px; height:auto; max-height:100px; object-fit:contain; }
