/* Privacy policy and accessibility statement: the two pages, the links in the form,
   and the window that shows them inside the form (so a client never loses the answers).
   The base styles.css from the design kit stays unchanged. */

.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
a:focus-visible{outline:3px solid #f6d58a;outline-offset:3px;border-radius:4px}

/* ---------- Text of the legal pages (also used inside the window) ---------- */
.legal{font-size:16px;line-height:1.7;color:var(--muted)}
.legal .legal-date{font-size:14px;margin-bottom:20px}
.legal h2{font-size:20px;line-height:1.3;font-weight:800;letter-spacing:-.2px;color:var(--text);margin:30px 0 10px}
.legal p{margin-bottom:12px}
.legal ul{list-style:none;margin:0 0 14px;display:flex;flex-direction:column;gap:9px}
.legal li{position:relative;padding-inline-start:20px}
.legal li::before{content:"";position:absolute;inset-inline-start:2px;top:.66em;width:7px;height:7px;border-radius:50%;background:var(--grad)}
.legal strong{color:var(--text);font-weight:700}
.legal span[dir=ltr],.privacy-note span[dir=ltr]{white-space:nowrap} /* brand names stay on one line */
.legal a,.legal-links a,.privacy-note a{color:var(--a1);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
.legal .contact{display:flex;align-items:center;justify-content:flex-start;background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:12px 16px;margin:4px 0 14px}
.legal .contact a{font-size:clamp(15px,4.4vw,17px);font-weight:600;text-decoration:none;padding:4px 0;min-width:0;overflow-wrap:anywhere}
.legal .contact a:hover{text-decoration:underline}

/* ---------- The legal pages on their own ---------- */
.legal-page{flex:1;max-width:760px;width:100%;margin:0 auto;padding:22px 22px 40px}
.legal-page h1{font-size:clamp(36px,9.5vw,56px);margin-bottom:12px}
.topbar a.brand{border-radius:8px}
.legal-foot{max-width:760px;width:calc(100% - 44px);margin:0 auto;padding:18px 0 calc(24px + env(safe-area-inset-bottom));border-top:1px solid var(--line);display:flex;flex-wrap:wrap;align-items:center;gap:4px 18px;font-size:14px;color:var(--muted)}
.lf-nav{display:flex;flex-wrap:wrap;align-items:center;gap:0 18px}
.legal-foot a{color:var(--muted);text-decoration:underline;text-underline-offset:3px;display:inline-block;padding:8px 0}
.legal-foot a[aria-current="page"]{color:var(--text);text-decoration:none;font-weight:700}
.legal-foot .copy{margin-inline-start:auto;direction:ltr;font-size:12.5px;letter-spacing:.08em}

/* ---------- In the form: small links on the first screen ---------- */
.legal-links{display:flex;flex-wrap:wrap;align-items:center;gap:0 6px;font-size:13.5px;color:var(--muted);margin-top:26px}
.legal-links a{color:var(--muted);display:inline-block;padding:7px 2px}
.legal-links a:hover{color:var(--text)}

/* ---------- In the form: the privacy note above the send button ---------- */
.privacy-note{font-size:13.5px;line-height:1.6;color:var(--muted);background:var(--panel);border:1px solid var(--line);border-radius:16px;padding:14px 16px;margin:0 0 18px}
.privacy-note strong{display:block;color:var(--text);font-size:14.5px;font-weight:700;margin-bottom:4px}
.privacy-note p + p{margin-top:6px}
.privacy-note a{white-space:nowrap}

/* ---------- The window that opens the pages inside the form ---------- */
.legal-dialog{margin:auto;width:min(680px,calc(100% - 24px));max-height:calc(100dvh - 32px);padding:0;border:1px solid var(--line);border-radius:20px;background:var(--panel);color:var(--text);overflow:hidden;box-shadow:0 30px 80px -20px rgba(0,0,0,.85)}
.legal-dialog[open]{display:flex;flex-direction:column;animation:ldIn .35s var(--ease)}
.legal-dialog::backdrop{background:rgba(4,4,8,.8)}
@keyframes ldIn{from{opacity:0;transform:translateY(18px)}}
.ld-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 18px;border-bottom:1px solid var(--line);background:var(--panel2)}
.ld-head h2{font-size:19px;line-height:1.3;margin:0}
.ld-close{padding:10px 18px;font-size:15px;flex:none}
.ld-body{overflow-y:auto;overscroll-behavior:contain;padding:16px 18px 24px}
.ld-body:focus-visible{outline:3px solid #f6d58a;outline-offset:-3px}
body:has(.legal-dialog[open]){overflow:hidden}
