/* =========================================================
   כלי האתר: תפריט נגישות, עוגיות ופרטיות, עמודי משפט
   ========================================================= */

/* ---------- התאמות נגישות (מופעלות מהתפריט) ---------- */
html.a11y-zoomed main, html.a11y-zoomed .site-footer, html.a11y-zoomed .topbar { zoom: var(--a11y-zoom); }
html.a11y-links a:not(.btn):not(.a11y-fab) { text-decoration: underline !important; text-underline-offset: 3px; outline: 2px solid currentColor; outline-offset: 2px; }
html.a11y-font body, html.a11y-font body *:not(svg):not(svg *) { font-family: Arial, 'Segoe UI', Tahoma, sans-serif !important; }
html.a11y-spacing p, html.a11y-spacing li, html.a11y-spacing summary, html.a11y-spacing label { line-height: 2 !important; letter-spacing: .04em !important; word-spacing: .14em !important; }
html.a11y-cursor, html.a11y-cursor * { cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='44' height='44' viewBox='0 0 24 24'><path d='M4 2l15 9-6.5 1.7L9.5 19z' fill='black' stroke='white' stroke-width='1.6' stroke-linejoin='round'/></svg>") 4 2, auto !important; }
html.a11y-still *, html.a11y-still *::before, html.a11y-still *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }

/* ---------- כפתור וחלון נגישות ---------- */
.a11y-fab { position: fixed; z-index: 90; left: 18px; bottom: 22px; width: 52px; height: 52px; display: grid; place-items: center; border: 0; border-radius: 50%; background: #0B3C49; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(244,166,42,.7), 0 14px 30px -10px rgba(0,0,0,.7); cursor: pointer; transition: transform .25s, background .25s; }
.a11y-fab:hover { background: #12505F; transform: scale(1.06); }
.a11y-fab:focus-visible, .a11y-panel button:focus-visible, .a11y-panel a:focus-visible, .cc-banner button:focus-visible, .cc-banner a:focus-visible, .cc-dialog button:focus-visible, .cc-dialog a:focus-visible, .cc-dialog input:focus-visible + span { outline: 3px solid #F4A62A; outline-offset: 2px; }
.a11y-panel { position: fixed; z-index: 95; left: 18px; bottom: 88px; width: min(340px, calc(100vw - 36px)); max-height: calc(100vh - 120px); overflow: auto; padding: 18px; border-radius: 22px; background: #F3F8F8; color: #0B3C49; box-shadow: 0 30px 80px -20px rgba(0,0,0,.8), 0 0 0 1px rgba(11,60,73,.15); opacity: 0; transform: translateY(10px); transition: opacity .25s, transform .25s; font-size: 15px; line-height: 1.4; }
.a11y-panel.show { opacity: 1; transform: none; }
.a11y-panel:focus { outline: none; }
.a11y-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.a11y-head h2 { margin: 0; font-size: 19px; font-weight: 700; color: #0B3C49; }
.a11y-x, .cc-close { width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(11,60,73,.08); color: #0B3C49; font-size: 24px; line-height: 1; cursor: pointer; }
.a11y-size { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; margin-bottom: 10px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1.5px #D6E3E5; }
.a11y-size > div { display: flex; align-items: center; gap: 8px; }
.a11y-size button { min-width: 44px; height: 38px; border: 0; border-radius: 10px; background: #0B3C49; color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.a11y-size button:disabled { opacity: .35; cursor: default; }
.a11y-size b { min-width: 46px; text-align: center; font-weight: 700; }
.a11y-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.a11y-tg { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 68px; padding: 8px; border: 0; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1.5px #D6E3E5; color: #0B3C49; font: inherit; font-size: 14px; cursor: pointer; transition: background .2s, color .2s; }
.a11y-tg span { font-size: 20px; line-height: 1; }
.a11y-tg[aria-pressed="true"] { background: #0B3C49; color: #fff; box-shadow: none; }
.a11y-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; font-size: 14px; }
.a11y-foot a { color: #0B3C49; text-decoration: underline; }
.a11y-reset { border: 0; background: none; padding: 6px 0; color: #0B3C49; font: inherit; text-decoration: underline; cursor: pointer; }

/* ---------- באנר עוגיות ---------- */
.cc-banner { position: fixed; z-index: 400; right: 18px; bottom: 18px; width: min(430px, calc(100vw - 36px)); padding: 20px 22px; border-radius: 24px; background: #0B3C49; color: #E8F1F2; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), 0 30px 80px -20px rgba(0,0,0,.85); font-size: 15px; line-height: 1.6; opacity: 0; transform: translateY(16px); transition: opacity .35s, transform .35s; }
.cc-banner.show { opacity: 1; transform: none; }
.cc-title { margin: 0 0 4px; font-size: 18px; font-weight: 700; color: #fff; }
.cc-text { margin: 0 0 14px; color: #C3D6D9; font-weight: 300; }
.cc-text a { color: #F4A62A; }
.cc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cc-btn { min-height: 44px; padding: 10px 20px; border: 0; border-radius: 999px; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; transition: background .2s, transform .2s; }
.cc-primary { background: #F4A62A; color: #05161B; }
.cc-primary:hover { background: #FFC25C; }
.cc-secondary { background: transparent; color: #E8F1F2; box-shadow: inset 0 0 0 1.5px rgba(232,241,242,.5); }
.cc-secondary:hover { box-shadow: inset 0 0 0 1.5px #F4A62A; }
.cc-link { border: 0; background: none; padding: 8px 6px; color: #C3D6D9; font: inherit; font-size: 14px; text-decoration: underline; cursor: pointer; }

/* ---------- חלון העדפות ---------- */
.cc-lock { overflow: hidden; }
.cc-modal { position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; padding: 16px; background: rgba(5,22,27,.7); backdrop-filter: blur(4px); opacity: 0; transition: opacity .25s; }
.cc-modal.show { opacity: 1; }
.cc-dialog { position: relative; width: min(520px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 28px; border-radius: 28px; background: #F3F8F8; color: #0B3C49; box-shadow: 0 50px 100px -30px rgba(0,0,0,.9); line-height: 1.6; }
.cc-dialog:focus { outline: none; }
.cc-close { position: absolute; top: 16px; left: 16px; }
.cc-dialog h2 { margin: 0 0 6px; font-size: 24px; font-weight: 700; color: #0B3C49; }
.cc-dlg-lead { margin: 0 0 18px; color: #3F5A60; font-size: 15px; }
.cc-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid rgba(11,60,73,.12); }
.cc-row p { margin: 2px 0 0; color: #3F5A60; font-size: 14px; }
.cc-row-title { font-weight: 700; font-size: 16px; }
.cc-switch { position: relative; flex: none; width: 52px; height: 30px; margin-top: 2px; }
.cc-switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.cc-switch span { position: absolute; inset: 0; border-radius: 999px; background: #B7C9CC; transition: background .2s; }
.cc-switch span::after { content: ""; position: absolute; top: 3px; right: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .2s; }
.cc-switch input:checked + span { background: #0B3C49; }
.cc-switch input:checked + span::after { transform: translateX(-22px); }
.cc-switch input:disabled { cursor: default; }
.cc-switch input:disabled + span { opacity: .6; }
.cc-dlg-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; padding-top: 18px; border-top: 1px solid rgba(11,60,73,.12); }
.cc-dialog .cc-secondary { color: #0B3C49; box-shadow: inset 0 0 0 1.5px rgba(11,60,73,.45); }
.cc-dlg-foot { margin: 14px 0 0; font-size: 14px; }
.cc-dlg-foot a { color: #0B3C49; }

@media (max-width: 640px) {
  .cc-banner { right: 12px; bottom: 12px; width: calc(100vw - 24px); }
  .a11y-fab { left: 12px; width: 46px; height: 46px; }
  body:has(.pill-nav) .a11y-fab { bottom: 96px; }
  body:has(.pill-nav) .a11y-panel { bottom: 152px; }
}

/* ---------- עמודי משפט: פרטיות ונגישות ---------- */
.legal-page { background: var(--ink); }
.legal { padding: 140px 0 80px; }
.legal .container { max-width: 820px; }
.legal h1 { font-size: clamp(34px, 5vw, 52px); line-height: 1.15; margin: 0 0 10px; }
.legal .legal-meta { color: var(--muted); font-size: 15px; margin: 0 0 36px; }
.legal h2 { font-size: 24px; margin: 38px 0 10px; color: var(--amber); }
.legal p, .legal li { color: #C3D6D9; font-weight: 300; }
.legal ul { padding-inline-start: 22px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--amber); }
.legal strong { color: var(--text); font-weight: 500; }
.legal-card { margin: 18px 0; padding: 20px 24px; border-radius: 20px; background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px var(--line); }
.legal-card p { margin: 4px 0; }
.legal-foot { padding: 28px 0 60px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.legal-foot .container { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; }
.legal-foot a, .legal-foot button { color: var(--muted); }
.link-btn { border: 0; background: none; padding: 0; font: inherit; text-decoration: underline; cursor: pointer; color: inherit; }
