/* Legal pages: accessibility statement (/negishut/) and privacy policy (/pratiut/).
   The shared lg-* styles live here, and /pratiut/ loads this file too (pg-pratiut.css only adds its own parts).
   Motion library: the checklist that ticks itself (site/sec-checklist), the steps line that fills (site/scr-timeline),
   the marker on the short answer (word/marker) and the "checked" stamp (yeda facts). Reduced motion: final state. */

/* The checklist: each line gets its tick, one after another, the first time it is on screen. */
.yd-body ul.lg-check{display:grid;gap:2px;margin:0 0 1.2em}
.yd-body ul.lg-check>li{padding:10px 40px 10px 0;margin:0;border-bottom:1px solid var(--line)}
.yd-body ul.lg-check>li:before{right:0;top:13px;width:22px;height:22px;background:var(--yd-white,#fbfbf6);border:1.5px solid var(--green);transform:none;border-radius:4px}
.yd-body ul.lg-check>li:after{content:'';position:absolute;right:7px;top:16px;width:7px;height:12px;border:solid var(--yd-gdark,#0d7a40);border-width:0 2.5px 2.5px 0;transform:rotate(45deg)}
.yd-body ul.lg-check b{font-weight:600}
@media(prefers-reduced-motion:no-preference){
  .xr-armed .lg-check:not(.is-in)>li:after{opacity:0;transform:rotate(45deg) scale(.4)}
  .lg-check>li:after{transition:opacity .25s ease calc(var(--i,0) * 90ms),transform .35s cubic-bezier(.34,1.6,.64,1) calc(var(--i,0) * 90ms)}
}

/* Steps on a line that fills: done steps are full dots, the one still open is hollow. */
.yd-body ol.lg-steps{position:relative;margin:0 0 1.2em}
.yd-body ol.lg-steps:before{content:'';position:absolute;right:10px;top:10px;bottom:24px;width:2px;background:var(--line)}
.yd-body ol.lg-steps>li{padding-inline-start:40px;margin-bottom:1em}
.yd-body ol.lg-steps>li:before{content:'';right:4px;top:.45em;width:14px;height:14px;border-radius:50%;background:var(--green);border:2px solid var(--green);font-size:0}
.yd-body ol.lg-steps>li.is-open:before{background:var(--paper);border-color:var(--yd-muted)}
.yd-body ol.lg-steps b{font-weight:600}
@media(prefers-reduced-motion:no-preference){
  .xr-armed .lg-steps:not(.is-in)>li{transform:translateX(-10px)}
  .lg-steps>li{transition:opacity .35s ease calc(var(--i,0) * 160ms),transform .45s var(--ease) calc(var(--i,0) * 160ms)}
}

/* Known gaps: an amber marker instead of the green diamond. */
.yd-body ul.lg-gaps>li:before{background:#c27c0e;transform:none;border-radius:50%;width:9px;height:9px;top:.7em}

/* The report card, on paper like the contact card. */
.lg-report{margin:2.4em 0 1.6em;padding:clamp(20px,3vw,32px);background:var(--yd-white,#fbfbf6);border:1px solid var(--line);box-shadow:0 1px 0 var(--line),6px 8px 0 #10284810}
.lg-report h2{margin-top:0!important}
.lg-report>ul{margin:0 0 1.2em}
.lg-contact{display:grid;gap:14px;padding-top:16px;border-top:1px solid var(--line)}
.lg-contact-who{display:grid;gap:2px;margin:0;font-size:16px;line-height:1.5}
.lg-contact-who span{font-size:13px;font-weight:600;color:var(--yd-muted)}
.lg-contact-who b{font-weight:600}
.yd-body a.lg-contact-wa{justify-self:start;display:inline-flex;align-items:center;gap:10px;min-height:48px;padding:10px 20px;background:var(--yd-gdark,#0d7a40);color:#fff;font-weight:500;font-size:17px;text-decoration:none;transition:background .2s}
.yd-body a.lg-contact-wa:hover{background:var(--navy);color:#fff}
.lg-contact-wa .ey-ico{width:20px;height:20px;fill:currentColor}
.yd-body ul.lg-lines{margin:0;display:grid;gap:0}
.yd-body ul.lg-lines>li{display:grid;grid-template-columns:minmax(120px,auto) 1fr;gap:4px 16px;padding:9px 0;margin:0;border-top:1px solid var(--line);font-size:16px;line-height:1.55}
.yd-body ul.lg-lines>li:before{display:none}
.yd-body ul.lg-lines>li>span:first-child{color:var(--yd-muted);font-size:14px;padding-top:2px}
.yd-body ul.lg-lines a{font-weight:500}

/* Q&A inside the article column: smaller than on the home page. */
.lg-faq{margin:2.4em 0}
.lg-faq .v5-qa-item summary{padding:16px 0}
.lg-faq .v5-qa-item summary h3{margin:0;font-size:clamp(19px,1.7vw,22px);font-weight:600;letter-spacing:0}
.lg-faq .v5-qa-body p{margin:0 0 16px;font-size:17px;line-height:1.75}
.lg-faq .v5-answer b{font-weight:600}

/* The legal basis table: the first column holds the law's name and its link. */
.lg-basis .yd-table th[scope=row]{font-weight:600;min-width:12em}
.lg-basis .yd-table td{min-width:9em}
.lg-basis .yd-table a{font-weight:400}

@media(max-width:760px){
  .yd-body ul.lg-lines>li{grid-template-columns:1fr}
  .lg-basis .yd-table table{font-size:15px}
}
