/* ============================================================
   THE HALAL VILLAGE — service and legal pages (card 22)
   /contact/, /veelgestelde-vragen/, /verzending-en-retour/,
   /voorwaarden/ and /privacy/.

   The v2 design specifies the .pbanner these pages share (already in
   base.css) but never drew their bodies, so unlike every other sheet in
   this theme nothing here is a port — it is the token layer applied to
   long-form prose, an accordion and a contact split.
   Canonical breakpoints: 1080, 860, 560.
   ============================================================ */

/* ---------------------------------------------------------------- prose
   .legal is the wrapper thv_content_pages() puts on the three documents;
   page.php renders the_content() straight into `.legal .shell`, so that
   element is the prose container itself and gets the measure. 72ch keeps a
   legal paragraph readable — full-width policy text is unreadable text.
   The privacy table is 4 columns wide and cannot narrow past its content, so
   the container scrolls rather than letting the page body scroll sideways. */
.legal .shell{max-width:min(var(--maxw),72ch);overflow-x:auto;}
.legal h2{font-size:clamp(22px,2.4vw,28px);font-weight:600;color:var(--navy);
  line-height:1.2;letter-spacing:-.01em;margin:44px 0 14px;}
.legal h2:first-child{margin-top:0;}
.legal h3{font-size:18px;font-weight:600;color:var(--ink);margin:28px 0 10px;}
.legal p{font-size:17px;line-height:1.7;font-weight:300;color:#33414e;margin:0 0 16px;}
.legal strong{font-weight:600;color:var(--ink);}
.legal a{color:var(--blue);text-decoration:underline;text-underline-offset:2px;}
.legal a:hover{color:var(--bright);}
.legal ul,.legal ol{margin:0 0 18px;padding-left:22px;
  display:flex;flex-direction:column;gap:9px;}
.legal li{font-size:17px;line-height:1.65;font-weight:300;color:#33414e;}
.legal li::marker{color:var(--blue);}

/* opening paragraph — the one line that has to land before anyone decides
   whether to read the rest */
.legal__intro{font-size:19px;line-height:1.6;color:var(--ink);
  border-left:3px solid var(--blue);padding-left:18px;margin-bottom:26px;}
.legal__date{font-size:13.5px;color:var(--muted);margin:0 0 26px;}

/* bedrijfsgegevens block ([thv_bedrijfsgegevens]) */
.legal__meta{list-style:none;margin:0 0 24px;padding:20px 22px;gap:10px;
  background:var(--pale-2);border:1px solid var(--line);border-radius:var(--r-card);}
.legal__meta li{display:flex;flex-wrap:wrap;gap:4px 12px;font-size:15.5px;color:var(--ink);}
.legal__meta li span{flex:none;min-width:150px;font-weight:600;color:var(--navy);font-size:14px;}
/* an unfilled KvK or BTW number is a defect in a legal document, so it is
   drawn as one rather than left as a gap somebody scrolls past */
.todo{background:#FDF0E4;color:var(--amber);font-weight:600;
  font-size:13px;letter-spacing:.02em;padding:2px 9px;border-radius:11px;}

/* the privacy processing table */
.legal table{width:100%;border-collapse:collapse;margin:0 0 22px;font-size:15px;}
.legal thead th{text-align:left;font-weight:600;font-size:13px;letter-spacing:.06em;
  text-transform:uppercase;color:var(--blue);padding:0 14px 10px 0;
  border-bottom:1.5px solid var(--line);}
.legal tbody td{padding:14px 14px 14px 0;border-bottom:1px solid var(--line);
  vertical-align:top;line-height:1.5;font-weight:300;color:#33414e;}
.legal tbody tr:last-child td{border-bottom:none;}
/* on a narrow screen the table scrolls inside its own box; the legal hub's column does not clip it */
@media (max-width:860px){
  .legal table{display:block;max-width:100%;overflow-x:auto;}
}
/* ------------------------------------------------------------------ FAQ */
.faq{display:grid;grid-template-columns:220px 1fr;gap:clamp(30px,5vw,64px);align-items:start;}
.faq__nav{display:flex;flex-direction:column;gap:9px;position:sticky;
  top:calc(var(--hdr-h) + 24px);}
.faq__nav .chip{justify-content:flex-start;text-align:left;border-color:transparent;background:none;border-radius:var(--r-control);}
.faq__nav .chip.is-active{background:var(--pale-2);border-color:var(--line);color:var(--navy);font-weight:600;}
.faq__group{scroll-margin-top:calc(var(--hdr-h) + 24px);}
.faq__group + .faq__group{margin-top:44px;}
.faq__title{font-size:clamp(21px,2.2vw,26px);font-weight:600;color:var(--navy);
  margin-bottom:14px;letter-spacing:-.01em;}

.faq__item{border-top:1px solid var(--line);}
.faq__group .faq__item:last-of-type{border-bottom:1px solid var(--line);}
.faq__item summary{display:flex;align-items:center;justify-content:space-between;gap:16px;
  padding:18px 4px;font-size:17px;font-weight:500;color:var(--navy);
  cursor:pointer;list-style:none;min-height:44px;}
.faq__item summary:hover{color:var(--blue);}
.faq__item summary::-webkit-details-marker{display:none;}
/* plus that becomes a minus when open */
.faq__chev{flex:none;position:relative;width:18px;height:18px;color:var(--blue);}
.faq__chev::before,.faq__chev::after{content:"";position:absolute;left:1px;right:1px;top:8px;height:2px;border-radius:1px;background:currentColor;transition:transform .25s var(--ease);}
.faq__chev::after{transform:rotate(90deg);}
.faq__item[open] .faq__chev::after{transform:rotate(0);}
.faq__a{padding:0 4px 20px;max-width:720px;}
.faq__a p{font-size:16.5px;line-height:1.65;font-weight:400;color:#33414e;margin:0;}
.faq__a a{color:var(--blue);text-decoration:underline;text-underline-offset:2px;}
.faq__a strong{font-weight:600;color:var(--ink);}

.faq__cta{margin-top:48px;padding:clamp(26px,4vw,38px);border-radius:var(--r-card);
  background:var(--pale-2);border:1px solid var(--line);text-align:center;}
.faq__cta h2{font-size:22px;font-weight:600;color:var(--navy);}
.faq__cta p{margin:8px 0 20px;color:var(--muted);font-size:16px;font-weight:300;}

/* -------------------------------------------------------------- contact */
.contact{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);
  gap:clamp(28px,4vw,56px);align-items:start;}
/* the form card is centred at 640 by the base primitive; inside a column it
   should simply fill it */
.contact__form-card{max-width:none;margin:0;}

.contact__card{padding:0 0 clamp(18px,2vw,26px);border-bottom:1px solid var(--line);}
.contact__card h2{font-size:24px;font-weight:600;color:var(--navy);}
.contact__card p{margin-top:10px;font-size:16.5px;line-height:1.6;color:var(--ink);}
.contact__mail{display:inline-block;margin-top:14px;font-size:clamp(22px,2.6vw,30px);font-weight:600;color:var(--blue);
  text-decoration:underline;text-underline-offset:5px;word-break:break-word;}
.contact__mail:hover{color:var(--navy);}
.contact__card .contact__note{font-size:15px;color:var(--muted);}

.contact__links{list-style:none;margin:22px 0 0;padding:0;
  display:flex;flex-direction:column;gap:2px;}
.contact__links li{padding:16px 0;border-bottom:1px solid var(--line);}
.contact__links li:last-child{border-bottom:none;}
.contact__links a{display:inline-flex;align-items:center;gap:8px;min-height:24px;
  font-size:16px;font-weight:600;color:var(--blue);}
.contact__links span{display:block;margin-top:5px;font-size:14.5px;line-height:1.55;
  font-weight:300;color:var(--muted);}
.contact .thv-consent{margin-top:16px;text-align:center;}

@media (max-width:1080px){
  .faq{grid-template-columns:1fr;}
  .faq__nav{position:static;flex-direction:row;flex-wrap:wrap;margin-bottom:8px;}
  .contact{grid-template-columns:1fr;}
}
@media (max-width:560px){
  .legal__meta li span{min-width:0;width:100%;}
  .legal__intro{padding-left:14px;}
}
@media (prefers-reduced-motion:reduce){
  .faq__chev::before,.faq__chev::after{transition:none;}
}

/* Legal hubs: the webshop text and the festival's texts on one page (inc/pages.php thv_legal_hub) */
.legal .shell:has(.legal-hub){max-width:var(--maxw);overflow:visible;}
.legal-hub{display:grid;grid-template-columns:230px minmax(0,72ch);gap:clamp(24px,5vw,64px);align-items:start;}
.legal-hub__nav{position:sticky;top:calc(var(--hdr-h) + 20px);}
.legal-hub__nav ul{list-style:none;margin:0;padding:0;display:grid;gap:6px;}
.legal-hub__nav a{display:block;padding:10px 14px;border:1.5px solid var(--line);border-radius:var(--r-control);background:#fff;color:var(--navy);font-weight:600;font-size:15px;text-decoration:none;}
.legal-hub__nav a:hover,.legal-hub__nav a:focus-visible{border-color:var(--navy);background:var(--pale-2);}
.legal-hub__sec{scroll-margin-top:calc(var(--hdr-h) + 20px);}
.legal-hub__sec + .legal-hub__sec{margin-top:56px;padding-top:40px;border-top:2px solid var(--line);}
.legal-hub__tag{display:inline-block;margin:0 0 14px !important;padding:4px 12px;border-radius:999px;background:var(--pale);color:var(--navy);font-size:12px !important;font-weight:700 !important;letter-spacing:.1em;text-transform:uppercase;}
.legal-hub__sec--festival .legal-hub__tag{background:#fde6c4;color:#7a3d05;}
.legal-hub__note,.faq__note{margin:0 0 18px;padding:12px 16px;border-left:3px solid var(--blue);background:var(--pale-2);font-size:15px !important;}
.legal-hub__text h1{font-size:clamp(22px,2.4vw,28px);margin:24px 0 12px;font-weight:600;color:var(--navy);}
.legal-hub__source{margin:30px 0 0;padding-top:14px;border-top:1px solid var(--line);font-size:14px !important;color:var(--muted) !important;}
@media (max-width:860px){
  .legal-hub{grid-template-columns:minmax(0,1fr);}
  .legal-hub__text{overflow-x:auto;overflow-wrap:anywhere;}
  .legal-hub__nav{position:static;}
  .legal-hub__nav ul{display:flex;flex-wrap:wrap;}
}
