/* מילולי · עמודי תוכן (אודות, תקנון, פרטיות, נגישות, בבנייה) + באנר עוגיות + תפריט נגישות */

/* ---------- דלג לתוכן ---------- */
.skip-link { position: absolute; top: -60px; right: 12px; z-index: 2000; background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 0 0 14px 14px; font-weight: 700; text-decoration: none; transition: top .15s; }
.skip-link:focus { top: 0; }
main:focus { outline: none; }

/* ---------- כותרת ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.sh-wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.sh-logo img { height: 32px; width: auto; display: block; }
.site-header ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; align-items: center; }
.site-header nav a { display: inline-block; padding: .5em .95em; border-radius: 99px; color: var(--ink-2); text-decoration: none; font-weight: 600; }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { background: #00000009; color: var(--ink); }
.site-header nav a.sh-cta { background: var(--ink); color: #fff; }
.site-header nav a.sh-cta:hover { background: var(--brand-ink); }

/* ---------- תחתית ---------- */
.site-footer { background: #fff; border-top: 1px solid var(--line); margin-top: 72px; color: var(--ink-2); }
.sf-wrap { max-width: 1120px; margin: 0 auto; padding: 44px 20px 28px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.sf-brand img { height: 30px; width: auto; display: block; margin-bottom: 12px; }
.sf-brand p { color: var(--muted); max-width: 26em; margin: 0; line-height: 1.6; }
.sf-col h2 { font-size: .95rem; margin: 0 0 12px; color: var(--ink); }
.sf-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sf-col a, .sf-link { color: var(--ink-2); text-decoration: none; font: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: right; }
.sf-col a:hover, .sf-link:hover { color: var(--brand-ink); text-decoration: underline; }
.sf-wa { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: #128C4A !important; }
.sf-pref { display: block; font-size: .82rem; color: var(--muted); margin-top: 2px; }
.btn-wa { background: #25D366; color: #0B3B1F; box-shadow: 0 8px 18px -8px #25D366; }
.btn-wa:hover { background: #1FBE5A; }
.sf-bottom { max-width: 1120px; margin: 0 auto; padding: 16px 20px 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; }
@media (max-width: 760px) { .sf-wrap { grid-template-columns: 1fr 1fr; } .sf-brand { grid-column: 1 / -1; } }

/* ---------- עמוד תוכן / משפטי ---------- */
.page-hero { background: linear-gradient(180deg, #fff, var(--bg)); border-bottom: 1px solid var(--line); }
.ph-wrap { max-width: 1120px; margin: 0 auto; padding: 56px 20px 40px; }
.page-hero .crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 14px; }
.page-hero .crumbs a { color: var(--muted); }
.page-hero h1 { font-size: clamp(2rem, 4.4vw, 2.9rem); font-weight: 800; margin: 0 0 10px; letter-spacing: -.02em; }
.page-hero .lead { font-size: 1.15rem; color: var(--ink-2); max-width: 46em; margin: 0; line-height: 1.7; }
.page-hero .meta { margin-top: 16px; color: var(--muted); font-size: .92rem; }
.doc { max-width: 1120px; margin: 0 auto; padding: 44px 20px 0; display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 56px; align-items: start; }
.toc { position: sticky; top: 94px; font-size: .93rem; }
.toc h2 { font-size: .8rem; letter-spacing: .06em; color: var(--muted); margin: 0 0 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-inline-start: 2px solid var(--line); }
.toc a { display: block; padding: 6px 14px; color: var(--ink-2); text-decoration: none; margin-inline-start: -2px; border-inline-start: 2px solid transparent; line-height: 1.4; }
.toc a:hover { color: var(--brand-ink); border-color: var(--brand); }
.prose { font-size: 1.06rem; line-height: 1.85; color: var(--ink-2); max-width: 70ch; }
.prose h2 { font-size: 1.45rem; color: var(--ink); margin: 2.2em 0 .6em; scroll-margin-top: 90px; letter-spacing: -.01em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.12rem; color: var(--ink); margin: 1.6em 0 .4em; }
.prose p, .prose ul, .prose ol { margin: 0 0 1em; }
.prose ul, .prose ol { padding-inline-start: 1.3em; }
.prose li { margin-bottom: .35em; }
.prose a { color: var(--brand-ink); text-underline-offset: .2em; }
.prose strong { color: var(--ink); }
.prose .note { background: var(--brand-soft); border-radius: 18px; padding: 16px 20px; color: var(--ink); margin: 1.4em 0; }
.prose .note.warm { background: var(--sun-soft); }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0 1.4em; font-size: .97rem; }
.prose th, .prose td { text-align: right; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--ink); background: #fff; font-weight: 700; }
.contact-card { background: #fff; border-radius: 22px; box-shadow: var(--shadow); padding: 20px 22px; display: grid; gap: 6px; margin: 1em 0 1.4em; }
.contact-card b { color: var(--ink); }
@media (max-width: 860px) { .doc { grid-template-columns: 1fr; gap: 20px; } .toc { position: static; background: #fff; border-radius: 18px; padding: 16px; box-shadow: var(--shadow); } }

/* פרט חסר שצריך למלא */
.ph { background: #FFF1A8; color: #6B4E00; border-radius: 6px; padding: 0 .35em; font-weight: 600; box-shadow: inset 0 -2px 0 #F2C94C; }
.ph:empty::before { content: 'למילוי'; }

/* ---------- באנר עוגיות ---------- */
.cookie-banner { position: fixed; z-index: 900; bottom: 16px; left: 16px; right: 16px; margin: 0 auto; max-width: 860px; background: #fff; border-radius: 24px; box-shadow: 0 20px 50px -12px rgba(30, 33, 69, .35), 0 0 0 1px var(--line); padding: 18px 20px; display: flex; gap: 18px; align-items: center; animation: cbIn .35s cubic-bezier(.2, 1.2, .4, 1); }
.cookie-banner.out { opacity: 0; transform: translateY(20px); transition: .3s; }
.cookie-banner h2 { font-size: 1.05rem; margin: 0 0 4px; }
.cookie-banner p { margin: 0; color: var(--ink-2); font-size: .94rem; line-height: 1.55; }
.cookie-banner a { color: var(--brand-ink); }
.cb-text { flex: 1; min-width: 0; }
.cb-btns { display: flex; flex-direction: column; gap: 8px; flex: none; }
.cb-more { margin-top: 8px; font-size: .9rem; }
.cb-more summary { cursor: pointer; color: var(--brand-ink); font-weight: 600; }
.cb-row { display: flex; gap: 8px; align-items: start; margin-top: 8px; color: var(--ink-2); }
.cb-row input { margin-top: 4px; width: 17px; height: 17px; accent-color: var(--brand); }
@keyframes cbIn { from { opacity: 0; transform: translateY(24px); } }
@media (max-width: 640px) { .cookie-banner { flex-direction: column; align-items: stretch; bottom: 10px; left: 10px; right: 10px; } .cb-btns { flex-direction: row; } .cb-btns .btn { flex: 1; } }

/* ---------- תפריט נגישות ---------- */
.a11y-btn { position: fixed; z-index: 950; bottom: 18px; left: 18px; width: 52px; height: 52px; border-radius: 50%; border: 0; background: #1D4ED8; color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 8px 20px -6px rgba(29, 78, 216, .6); transition: transform .15s; }
.a11y-btn:hover { transform: scale(1.06); }
.a11y-panel { position: fixed; z-index: 951; bottom: 80px; left: 18px; width: min(340px, calc(100vw - 36px)); background: #fff; border-radius: 22px; box-shadow: 0 24px 60px -12px rgba(30, 33, 69, .4), 0 0 0 1px var(--line); padding: 16px; }
.ap-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.ap-head h2 { font-size: 1.1rem; margin: 0; }
.ap-x { border: 0; background: var(--bg); width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 1rem; }
.ap-size { display: flex; align-items: center; gap: 8px; background: var(--bg); border-radius: 14px; padding: 8px 10px; margin-bottom: 10px; }
.ap-size span { flex: 1; font-weight: 600; }
.ap-size button { width: 44px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-weight: 800; cursor: pointer; }
.ap-size output { min-width: 3.4em; text-align: center; font-weight: 700; }
.ap-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ap-opt { border: 2px solid var(--line); background: #fff; border-radius: 14px; padding: 10px 8px; cursor: pointer; display: grid; gap: 4px; justify-items: center; font-weight: 600; font-size: .9rem; min-height: 68px; }
.ap-opt span { font-size: 1.3rem; font-family: var(--emoji); line-height: 1; }
.ap-opt[aria-pressed="true"] { border-color: #1D4ED8; background: #EEF3FF; color: #1D4ED8; }
.ap-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; font-size: .9rem; }
.ap-reset { border: 0; background: none; color: var(--ink-2); text-decoration: underline; cursor: pointer; font: inherit; }
.ap-foot a { color: #1D4ED8; font-weight: 600; }

/* מצבי נגישות */
html.a11y-contrast { --bg: #ffffff; --bg-2: #f2f2f2; --ink: #000; --ink-2: #111; --muted: #2b2b2b; --line: #555; --brand: #1d2bb8; --brand-ink: #10198a; --brand-soft: #e6e8ff; }
html.a11y-contrast body { background: #fff !important; color: #000; }
html.a11y-contrast .btn-outline, html.a11y-contrast .card, html.a11y-contrast .panel, html.a11y-contrast .game, html.a11y-contrast .opt, html.a11y-contrast .tile { box-shadow: 0 0 0 2px #000 !important; }
html.a11y-links a { text-decoration: underline !important; text-underline-offset: .2em; }
html.a11y-links a, html.a11y-links button { outline: 2px dashed #1D4ED8; outline-offset: 2px; }
html.a11y-motion *, html.a11y-motion *::before, html.a11y-motion *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
html.a11y-font body, html.a11y-font button, html.a11y-font input, html.a11y-font select, html.a11y-font textarea { font-family: Arial, 'Heebo', sans-serif !important; letter-spacing: .02em; }
html.a11y-cursor, html.a11y-cursor * { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 24 24'%3E%3Cpath d='M4 2l16 10-7 1.5L16 21l-3 1.2-3-7.5L4 19z' fill='%23000' stroke='%23fff' stroke-width='1.4'/%3E%3C/svg%3E") 4 2, auto !important; }
html.a11y-mono { filter: grayscale(1); }

@media print { .cookie-banner, .a11y-btn, .a11y-panel, .site-header, .site-footer, .toc, .skip-link { display: none !important; } .doc { display: block; } }
