/* ==========================================================================
   Halal 360 — legal document pages (privacy policy, terms, disclaimer)
   Loaded after main.css, which already supplies the nav, hero ground, footer,
   buttons, cards and section primitives. Only the document shell — page
   header, table of contents and long-form typography — is defined here.
   ========================================================================== */

/* --- Page header --------------------------------------------------------- */
/* .hero carries the dark ground and the nav clearance; this trims the height
   back, since there is no phone mockup to balance a full-height hero. */
.hero--page{padding-block:calc(var(--nav-h) + clamp(40px,5vw,72px)) clamp(48px,6vw,80px)}
.hero--page h1{font-size:clamp(2.1rem,1.5rem+2.6vw,3.2rem);max-width:16ch;text-wrap:balance}
.hero--page .lead{color:var(--ink-2-on-dark);max-width:58ch}

.hero__meta{display:flex;flex-wrap:wrap;gap:10px;margin-top:var(--s-4);position:relative}
.chip{
  display:inline-flex;align-items:center;gap:8px;padding:8px 15px;border-radius:var(--r-pill);
  background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.18);
  font-size:var(--t-xs);font-weight:700;letter-spacing:.01em;color:var(--ink-on-dark);
}
.chip svg{width:14px;height:14px;flex:none;stroke:var(--green-300);stroke-width:2.2;fill:none;stroke-linecap:round;stroke-linejoin:round}

/* --- Summary cards ------------------------------------------------------- */
/* The plain-language version of the policy. .card and .grid-3 come from
   main.css; only the trailing single card needs to stretch. */
.glance{margin-top:var(--s-5)}
/* A head with no lead paragraph under it does not need the full drop. */
.sec-head--tight{margin-bottom:var(--s-4)}
.glance .card p{line-height:1.65}

/* --- Two-column body ----------------------------------------------------- */
.doc{display:grid;grid-template-columns:minmax(0,240px) minmax(0,1fr);gap:clamp(28px,4vw,56px);align-items:start}

.toc{position:sticky;top:calc(var(--nav-h) + 20px)}
.toc__title{
  font-size:var(--t-xs);font-weight:700;letter-spacing:.12em;text-transform:uppercase;
  color:var(--ink-2);margin-bottom:14px;
}
.toc ol{list-style:none;margin:0;padding:0;border-left:1px solid var(--border-strong)}
.toc a{
  display:block;padding:7px 0 7px 16px;margin-left:-1px;
  border-left:2px solid transparent;font-size:var(--t-sm);line-height:1.45;color:var(--ink-2);
  transition:color .2s var(--ease),border-color .2s var(--ease);
}
.toc a:hover{color:var(--green-700)}
/* Set by doc.js as the reader moves through the document. */
.toc a.is-current{color:var(--green-800);font-weight:700;border-left-color:var(--green-500)}

/* --- Document ------------------------------------------------------------ */
.doc__body{
  background:var(--surface);border:1px solid var(--border);
  border-radius:var(--r-2xl);box-shadow:var(--sh-md);
  padding:clamp(26px,3.6vw,52px);min-width:0;
}
.doc__body p{color:var(--ink-2);line-height:1.75;margin-bottom:var(--s-2)}
.doc__body p:last-child{margin-bottom:0}
.doc__body strong{color:var(--ink);font-weight:700}
.doc__body a{
  color:var(--green-700);font-weight:600;
  text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1.5px;
}
.doc__body a:hover{color:var(--green-600)}

.doc__intro{font-size:var(--t-lead);line-height:1.65}

.doc__sec{scroll-margin-top:calc(var(--nav-h) + 24px)}
.doc__sec + .doc__sec{margin-top:var(--s-5);padding-top:var(--s-5);border-top:1px solid var(--border)}
.doc__sec > h2{
  display:flex;align-items:center;gap:14px;margin-bottom:var(--s-3);
  font-size:clamp(1.22rem,1.06rem+.6vw,1.55rem);letter-spacing:-.025em;line-height:1.25;
}
.doc__num{
  width:34px;height:34px;flex:none;border-radius:11px;display:grid;place-items:center;
  background:var(--mint);color:var(--green-700);
  font-size:.8125rem;font-weight:800;letter-spacing:0;
}
.doc__body h3{
  margin:var(--s-3) 0 10px;font-size:1.0625rem;letter-spacing:-.015em;
  display:flex;align-items:center;gap:9px;
}
.doc__body h3::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--gold);flex:none}

.doc__list{display:grid;gap:12px;margin:0 0 var(--s-2)}
.doc__list li{position:relative;padding-left:26px;color:var(--ink-2);line-height:1.7}
.doc__list li::before{
  content:"";position:absolute;left:3px;top:.66em;width:7px;height:7px;border-radius:50%;
  background:var(--green-400);box-shadow:0 0 0 3px var(--mint);
}
.doc__list strong{color:var(--ink)}
.doc__list:last-child{margin-bottom:0}

/* --- Callouts ------------------------------------------------------------ */
.callout{
  display:flex;gap:14px;align-items:flex-start;
  background:var(--mint);border-radius:var(--r-lg);
  padding:var(--s-3);margin:var(--s-3) 0;
}
.callout__ico{
  width:38px;height:38px;flex:none;border-radius:12px;display:grid;place-items:center;
  background:rgba(255,255,255,.7);color:var(--green-700);
}
.callout__ico svg{width:19px;height:19px;stroke:currentColor;stroke-width:1.8;fill:none;stroke-linecap:round;stroke-linejoin:round}
.callout p{color:var(--ink);font-size:var(--t-sm);line-height:1.7}
.callout p:last-child{margin-bottom:0}
.callout--gold{background:var(--ivory);border:1px solid var(--border)}
.callout--gold .callout__ico{background:#fff;color:var(--gold-ink)}
.doc__sec > .callout:last-child{margin-bottom:0}

/* --- Provider table ------------------------------------------------------ */
.doc__scroll{
  overflow-x:auto;-webkit-overflow-scrolling:touch;
  border:1px solid var(--border);border-radius:var(--r-lg);margin:var(--s-2) 0 var(--s-3);
}
.doc__scroll table{width:100%;min-width:580px;border-collapse:collapse;font-size:var(--t-sm)}
.doc__scroll th{
  text-align:left;padding:13px 16px;background:var(--muted);color:var(--green-800);
  font-size:var(--t-xs);font-weight:700;letter-spacing:.07em;text-transform:uppercase;white-space:nowrap;
}
.doc__scroll td{padding:14px 16px;border-top:1px solid var(--border);color:var(--ink-2);vertical-align:top;line-height:1.6}
.doc__scroll td:first-child{color:var(--ink);font-weight:700}

/* --- Status legend inside a document ------------------------------------- */
/* .legend is a four-across homepage component; the document column is far
   narrower, so it drops to two and loses the section-sized top margin. */
.doc__body .legend{grid-template-columns:repeat(2,1fr);margin:var(--s-2) 0 var(--s-3)}
.doc__body .legend__item{background:var(--bg)}
.doc__body .legend__item p{line-height:1.6}

/* --- Contact strip ------------------------------------------------------- */
.reach{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:var(--s-2);margin-top:var(--s-3)}
.reach__item{
  display:flex;gap:13px;align-items:flex-start;
  background:var(--surface);border:1px solid var(--border);border-radius:var(--r-lg);padding:18px var(--s-3);
  transition:transform .22s var(--ease),box-shadow .22s var(--ease),border-color .22s var(--ease);
}
a.reach__item:hover{transform:translateY(-2px);box-shadow:var(--sh-md);border-color:var(--border-strong)}
.reach__ico{
  width:38px;height:38px;flex:none;border-radius:12px;display:grid;place-items:center;
  background:var(--mint);color:var(--green-700);
}
.reach__ico svg{width:19px;height:19px;stroke:currentColor;stroke-width:1.8;fill:none;stroke-linecap:round;stroke-linejoin:round}
/* The whole panel is the link, so the document's underlined link styling
   would draw a rule through the label. */
.doc__body a.reach__item{text-decoration:none;font-weight:400;color:inherit}
.reach b{display:block;font-size:var(--t-sm);color:var(--ink);letter-spacing:-.01em}
.reach span{display:block;margin-top:3px;font-size:var(--t-xs);color:var(--ink-2);line-height:1.55;overflow-wrap:anywhere}

/* --- Responsive ---------------------------------------------------------- */
@media (max-width:960px){
  .doc{grid-template-columns:1fr;gap:var(--s-3)}
  .toc{
    position:static;background:var(--surface);border:1px solid var(--border);
    border-radius:var(--r-lg);padding:var(--s-3);
  }
  .toc ol{border-left:0;columns:2;column-gap:var(--s-3)}
  .toc a{padding:6px 0;border-left:0;break-inside:avoid;font-size:var(--t-xs)}
  .toc a.is-current{border-left:0}
  .reach{grid-template-columns:1fr}
}
@media (max-width:560px){
  .doc__body .legend{grid-template-columns:1fr}
}
@media (max-width:520px){
  .toc ol{columns:1}
  .doc__sec > h2{gap:11px}
  .doc__num{width:30px;height:30px;border-radius:10px;font-size:.75rem}
}
