/* Puffball — legal pages (terms, privacy, accessibility). Builds on site.css */
main { position: relative; z-index: 1; flex: 1; width: 100%; max-width: 1120px; margin: 0 auto; padding: 28px 16px 0; }

.intro { display: flex; align-items: center; gap: 20px; margin: 8px 0 24px; animation: rise .5s var(--ease-pop) both; }
.intro .badge { display: grid; place-items: center; width: clamp(76px, 9vw, 104px); height: clamp(76px, 9vw, 104px); flex: none; border-radius: 50%;
  background: radial-gradient(circle at 36% 30%, rgba(255,255,255,.55) 0 16%, transparent 17%), var(--c); color: var(--on, #fff);
  box-shadow: inset 0 -8px 0 var(--cl), 0 0 0 6px var(--ink), 0 14px 20px var(--shade); animation: badge-bob 3s ease-in-out infinite; }
.intro .badge svg { width: 46%; height: 46%; }
@keyframes badge-bob { 50% { transform: translateY(-6px) rotate(-4deg); } }
.intro h1 { margin: 0; font: 700 clamp(36px, 5.4vw, 56px)/1.05 var(--display); color: var(--ink); text-shadow: 0 4px 0 rgba(255,255,255,.7); }
.intro p { margin: 8px 0 0; font: 500 16px/1.4 var(--body); color: var(--ink-2); }

.legal { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 28px; align-items: start; }

/* table of contents */
.toc { position: sticky; top: 16px; padding: 18px; border-radius: 26px; background: rgba(255,255,255,.88); box-shadow: var(--gloss), 0 6px 0 var(--surface-lip); }
.toc h2 { margin: 0 0 12px; font: 700 18px/1.2 var(--display); color: var(--ink); }
.toc ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; counter-reset: t; }
.toc li { counter-increment: t; }
.toc a { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 10px; border-radius: 14px; text-decoration: none; color: var(--ink-2);
  font: 600 15px/1.3 var(--body); transition: background .2s, color .2s, transform .3s var(--ease-pop); }
.toc a::before { content: counter(t); display: grid; place-items: center; width: 24px; height: 24px; flex: none; border-radius: 50%;
  background: var(--well); color: var(--ink); font: 700 13px/1 var(--display); transition: background .2s; }
.toc a:hover { background: var(--raised); color: var(--ink); transform: translateX(-3px); }
.toc a.is-active { background: var(--raised); color: var(--ink); }
.toc a.is-active::before { background: var(--volt); box-shadow: inset 0 -2px 0 var(--volt-lip); }

/* document card */
.doc { padding: clamp(22px, 4vw, 44px) clamp(20px, 4.4vw, 52px); border-radius: 36px; background: var(--surface);
  box-shadow: var(--gloss), 0 10px 0 var(--surface-lip), 0 26px 36px var(--shade); animation: rise .55s var(--ease-boing) .08s both; }
.short { margin: 0 0 30px; padding: 20px 22px; border-radius: 26px; background: #F4FFDD; box-shadow: inset 0 3px 0 #fff, 0 4px 0 #CDEB8A; }
.short h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font: 700 22px/1.2 var(--display); color: var(--ink); }
.short h2 svg { width: 26px; height: 26px; color: var(--volt-lip); }
.short ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.short li { position: relative; padding-inline-start: 34px; font: 600 17px/1.55 var(--body); color: var(--ink); }
.short li::before { content: ""; position: absolute; inset-inline-start: 2px; top: .3em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--volt) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231B2A00' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E") center / 13px no-repeat;
  box-shadow: inset 0 -2px 0 var(--volt-lip); }

.prose { font: 500 18px/1.8 var(--body); color: var(--ink-2); }
.prose section { scroll-margin-top: 20px; }
.prose section + section { margin-top: 34px; padding-top: 30px; border-top: 3px dashed var(--well); }
.prose h2 { margin: 0 0 12px; font: 700 26px/1.25 var(--display); color: var(--ink); }
.prose h3 { margin: 18px 0 6px; font: 700 20px/1.3 var(--display); color: var(--ink); }
.prose p { margin: 0; }
.prose p + p, .prose p + ul, .prose ul + p, .prose p + ol, .prose ol + p { margin-top: 12px; }
.prose a { color: var(--blue-lip); font-weight: 700; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.prose strong { color: var(--ink); }
.prose ul, .prose ol { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.prose ul li { position: relative; padding-inline-start: 28px; }
.prose ul li::before { content: ""; position: absolute; inset-inline-start: 4px; top: .62em; width: 12px; height: 12px; border-radius: 50%;
  background: var(--aqua); box-shadow: inset 0 -2px 0 var(--aqua-lip), 0 0 0 2px var(--ink); }
.prose ol { counter-reset: n; }
.prose ol li { position: relative; padding-inline-start: 34px; counter-increment: n; }
.prose ol li::before { content: counter(n); position: absolute; inset-inline-start: 0; top: .2em; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  background: var(--gold); color: var(--on-gold); font: 700 13px/1 var(--display); box-shadow: inset 0 -2px 0 var(--gold-lip); }
.note { margin-top: 14px; padding: 14px 18px; border-radius: 18px; background: #F1FBFF; color: var(--ink); font-size: 17px; line-height: 1.6; box-shadow: inset 0 3px 0 #fff, 0 3px 0 #9FD9EE; }
.contact-box { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-top: 14px; }
.contact-box div { padding: 14px 16px; border-radius: 18px; background: var(--raised); box-shadow: inset 0 3px 0 #fff, 0 3px 0 var(--surface-lip); }
.contact-box dt { font: 600 14px/1.3 var(--body); color: var(--ink-3); }
.contact-box dd { margin: 4px 0 0; font: 700 17px/1.4 var(--display); color: var(--ink); overflow-wrap: anywhere; }

/* details the site owner still has to fill in: impossible to miss */
mark.todo { padding: 1px 8px; border-radius: 8px; background: #FFE36E; color: #4A3300; font-weight: 700; box-shadow: 0 0 0 2px #E0B400; }

.updated { margin-top: 30px; padding-top: 18px; border-top: 3px dashed var(--well); font: 600 15px/1.4 var(--body); color: var(--ink-3); }

@media (max-width: 900px) {
  .legal { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; padding: 14px; min-width: 0; }
  .toc ol { grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
  .toc ol::-webkit-scrollbar { display: none; }
  .toc a { background: var(--raised); border-radius: 999px; padding: 6px 12px 6px 8px; white-space: nowrap; }
}
@media (max-width: 520px) { .prose { font-size: 17px; } .prose h2 { font-size: 23px; } }

/* ===== Breadcrumbs: פאפבול > משפטי > הצהרת נגישות ===== */
.crumbs { margin: 4px 0 18px; animation: rise .45s var(--ease-pop) both; }
.crumbs ol { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; padding: 6px; list-style: none; border-radius: 999px;
  background: rgba(255,255,255,.82); box-shadow: var(--gloss), 0 4px 0 var(--surface-lip); }
.crumbs li { display: inline-flex; align-items: center; gap: 6px; }
.crumbs a, .crumbs [aria-current] { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 14px; border-radius: 999px;
  font: 700 16px/1 var(--display); text-decoration: none; }
.crumbs a { color: var(--ink-2); transition: background .2s, color .2s, transform .3s var(--ease-pop); }
.crumbs a:hover { background: var(--raised); color: var(--ink); transform: translateY(-2px); }
.crumbs a:active { transform: translateY(1px) scale(.97); }
.crumbs [aria-current] { background: var(--ink); color: #fff; box-shadow: inset 0 2px 0 rgba(255,255,255,.18), 0 3px 0 #000A33; }
.crumb-puff { width: 22px; height: 22px; flex: none; transition: transform .45s var(--ease-boing); }
.crumbs a:hover .crumb-puff { transform: rotate(-20deg) scale(1.12); }
.crumb-sep { width: 16px; height: 16px; color: var(--ink-3); flex: none; }

/* ===== Legal hub: a card per document ===== */
.doc-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin: 0; padding: 0; list-style: none; outline: none; }
.doc-list li { animation: rise .5s var(--ease-boing) both; animation-delay: calc(var(--i) * 70ms + 80ms); }
.doc-card { position: relative; display: flex; align-items: center; gap: 18px; height: 100%; padding: 22px 22px 22px 18px; border-radius: 30px; text-decoration: none;
  background: var(--surface); color: var(--ink); box-shadow: var(--gloss), 0 8px 0 var(--surface-lip), 0 20px 28px var(--shade);
  transition: transform .32s var(--ease-pop), box-shadow .32s var(--ease-pop); -webkit-tap-highlight-color: transparent; }
.doc-card .badge { display: grid; place-items: center; width: 68px; height: 68px; flex: none; border-radius: 50%;
  background: radial-gradient(circle at 36% 30%, rgba(255,255,255,.5) 0 16%, transparent 17%), var(--c); color: var(--on, #fff);
  box-shadow: inset 0 -6px 0 var(--cl), 0 0 0 4px var(--ink); transition: transform .45s var(--ease-boing); }
.doc-card .badge svg { width: 32px; height: 32px; }
.doc-card .txt { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; }
.doc-card strong { font: 700 24px/1.2 var(--display); }
.doc-card .txt span { font: 500 16px/1.5 var(--body); color: var(--ink-2); }
.doc-card small { font: 500 14px/1.3 var(--body); color: var(--ink-3); }
.doc-card .go { width: 28px; height: 28px; flex: none; color: var(--ink-3); transition: transform .32s var(--ease-pop), color .2s; }
@media (hover: hover) {
  .doc-card:hover { transform: translateY(-4px) rotate(-.5deg); box-shadow: var(--gloss), 0 12px 0 var(--surface-lip), 0 26px 34px var(--shade); }
  .doc-card:hover .badge { transform: rotate(-10deg) scale(1.08); }
  .doc-card:hover .go { transform: translateX(-5px); color: var(--ink); }
}
.doc-card:active { transform: translateY(6px) scale(.99); box-shadow: var(--gloss), 0 2px 0 var(--surface-lip), 0 6px 10px var(--shade); transition-duration: 80ms; }
.doc-card.home-card { background: #F4FFDD; box-shadow: var(--gloss), 0 8px 0 #CDEB8A, 0 20px 28px var(--shade); }
@media (max-width: 760px) {
  .doc-list { grid-template-columns: 1fr; gap: 16px; }
  .doc-card { padding: 16px; gap: 14px; }
  .doc-card .badge { width: 56px; height: 56px; }
  .doc-card .badge svg { width: 26px; height: 26px; }
  .doc-card strong { font-size: 21px; }
  .crumbs a, .crumbs [aria-current] { padding: 0 10px; font-size: 15px; }
}
