/* ---------- תפריט נגישות ---------- */
.skip-link { position: fixed; top: 10px; right: 10px; z-index: 200; padding: 12px 20px; border-radius: 12px; background: var(--ink, #15130F); color: #fff; font-weight: 800; transform: translateY(-160%); transition: transform .2s; }
.skip-link:focus { transform: none; outline: 3px solid var(--yellow, #B39256); outline-offset: 2px; }

.a11y-btn { position: fixed; left: 16px; bottom: 16px; z-index: 61; display: grid; place-items: center; width: 52px; height: 52px; border: 0; border-radius: 50%; background: #1F4FA8; color: #fff; cursor: pointer; box-shadow: 0 10px 24px rgb(0 0 0 / .3); }
.a11y-btn svg { width: 30px; height: 30px; }
.a11y-btn:focus-visible { outline: 3px solid #FFD54A; outline-offset: 3px; }
@media (max-width: 999px) { 
.a11y-panel { position: fixed; left: 16px; bottom: 78px; z-index: 62; width: min(340px, calc(100vw - 36px)); max-height: calc(100vh - 100px); overflow: auto; padding: 18px; border-radius: 22px; background: #fff; color: #15130F; box-shadow: 0 24px 60px rgb(0 0 0 / .35); font-family: "Noto Sans Hebrew", Arial, sans-serif; font-size: 16px; }
.a11y-panel__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.a11y-panel__head h2 { font-size: 22px; margin: 0; color: #15130F; }
.a11y-panel__x { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: #F1ECE2; color: #15130F; cursor: pointer; }
.a11y-panel__x svg { width: 20px; height: 20px; }
.a11y-zoom { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 14px; background: #F6F2EA; font-weight: 700; }
.a11y-zoom span { margin-inline-end: auto; }
.a11y-zoom button { min-width: 44px; height: 40px; border: 2px solid #15130F; border-radius: 12px; background: #fff; color: #15130F; font: inherit; font-weight: 900; cursor: pointer; }
.a11y-zoom output { min-width: 48px; text-align: center; font-weight: 800; }
.a11y-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.a11y-opt { display: grid; justify-items: center; gap: 6px; min-height: 84px; padding: 10px 6px; border: 2px solid #E4DCCB; border-radius: 14px; background: #fff; color: #15130F; font: inherit; font-size: 15px; font-weight: 700; line-height: 1.25; cursor: pointer; text-align: center; }
.a11y-opt svg { width: 26px; height: 26px; }
.a11y-opt[aria-pressed="true"] { border-color: #1F4FA8; background: #E8EFFC; color: #12357A; }
.a11y-panel button:focus-visible, .a11y-panel a:focus-visible { outline: 3px solid #1F4FA8; outline-offset: 2px; }
.a11y-panel__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; }
.a11y-reset { padding: 9px 16px; border: 0; border-radius: 999px; background: #15130F; color: #fff; font: inherit; font-weight: 800; cursor: pointer; }
.a11y-panel__foot a { font-weight: 800; color: #12357A; text-decoration: underline; }

/* ---------- ההתאמות עצמן ---------- */
html.a11y-zoom :is(header, .palert, main, .pmissed, footer) { zoom: var(--a11y-zoom, 1); }
html.a11y-contrast :is(header, .palert, main, .pmissed, footer) { filter: contrast(1.5) saturate(1.2); }
html.a11y-invert :is(header, .palert, main, .pmissed, footer) { filter: invert(1) hue-rotate(180deg); }
html.a11y-invert :is(header, .palert, main, .pmissed, footer) :is(img, video, iframe) { filter: invert(1) hue-rotate(180deg); }
html.a11y-invert body { background: #000; }
html.a11y-gray :is(header, .palert, main, .pmissed, footer) { filter: grayscale(1); }
html.a11y-gray.a11y-contrast :is(header, .palert, main, .pmissed, footer) { filter: grayscale(1) contrast(1.5); }
html.a11y-links a:not(.a11y-panel a) { text-decoration: underline !important; text-underline-offset: 3px; outline: 2px dashed #1F4FA8; outline-offset: 2px; }
html.a11y-font body, html.a11y-font body *:not(svg):not(svg *) { font-family: Arial, "Segoe UI", sans-serif !important; letter-spacing: 0 !important; }
html.a11y-spacing body :is(p, li, label, span, a) { line-height: 1.9 !important; letter-spacing: .03em !important; word-spacing: .12em !important; }
html.a11y-still *, html.a11y-still *::before, html.a11y-still *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
html.a11y-cursor, html.a11y-cursor * { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 24 24'%3E%3Cpath d='M5 3l14 7-6 2-2 6z' fill='%23000' stroke='%23fff' stroke-width='1.5'/%3E%3C/svg%3E") 4 2, auto !important; }
html.a11y-focus :focus { outline: 4px solid #FFD54A !important; outline-offset: 3px !important; box-shadow: 0 0 0 7px #1F4FA8 !important; }

/* מקלדת: תמיד רואים איפה נמצאים */
:focus-visible { outline: 3px solid var(--yellow, #B39256); outline-offset: 3px; }

/* ---------- עמודי מדיניות והצהרה ---------- */
.legal { padding: 140px 0 90px; }
.legal__box { max-width: 820px; margin-inline: auto; }
.legal h1 { font-size: clamp(34px, 5vw, 52px); line-height: 1.1; color: var(--ink); }
.legal__date { margin-top: 10px; color: var(--muted); font-size: 16px; }
.legal h2 { margin-top: 38px; font-size: clamp(22px, 2.6vw, 28px); color: var(--ink); }
.legal p, .legal li { margin-top: 10px; font-size: 18px; line-height: 1.75; color: var(--ink); }
.legal ul { margin-top: 8px; padding-inline-start: 22px; list-style: disc; }
.legal a { color: var(--ink); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.legal__card { margin-top: 18px; padding: 20px 24px; border-radius: 20px; background: var(--surface); border: 2px solid var(--line); }
.legal__card p { margin-top: 4px; }
@media (max-width: 719px) { .legal { padding-top: 112px; } }

/* הסכמה למדיניות בטופס */
.lead__consent { font-size: 14px; line-height: 1.5; color: var(--muted); }
.lead__consent a { color: inherit; font-weight: 700; text-decoration: underline; }
.footer__legal { display: inline-flex; flex-wrap: wrap; gap: 6px 16px; }
.footer__legal a:hover { color: var(--yellow); }

/* בדף הפרסום יש כפתורים צפים בפינה, אז כפתור הנגישות עולה מעליהם */
body:has(.fab) .a11y-btn { bottom: 150px; }
body:has(.fab) .a11y-panel { bottom: 212px; max-height: calc(100vh - 230px); }

/* בטלפון: מקום בתחתית העמוד, כדי שהכפתור לא יכסה את השורה האחרונה */
@media (max-width: 680px) { .pftr__bottom, .footer__bottom { padding-bottom: 70px; } }

/* בדפי החדשות: עיגול הוואטסאפ למטה, וכפתור הנגישות מעליו */
body:has(.gzwa) .a11y-btn { bottom: 86px; left: 19px; }
body:has(.gzwa) .a11y-panel { bottom: 148px; max-height: calc(100vh - 170px); }
body:has(.gzwa.open) .a11y-btn { visibility: hidden; }
@media (max-width: 680px) { body:has(.gzwa) .pftr__bottom { padding-bottom: 140px; } }
