/* ==========================================================================
   Legal pages (Terms & Conditions, Privacy Policy)
   Loaded only by pages/terms.blade.php and pages/privacy.blade.php.
   ========================================================================== */

.legal-hero{
  padding:64px 28px 40px; text-align:center; border-bottom:1px solid var(--line);
  background:radial-gradient(ellipse at center, var(--brass-wash) 0%, transparent 70%);
}
.legal-hero-inner{ max-width:640px; margin:0 auto; }
.legal-hero h1{
  font-family:var(--font-display); font-size:clamp(30px,4vw,42px); font-weight:700;
  color:var(--ink-900); margin:12px 0 10px; letter-spacing:-.005em;
}
.legal-hero p{ font-size:14.5px; color:var(--ink-500); }
.legal-updated{
  display:inline-flex; align-items:center; gap:6px; margin-top:16px;
  font-family:var(--font-mono); font-size:11.5px; font-weight:600; color:var(--brass-deep);
  background:var(--brass-wash); padding:6px 14px; border-radius:20px;
}

.legal-body{ padding:56px 28px 80px; }
.legal-layout{
  max-width:1000px; margin:0 auto; display:grid; grid-template-columns:220px 1fr; gap:48px; align-items:start;
}

/* A plain fixed sticky offset, not true viewport-centering -- both
   earlier attempts (top:50%+translateY(-50%), then top:0+height:100vh
   with flex centering) had real bugs: the transform version could
   render above .legal-layout's own top edge since transforms apply
   after layout and aren't clamped by sticky's containment; the
   height:100vh version centered within the *full* 100vh box even
   while only partially scrolled into view, which visually reads as
   "sitting low with a big empty gap above" until you've scrolled
   further than expected. top:18vh has no such transitional states --
   it's just a normal sticky offset, so it's exactly where it looks
   like it is at every scroll position, landing comfortably in the
   upper-middle of the viewport without any of the edge cases above. */
.legal-toc{ position:sticky; top:18vh; }
.legal-toc-label{
  font-family:var(--font-mono); font-size:10.5px; font-weight:700; letter-spacing:.08em; text-transform:uppercase;
  color:var(--ink-300); margin-bottom:12px;
}
.legal-toc a{
  display:block; font-size:13px; color:var(--ink-700); text-decoration:none; padding:7px 0;
  border-left:2px solid var(--line); padding-left:14px; transition:border-color .15s, color .15s;
}
.legal-toc a:hover{ color:var(--brass-deep); border-color:var(--brass); }

.legal-sections{ display:flex; flex-direction:column; gap:18px; }
.legal-section{
  background:var(--paper-raised); border:1px solid var(--line); border-radius:var(--radius);
  padding:26px 28px; scroll-margin-top:24px;
}
.legal-section-head{ display:flex; align-items:center; gap:12px; margin-bottom:10px; }
.legal-section-num{
  flex:0 0 30px; width:30px; height:30px; border-radius:8px; background:var(--brass-wash); color:var(--brass-deep);
  display:flex; align-items:center; justify-content:center; font-family:var(--font-mono); font-weight:700; font-size:13px;
}
.legal-section h2{ font-family:var(--font-display); font-size:18.5px; font-weight:600; color:var(--ink-900); }
.legal-section p{ font-size:14px; line-height:1.7; color:var(--ink-700); }
.legal-section a{ color:var(--brass-deep); }
/* .legal-section a's compound selector (0,1,1) otherwise beats a bare
   .sp-btn-primary/.sp-btn-ghost (0,1,0) regardless of source order,
   which is what was washing out both Support-page CTA buttons -- the
   primary button in particular became near-invisible brass-on-brass
   text on a brass background. These re-assert the buttons' own colors
   at matching specificity. */
.legal-section a.sp-btn-primary{ color:#FFFFFF; }
.legal-section a.sp-btn-ghost{ color:var(--ink-700); }
.legal-section a.sp-btn-ghost:hover{ color:var(--brass-deep); }

.legal-note{
  background:var(--clay-wash); border:1px solid var(--clay); border-radius:8px;
  padding:14px 18px; margin-top:8px; font-size:13px; color:var(--clay-deep); line-height:1.6;
}

@media(max-width:820px){
  .legal-layout{ grid-template-columns:1fr; }
  .legal-toc{ position:static; display:flex; flex-wrap:wrap; gap:8px 16px; }
  .legal-toc-label{ width:100%; }
}

/* ---- Support page CTA buttons ---- */
.sp-btn-primary{
  display:inline-flex; align-items:center; justify-content:center; gap:7px;
  font-family:var(--font-mono); font-weight:700; font-size:12.5px;
  padding:10px 20px; border-radius:7px; background:var(--brass); color:#FFFFFF;
  border:none; cursor:pointer; transition:background .15s;
}
.sp-btn-primary:hover{ background:var(--brass-deep); }
.sp-btn-ghost{
  display:inline-flex; align-items:center; justify-content:center; gap:7px;
  font-family:var(--font-mono); font-weight:600; font-size:12.5px;
  padding:9px 18px; border-radius:7px; border:1px solid var(--line-strong);
  color:var(--ink-700); background:transparent; cursor:pointer; transition:border-color .15s;
}
.sp-btn-ghost:hover{ border-color:var(--brass); color:var(--brass-deep); }

/* ---- FAQ accordion ---- */
.faq-list{ display:flex; flex-direction:column; gap:10px; }
.faq-item{
  border:1px solid var(--line); border-radius:10px; overflow:hidden;
  transition:border-color .15s;
}
.faq-item:has(.faq-answer.is-open){ border-color:var(--brass); }
.faq-question{
  width:100%; display:flex; align-items:center; gap:12px;
  padding:14px 16px; background:var(--paper-raised); border:none; cursor:pointer;
  text-align:left; transition:background .12s;
}
.faq-question:hover{ background:var(--paper-sunk); }
.faq-q-icon{
  flex:0 0 24px; width:24px; height:24px; border-radius:50%;
  background:var(--brass-wash); color:var(--brass-deep);
  display:flex; align-items:center; justify-content:center;
  font-family:var(--font-mono); font-weight:700; font-size:13px;
}
.faq-q-text{ flex:1; font-family:var(--font-display); font-size:15px; font-weight:600; color:var(--ink-900); }
.faq-chevron{ width:16px; height:16px; flex:0 0 16px; color:var(--ink-500); transition:transform .2s; }
.faq-chevron.is-open{ transform:rotate(180deg); color:var(--brass-deep); }
.faq-answer{ max-height:0; overflow:hidden; transition:max-height .25s ease; background:var(--paper-sunk); }
.faq-answer.is-open{ max-height:220px; }
.faq-answer p{ margin:0; padding:14px 16px 16px 52px; font-size:13.5px; line-height:1.65; color:var(--ink-700); }

/* ---- "Still need help?" card ---- */
.faq-contact-section{
  background:linear-gradient(160deg, var(--brass-wash) 0%, var(--paper-raised) 55%);
  text-align:center; padding:32px 28px !important;
}
.faq-contact-icon{
  width:52px; height:52px; border-radius:50%; margin:0 auto 14px;
  background:var(--paper-raised); color:var(--brass-deep);
  display:flex; align-items:center; justify-content:center;
  box-shadow:var(--shadow-sm);
}
.faq-contact-icon svg{ width:26px; height:26px; }
.faq-contact-section .legal-section-head{ justify-content:center; }
.faq-contact-section h2{ text-align:center; }
.faq-contact-section p{ text-align:center; }
.faq-contact-section > div{ justify-content:center; }
