/* דפי מדיניות פרטיות והצהרת נגישות — בעיצוב "ספר סיפורים" של דף החנות */
:root {
  --bg: #fffbea; --ink: #2b2d6e; --acc: #ff7a2f; --pink: #ff5d8f;
  --sun: #ffd166; --sky: #3fb8e8; --brn: #5a3b1f;
  --ease: cubic-bezier(.22,.8,.2,1);
}
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Varela Round", Assistant, Arial, sans-serif;
  font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased;
}
a { color: var(--ink); font-weight: 700; text-decoration-color: var(--acc); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--acc); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
h1, h2, h3 { font-family: Rubik, sans-serif; font-weight: 800; text-wrap: balance; }

.wrap { max-width: 800px; margin: 0 auto; padding: 32px 16px 56px; }

/* כותרת הדף */
.page-head { display: flex; align-items: center; gap: 18px; margin-bottom: 28px; }
.page-head img {
  width: 88px; height: 88px; object-fit: cover; object-position: 50% 20%; flex: none;
  border-radius: 20px; border: 4px solid var(--brn); box-shadow: 5px 5px 0 var(--sun);
  transform: rotate(-3deg);
}
.page-head .logo { font-weight: 800; text-decoration: none; display: inline-block; margin-bottom: 2px; }
.page-head h1 { font-size: clamp(2.2rem, 7vw, 3.6rem); line-height: 1; margin: 0 0 6px; color: var(--pink); }
.page-head .updated { font-size: .92rem; font-weight: 600; opacity: .8; }

/* כרטיסים */
.card {
  background: #fff; border: 3px solid var(--ink); border-radius: 26px;
  box-shadow: 0 8px 0 rgba(43,45,110,.14);
  padding: 22px 26px; margin-bottom: 22px; scroll-margin-top: 16px;
  animation: pop .6s var(--ease) both;
}
@keyframes pop { from { opacity: 0; transform: translateY(18px); } }
.card h2 { font-size: 1.45rem; line-height: 1.2; margin: 0 0 10px; }
.card h2 .n { color: var(--acc); }
.card h3 { font-size: 1.08rem; margin: 18px 0 4px; color: var(--brn); }
.card p { margin: 0 0 10px; }
.card ul, .card ol { padding-inline-start: 22px; margin: 8px 0 12px; }
.card li { margin-bottom: 6px; }
.card li::marker { color: var(--acc); font-weight: 800; }

/* תוכן עניינים */
.toc { background: var(--sun); }
.toc ol { columns: 2; column-gap: 28px; margin-bottom: 0; }
.toc li { break-inside: avoid; }
.toc li::marker { color: var(--ink); }
.toc a { text-decoration: none; font-weight: 600; }
.toc a:hover { text-decoration: underline; }

/* טבלה */
.table-wrap { overflow-x: auto; margin: 12px 0 4px; border: 3px solid var(--ink); border-radius: 18px; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 580px; }
th, td { border-bottom: 2px solid #eee4c4; padding: 9px 12px; text-align: start; vertical-align: top; }
tr:last-child td { border-bottom: 0; }
th { background: var(--sky); color: #fff; font-weight: 800; border-bottom: 3px solid var(--ink); }
tbody tr:nth-child(even) td { background: #fffdf3; }

/* תיבת קשר */
.contact-box {
  background: var(--bg); border: 3px dashed var(--acc); border-radius: 20px;
  padding: 16px 20px; margin: 10px 0 14px;
}
.note { font-size: .9rem; opacity: .8; }

/* ערך שעוד חסר */
.todo {
  display: inline-block; background: #ffe0e9; color: #a3123f; border: 2px dashed #a3123f;
  border-radius: 8px; padding: 0 8px; font-weight: 800; font-size: .92em; line-height: 1.5;
}

.back-link {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; margin-top: 4px;
  background: var(--acc); color: #fff; border-radius: 999px; text-decoration: none; font-weight: 800;
  box-shadow: 0 6px 0 #c9541a; transition: transform .2s var(--ease);
}
.back-link:hover { color: #fff; transform: translateY(-2px); }
.back-link:active { transform: translateY(4px); box-shadow: 0 2px 0 #c9541a; }

footer { text-align: center; font-size: .9rem; margin-top: 36px; display: grid; gap: 8px; }
footer a { display: inline-flex; align-items: center; min-height: 44px; }
footer .legal { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }

@media (max-width: 560px) {
  .card { padding: 18px 16px; border-radius: 22px; }
  .toc ol { columns: 1; }
  .page-head img { width: 68px; height: 68px; }
}
@media (prefers-reduced-motion: reduce) {
  .card { animation: none; }
  .back-link { transition: none; }
}
