/* HILO v3 — shared chrome (header, footer, language switch) and the restyle of legal, docs and contact pages.
   Loaded after styles.css on sub-pages, so it overrides the old tokens. */
:root{
  --purple:#4B3CA6;--purple-dark:#4B3CA6;--purple-light:#C9BDEB;--purple-50:#EFEAF7;--purple-100:#DED5EF;
  --ink:#211C36;--light:#F7F3EE;--green:#2F7D4F;
  --display:"Poppins",system-ui,-apple-system,"Segoe UI",sans-serif;--body:"Poppins",system-ui,-apple-system,"Segoe UI",sans-serif;
}
body.page{background:#F7F3EE;color:#211C36;font-family:var(--body)}

/* Buttons (same vocabulary as the homepage) */
.bt{display:inline-flex;align-items:center;gap:10px;transition:background-color .35s ease,color .35s ease,box-shadow .35s ease}
.bt .ar{display:inline-block;transition:transform .35s ease}
.bt:hover .ar{transform:translateX(4px)}
.bt-p:hover{background-color:#3A2E8A!important;color:#FFFDF9!important}
.bt-d:hover{background-color:#4B3CA6!important;color:#FFFDF9!important}
.bt:focus-visible{outline:2px solid #8B79D9;outline-offset:3px}

/* Header */
.hl-hdr{position:relative;max-width:1180px;margin:0 auto;padding:28px 24px;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:20px;font-family:"Poppins",system-ui,sans-serif;box-sizing:content-box}
.hl-hdr .hl-logo{display:flex;align-items:center}
.hl-hdr .hl-logo img{height:26px;width:auto;display:block}
.hl-nav{display:flex;flex-wrap:wrap;align-items:center;gap:28px;font-size:15px}
.hl-nav a:not(.bt){color:#5A5470;text-decoration:none}
.hl-nav a:not(.bt):hover{color:#211C36}
.hl-cta{background:#211C36;color:#FFFDF9!important;text-decoration:none;padding:12px 20px;border-radius:999px;font-weight:500}
@media (max-width:820px){.hl-nav{gap:18px}}
@media (max-width:640px){.hl-nav>a:not(.bt){display:none}}

/* Language switch (works with /i18n.js and /v2/i18n.js) */
.lang-switch{display:inline-flex;align-items:center;gap:2px}
.lang-switch button{appearance:none;margin:0;padding:6px;border:0;border-radius:6px;background:none;font-family:"Poppins",system-ui,sans-serif;font-size:13px;font-weight:400;letter-spacing:.04em;line-height:1;color:#6B6278;cursor:pointer}
.lang-switch button:hover{color:#211C36}
.lang-switch button[aria-pressed="true"]{color:#211C36;font-weight:600}
.lang-switch button:focus-visible{outline:2px solid #8B79D9;outline-offset:2px}
.lang-switch a{padding:6px;border-radius:6px;font-size:13px;font-weight:400;letter-spacing:.04em;line-height:1;color:#6B6278!important;text-decoration:none}
.lang-switch a:hover{color:#211C36!important}
.lang-switch a[aria-current="true"]{color:#211C36!important;font-weight:600}
.lang-switch a:focus-visible{outline:2px solid #8B79D9;outline-offset:2px}

/* Footer */
.hl-ft{border-top:1px solid #E3DAD0;background:#F7F3EE;font-family:"Poppins",system-ui,sans-serif}
.hl-ft-in{max-width:1180px;margin:0 auto;padding:40px 24px;display:flex;flex-wrap:wrap;gap:24px;align-items:center;justify-content:space-between;font-size:14px;color:#5A5470;box-sizing:content-box}
.hl-ft-brand{display:flex;flex-direction:column;gap:10px}
.hl-ft-brand img{height:18px;width:auto;display:block;align-self:flex-start}
.hl-ft-links{display:flex;flex-wrap:wrap;gap:24px;align-items:center}
.hl-ft a{color:#5A5470;text-decoration:underline;text-underline-offset:2px}
.hl-ft a:hover{color:#211C36}

/* Sub-pages (legal, docs, product, support): the new header is in the flow, not fixed */
.subpage,.contact-page{padding-top:0}
.subpage>.wrap{padding-block:56px 120px}
.subpage h1,.contact-intro h1{font-weight:600;letter-spacing:-.03em;color:#211C36}
.prose h2,.prose h3{font-weight:600;color:#211C36}
.prose p,.prose li{color:#5A5470}
.breadcrumbs{font-family:var(--body);font-size:13px}
.btn{background:#4B3CA6;color:#FFFDF9;border-radius:999px;font-weight:500;padding:16px 30px}
.btn:hover{background:#3A2E8A;color:#FFFDF9}

/* Contact form */
.contact-layout{max-width:1180px;padding:72px 24px 140px;box-sizing:content-box}
.contact-intro>p{color:#5A5470}
.contact-form{border-top:0;gap:20px}
.form-field{padding:0;border-bottom:0;gap:8px}
.form-field label{font-family:var(--body);font-size:14px;font-weight:500;letter-spacing:0;text-transform:none;color:#211C36}
.form-field label span{color:#6B6278;font-weight:400}
.form-field input,.form-field textarea{padding:14px 16px;border:1px solid #DCD6E3;border-radius:12px;background:#FFFDF9;font-size:16px;transition:border-color .2s ease,box-shadow .2s ease}
.form-field input::placeholder,.form-field textarea::placeholder{color:#9A93A6}
.form-field input:focus,.form-field textarea:focus{border-color:#4B3CA6;box-shadow:0 0 0 4px rgba(139,121,217,.22)}
.form-submit{margin-top:8px}
@media (max-width:900px){.contact-layout{grid-template-columns:1fr;gap:48px;padding-block:40px 96px}}
