/* ============================================================
   page-legal-content.css
   Shared layout for ALL standardized content pages:
   /compliance, /security, /tenants, /faq, /help-center,
   /privacy-policy, /terms, /grievance, /refund-policy,
   /payment-terms, /contact

   Load AFTER marketing-v2-base.css (reuses its tokens:
   --blue, --green-d, --ink, --ink-2, --body, --muted, --line,
   --surf, --white, --amber, --display, --sans, --r-md/lg/pill).

   This file owns ONLY the .doc-hero / .toc-bar / .clause shell.
   It does NOT define .hero, .d1, .c-green, or any class owned by
   the homepage/persona pages — those must never be reused here,
   since this is a different page family with its own heading
   and color rules. Each page supplies its own <h1>, eyebrow text,
   TOC links, and clause content inside this shell.
   ============================================================ */

  :root{
    --blue:#4173db; --blue-d:#2f5cc0; --blue-lt:#eef2fd;
    --green-d:#5ab81a; --green-lt:#f2fce8;
    --ink:#0d1526; --ink-2:#1b2d4f;
    --body:#3d5070; --muted:#647899;
    --line:#dde5f0; --surf:#f5f8ff; --white:#fff;
    --amber:#f4a01e; --amber-lt:#fff8ec;
    --r-md:12px; --r-lg:20px; --r-pill:9999px;
    --display:'Sora',sans-serif; --sans:'Inter',sans-serif;
  }
  *,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
  html{scroll-behavior:smooth}
  body{
    font-family:var(--sans);
    font-size:16px;
    line-height:1.7;
    color:var(--body);
    background:var(--white);
    -webkit-font-smoothing:antialiased;
  }
  a{color:var(--blue);text-decoration:none}
  a:hover{text-decoration:underline}

/* ===== Doc hero (page header band) ===== */
.doc-hero{
  background:var(--ink);
  padding:56px 0 44px;
  position:relative;
  overflow:hidden;
}
.doc-hero::before{
  content:'';
  position:absolute;inset:0;
  background-image:radial-gradient(rgba(255,255,255,.04) 1px,transparent 1px);
  background-size:22px 22px;
}
.doc-hero .container{position:relative;z-index:1; padding-top:50px}

.doc-eyebrow{
  display:inline-flex;align-items:center;gap:7px;
  font-size:11px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;
  color:var(--amber);
  background:rgba(244,160,30,.12);
  border:1px solid rgba(244,160,30,.28);
  border-radius:var(--r-pill);
  padding:6px 14px;
  margin-bottom:18px;
}
.eyebrow{
    display:inline-flex;align-items:center;gap:7px;
    font-size:11px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;
    color:var(--amber);
    background:rgba(244,160,30,.12);
    border:1px solid rgba(244,160,30,.28);
    border-radius:var(--r-pill);
    padding:6px 14px;
    margin-bottom:18px;
}
.doc-eyebrow.green{ color:var(--green-d); background:rgba(116,221,36,.1); border-color:rgba(116,221,36,.24); }
.doc-eyebrow.blue{ color:#93b4f8; background:rgba(65,115,219,.16); border-color:rgba(65,115,219,.28); }

.doc-hero h1{
  font-family:var(--display);
  font-size:clamp(1.8rem,4vw,2.6rem);
  font-weight:800;
  color:var(--white);
  line-height:1.15;
  letter-spacing:-.02em;
  margin-bottom:12px;
}
.doc-hero .lede{
  color:rgba(255,255,255,.62);
  font-size:1.05rem;
  max-width:640px;
}
.doc-meta{
  margin-top:24px;
  display:flex;flex-wrap:wrap;gap:10px;
}
.doc-meta span{
  display:inline-flex;align-items:center;gap:6px;
  font-size:12px;font-weight:500;
  color:rgba(255,255,255,.55);
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.1);
  border-radius:var(--r-pill);
  padding:5px 13px;
}

/* ===== Sticky TOC (optional — only on pages with multiple clauses) ===== */
.toc-bar{
  position:sticky;top:77px;z-index:50;
  background:rgba(255,255,255,.94);
  backdrop-filter:blur(12px);
  border-bottom:1px solid var(--line);
}
.toc-inner{
  display:flex;align-items:center;gap:4px;
  overflow-x:auto;
  padding:12px 0;
  scrollbar-width:thin;
}
.toc-label{
  flex-shrink:0;
  font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.08em;
  color:var(--muted);
  padding-right:14px;
  border-right:1px solid var(--line);
  margin-right:10px;
  white-space:nowrap;
}
.toc-link{
  flex-shrink:0;
  font-size:12.5px;font-weight:600;
  color:var(--muted);
  padding:6px 12px;
  border-radius:var(--r-pill);
  white-space:nowrap;
  transition:all .15s;
}
.toc-link:hover, .toc-link.active{
  color:var(--blue-d);
  background:var(--blue-lt);
  text-decoration:none;
}

/* ===== Body content ===== */
.doc-main{padding:56px 0 80px}

.intro-block{
  background:var(--surf);
  border:1px solid var(--line);
  border-radius:var(--r-lg);
  padding:24px 28px;
  margin-bottom:48px;
  font-size:14.5px;
  color:var(--body);
}
.intro-block p{margin-bottom:12px}
.intro-block p:last-child{margin-bottom:0}
.intro-block strong{color:var(--ink)}

section {
    padding: 0px 0 0px !important;
  }
section.clause{
  padding:32px 0;
  border-bottom:1px solid var(--line);
  scroll-margin-top:140px;
}
section.clause:last-of-type{border-bottom:none}

.clause-num{
  display:inline-flex;align-items:center;justify-content:center;
  width:30px;height:30px;
  background:var(--blue-lt);
  color:var(--blue-d);
  border-radius:8px;
  font-family:var(--display);
  font-weight:800;
  font-size:13px;
  margin-bottom:14px;
}
.clause h2{
  font-family:var(--display);
  font-size:1.3rem;
  font-weight:700;
  color:var(--ink);
  letter-spacing:-.01em;
  margin-bottom:14px;
}
.clause p{margin-bottom:14px;font-size:15px;line-height:1.7;color:var(--body)}
.clause p:last-child{margin-bottom:0}
.clause ul{
  list-style:none;
  margin:14px 0 18px;
  display:flex;flex-direction:column;gap:9px;
}
.clause ul li{
  position:relative;
  padding-left:24px;
  font-size:14.5px;
  line-height:1.6;
  color:var(--body);
}
.clause ul li::before{
  content:'';
  position:absolute;
  left:0;top:8px;
  width:7px;height:7px;
  border-radius:50%;
  background:var(--green-d);
}
.clause-note{
  background:var(--amber-lt);
  border-left:3px solid var(--amber);
  border-radius:0 var(--r-md) var(--r-md) 0;
  padding:14px 18px;
  font-size:13.5px;
  color:var(--ink);
  margin-top:16px;
}

/* ===== FAQ accordion variant of .clause (used on /faq, /help-center) =====
   Reuses .faq-list/.faq-item/.faq-q/.faq-a from marketing-v2-base.css —
   no redefinition needed here. Just wrap .faq-list inside .doc-main. */
.faq-group{ margin-bottom:40px; }
.faq-group:last-child{ margin-bottom:0; }
.faq-group-title{
  font-family:var(--display);
  font-size:1.05rem;
  font-weight:700;
  color:var(--ink);
  margin-bottom:8px;
}

/* ===== Contact card (used on /contact, and as a footer block on others) ===== */
.contact-card{
  margin-top:48px;
  background:var(--ink-2);
  border-radius:var(--r-lg);
  padding:32px;
  text-align:center;
}
.contact-card h3{
  font-family:var(--display);
  color:var(--white);
  font-size:1.2rem;
  margin-bottom:8px;
}
.contact-card p{
  color:rgba(255,255,255,.55);
  font-size:13.5px;
  margin-bottom:18px;
}
.contact-card a.email{
  display:inline-block;
  font-size:1.05rem;
  font-weight:700;
  color:var(--green-d);
  background:rgba(116,221,36,.08);
  border:1px solid rgba(116,221,36,.22);
  border-radius:var(--r-pill);
  padding:10px 24px;
}
.contact-card a.email:hover{text-decoration:none;background:rgba(116,221,36,.14)}

.last-updated{
  text-align:center;
  margin-top:28px;
  font-size:12.5px;
  color:var(--muted);
}

@media (max-width:640px){
  .doc-hero{padding:40px 0 32px}
  .doc-main{padding:36px 0 56px}
  section.clause{padding:24px 0}
  .toc-bar{top:56px}
}