/* Shared header/footer/base styles for legal pages — mirrors Pouzdani Serviser.html design system */
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,400&display=swap');

:root {
  --black:   #060b14;
  --dark:    #0b1120;
  --dark-2:  #111827;
  --dark-3:  #1c2537;
  --dark-4:  #232e42;
  --ink:     #f1f5f9;
  --ink-2:   #94a3b8;
  --ink-3:   #64748b;
  --white:   #ffffff;

  --blue:    #1d5dff;
  --blue-2:  #2b6bff;
  --blue-dk: #0a3bcc;
  --blue-lt: #dbeafe;
  --blue-gl: rgba(29,93,255,.15);

  --green:   #3ecf5e;
  --green-2: #2fb84d;
  --green-dk:#1a9438;

  --line:    rgba(255,255,255,.08);
  --line-2:  rgba(255,255,255,.13);

  --r:   6px;
  --r-md:10px;
  --r-lg:16px;
  --sh-blue:  0 8px 32px -8px rgba(29,93,255,.6);
  --sh-green: 0 6px 24px -6px rgba(62,207,94,.5);
  --sh-card:  0 2px 12px rgba(0,0,0,.35);

  --f: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
}
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{font-family:var(--f);background:var(--dark);color:var(--ink);font-size:16px;line-height:1.6;-webkit-font-smoothing:antialiased}
a{color:inherit;text-decoration:none}
a:hover{color:var(--blue-2)}
img{display:block;max-width:100%}
button{font-family:var(--f);cursor:pointer}

.wrap{max-width:1160px;margin:0 auto;padding:0 28px}
@media(max-width:640px){.wrap{padding:0 20px}}

/* ─── BUTTONS ─────────────────────────────────────── */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  padding:12px 22px;border-radius:var(--r);font-size:15px;font-weight:600;
  border:1.5px solid transparent;cursor:pointer;white-space:nowrap;
  transition:background 120ms,border-color 120ms,color 120ms,box-shadow 120ms,transform 100ms;
  letter-spacing:-.01em;
}
.btn:active{transform:translateY(1px)}
.btn-green{background:var(--green);color:#041a0b;border-color:var(--green);box-shadow:var(--sh-green)}
.btn-green:hover{background:var(--green-2);color:#041a0b}
.btn-blue{background:var(--blue);color:#fff;border-color:var(--blue);box-shadow:var(--sh-blue)}
.btn-blue:hover{background:var(--blue-dk);color:#fff}
.btn-sm{padding:9px 16px;font-size:13.5px}
.btn-lg{padding:14px 26px;font-size:16px}

/* ─── BACK TO TOP ─────────────────────────────────── */
#to-top{
  position:fixed;right:28px;bottom:28px;z-index:200;
  width:48px;height:48px;border-radius:50%;
  background:var(--green);color:#041a0b;border:none;
  display:grid;place-items:center;cursor:pointer;
  box-shadow:var(--sh-green);
  opacity:0;visibility:hidden;transform:translateY(12px);
  transition:opacity 220ms,transform 220ms,visibility 220ms,background 120ms;
}
#to-top.show{opacity:1;visibility:visible;transform:translateY(0)}
#to-top:hover{background:var(--green-2)}
@media(max-width:560px){#to-top{right:18px;bottom:18px;width:44px;height:44px}}

/* ─────────────────────────────────────────────────────
   HEADER
───────────────────────────────────────────────────── */
.hdr{
  position:sticky;top:0;z-index:100;
  background:#060c15;backdrop-filter:blur(14px);
  border-bottom:1px solid var(--line);
}
.hdr-in{
  display:grid;grid-template-columns:1fr auto 1fr;align-items:center;
  height:104px;gap:28px;
}
.hdr-nav{justify-self:center}
.hdr-cta{justify-self:end}
.logo{display:flex;align-items:center;gap:10px;flex-shrink:0}
.logo-img{height:72px;width:auto;display:block}
.hdr-nav{display:flex;gap:28px;align-items:center}
.hdr-nav a{font-size:14px;font-weight:600;color:var(--ink-2);transition:color 120ms;line-height:1;display:flex;align-items:center}
.hdr-nav a:hover{color:var(--white)}

.hdr-burger{
  display:none;
  justify-self:end;
  flex-direction:column;justify-content:center;gap:5px;
  width:44px;height:44px;padding:10px;
  background:transparent;border:none;cursor:pointer;
}
.hdr-burger span{
  display:block;height:2px;width:100%;border-radius:2px;
  background:var(--white);transition:transform 240ms,opacity 180ms;
}
body.mnav-open .hdr-burger span:nth-child(1){transform:translateY(7px) rotate(45deg)}
body.mnav-open .hdr-burger span:nth-child(2){opacity:0}
body.mnav-open .hdr-burger span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}

.mnav{
  position:fixed;inset:0;z-index:99;
  background:rgba(6,12,21,.7);backdrop-filter:blur(6px);
  opacity:0;visibility:hidden;transition:opacity 260ms,visibility 260ms;
}
body.mnav-open .mnav{opacity:1;visibility:visible}
.mnav-panel{
  position:absolute;top:0;right:0;
  width:min(84vw,340px);height:100%;
  background:#0b1220;border-left:1px solid var(--line-2);
  padding:110px 32px 40px;
  display:flex;flex-direction:column;gap:8px;
  transform:translateX(100%);transition:transform 300ms cubic-bezier(.4,0,.1,1);
}
body.mnav-open .mnav-panel{transform:translateX(0)}
.mnav-links{display:flex;flex-direction:column}
.mnav-links a{
  font-size:20px;font-weight:600;color:var(--white);
  padding:18px 0;border-bottom:1px solid var(--line);
  transition:color 120ms;
}
.mnav-links a:hover{color:var(--green)}
.mnav-cta{margin-top:28px;width:100%}

@media(max-width:860px){
  .hdr-nav{display:none}
  .hdr-cta{display:none}
  .hdr-burger{display:flex}
}

/* ─────────────────────────────────────────────────────
   FOOTER
───────────────────────────────────────────────────── */
footer{
  background:var(--black);
  border-top:1px solid var(--line);
  padding:64px 0 32px;
  color:var(--ink-3);
}
.foot-top{
  display:flex;justify-content:space-between;align-items:flex-start;flex-wrap:wrap;
  gap:32px;margin-bottom:48px;
  padding-bottom:40px;
  border-bottom:1px solid var(--line);
}
@media(max-width:860px){.foot-top{flex-direction:column;gap:28px}}
.foot-brand{max-width:360px}
.foot-logo{display:flex;align-items:center;gap:10px;margin-bottom:14px}
.foot-logo-img{height:48px;width:auto;display:block}
.foot-desc{font-size:13.5px;color:var(--ink-3);line-height:1.6;max-width:30ch}
.foot-legal{display:flex;flex-direction:column;align-items:flex-end;gap:8px}
.foot-legal a{font-size:13px;color:var(--ink-3);transition:color 120ms}
.foot-legal a:hover{color:var(--white)}
.foot-connect{display:flex;flex-direction:column;align-items:center;gap:16px}
@media(max-width:860px){.foot-connect{align-items:flex-start}}
.foot-email{font-size:14px;color:var(--ink-3);transition:color 120ms}
.foot-email:hover{color:var(--white)}
.foot-social{display:flex;gap:14px}
.foot-social a{
  display:flex;align-items:center;justify-content:center;
  width:36px;height:36px;border-radius:8px;
  color:var(--ink-3);border:1px solid var(--line);
  transition:color 120ms,border-color 120ms;
}
.foot-social a:hover{color:var(--white);border-color:rgba(255,255,255,.3)}
.foot-bot{
  display:flex;justify-content:center;align-items:center;
  flex-wrap:wrap;gap:12px;font-size:12.5px;color:rgba(255,255,255,.25);
}
@media(max-width:640px){
  footer{padding:56px 0 28px}
  .foot-top{gap:28px;margin-bottom:32px;padding-bottom:32px;align-items:center;text-align:center}
  .foot-brand{display:flex;flex-direction:column;align-items:center}
  .foot-logo{justify-content:center}
  .foot-desc{font-size:14.5px;color:var(--ink-2);max-width:38ch}
  .foot-connect{align-items:center}
  .foot-legal{align-items:center}
  .foot-bot{justify-content:center;text-align:center}
}
