/* Pakiter — shared styles for legal & contact pages.
   Mirrors the landing design system (landing-leads-v4.html). */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #0052FE;
  --primary-dark: #0040c8;
  --primary-light: #E8EEFF;
  --green: #16A34A;
  --green-dark: #0E7C36;
  --green-light: #DCFCE7;
  --ink: #0F172A;
  --slate-700: #334155;
  --slate-500: #64748B;
  --slate-400: #94A3B8;
  --slate-300: #cbd5e1;
  --slate-200: #E2E8F0;
  --slate-100: #F1F5F9;
  --bg: #F8FAFC;
  --white: #fff;
  --sh-soft: 0 4px 24px rgba(15,23,42,.06);
  --sh-card: 0 8px 40px rgba(15,23,42,.08);
}

html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; background: var(--white); color: var(--ink); line-height: 1.65; -webkit-font-smoothing: antialiased; }

.ic { display: inline-flex; align-items: center; justify-content: center; line-height: 0; }
.ic svg { display: block; }
:focus-visible { outline: 2.5px solid var(--primary); outline-offset: 2px; border-radius: 4px; }
.vh { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
a { color: var(--primary); }

/* ── NAV ── */
nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 6%; position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--slate-200);
}
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark { height: 26px; width: auto; flex-shrink: 0; }
.logo-text { font-size: 1.3rem; font-weight: 800; color: var(--ink); letter-spacing: -.03em; }
.nav-back { display: inline-flex; align-items: center; gap: 7px; font-size: .85rem; font-weight: 700; color: var(--slate-500); text-decoration: none; transition: color .2s; }
.nav-back:hover { color: var(--primary); }
.nav-back svg { width: 16px; height: 16px; }

/* ── DOC HEADER ── */
.doc-hero {
  padding: 64px 6% 40px;
  background: linear-gradient(165deg, #EEF3FF 0%, #fff 70%);
  border-bottom: 1px solid var(--slate-200);
}
.doc-hero-inner { max-width: 820px; margin: 0 auto; }
.doc-eyebrow { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--primary); display: block; margin-bottom: 14px; }
.doc-hero h1 { font-size: clamp(2rem, 4.4vw, 3rem); font-weight: 900; letter-spacing: -.035em; line-height: 1.07; }
.doc-updated { margin-top: 16px; font-size: .85rem; color: var(--slate-500); display: inline-flex; align-items: center; gap: 7px; }
.doc-updated svg { width: 14px; height: 14px; }

/* ── DRAFT BANNER ── */
.draft-banner {
  max-width: 820px; margin: 28px auto 0; padding: 0 6%;
}
.draft-banner-inner {
  display: flex; gap: 12px; align-items: flex-start;
  background: #FEF9E7; border: 1px solid #FCE8A6; border-radius: 14px;
  padding: 16px 18px;
}
.draft-banner .ic { color: #B7791F; flex-shrink: 0; margin-top: 1px; }
.draft-banner .ic svg { width: 18px; height: 18px; }
.draft-banner p { font-size: .85rem; color: #8A6D1F; line-height: 1.55; }
.draft-banner strong { color: #6B5310; }

/* ── DOC BODY ── */
.doc-body { max-width: 820px; margin: 0 auto; padding: 48px 6% 72px; }
.doc-body section { margin-bottom: 40px; scroll-margin-top: 84px; }
.doc-body h2 {
  font-size: 1.3rem; font-weight: 800; letter-spacing: -.02em; color: var(--ink);
  margin-bottom: 14px; display: flex; align-items: baseline; gap: 10px;
}
.doc-body h2 .num { font-size: .9rem; font-weight: 800; color: var(--primary); font-variant-numeric: tabular-nums; }
.doc-body h3 { font-size: 1rem; font-weight: 700; color: var(--ink); margin: 22px 0 8px; }
.doc-body p { font-size: .95rem; color: var(--slate-700); margin-bottom: 12px; }
.doc-body ul { list-style: none; display: flex; flex-direction: column; gap: 9px; margin: 6px 0 12px; }
.doc-body li { display: flex; gap: 11px; align-items: flex-start; font-size: .95rem; color: var(--slate-700); }
.doc-body li .ic { color: var(--green); flex-shrink: 0; margin-top: 3px; }
.doc-body li .ic svg { width: 15px; height: 15px; }
.doc-body strong { color: var(--ink); font-weight: 600; }
.doc-body a { font-weight: 600; }

/* table of contents */
.toc { background: var(--bg); border: 1px solid var(--slate-200); border-radius: 16px; padding: 22px 26px; margin-bottom: 40px; }
.toc h2 { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--slate-500); margin-bottom: 14px; font-weight: 700; }
.toc ol { list-style: none; counter-reset: toc; display: grid; grid-template-columns: 1fr 1fr; gap: 9px 24px; }
.toc li { counter-increment: toc; }
.toc a { display: flex; gap: 9px; font-size: .9rem; color: var(--slate-700); text-decoration: none; font-weight: 500; transition: color .2s; }
.toc a::before { content: counter(toc, decimal-leading-zero); color: var(--primary); font-weight: 700; font-variant-numeric: tabular-nums; }
.toc a:hover { color: var(--primary); }

/* ── CONTACT ── */
.contact-grid { max-width: 960px; margin: 0 auto; padding: 48px 6% 24px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.contact-card { border: 1px solid var(--slate-200); border-radius: 18px; padding: 28px; background: white; transition: all .2s; text-decoration: none; display: block; }
.contact-card:hover { border-color: var(--primary); box-shadow: var(--sh-soft); transform: translateY(-2px); }
.cc-icon { width: 46px; height: 46px; border-radius: 12px; background: var(--primary-light); color: var(--primary); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.cc-icon.green { background: var(--green-light); color: var(--green-dark); }
.cc-icon svg { width: 22px; height: 22px; }
.contact-card h3 { font-size: 1.02rem; font-weight: 800; color: var(--ink); margin-bottom: 5px; letter-spacing: -.01em; }
.contact-card p { font-size: .87rem; color: var(--slate-500); margin-bottom: 10px; }
.cc-value { font-size: .9rem; font-weight: 700; color: var(--primary); display: inline-flex; align-items: center; gap: 6px; }
.cc-value svg { width: 14px; height: 14px; }

.contact-form-wrap { max-width: 680px; margin: 24px auto 0; padding: 0 6% 72px; }
.cf-card { background: white; border: 1px solid var(--slate-200); border-radius: 20px; padding: 36px; box-shadow: var(--sh-soft); }
.cf-card h2 { font-size: 1.4rem; font-weight: 800; letter-spacing: -.02em; margin-bottom: 6px; }
.cf-card .cf-sub { font-size: .9rem; color: var(--slate-500); margin-bottom: 24px; }
.cf-form { display: flex; flex-direction: column; gap: 14px; }
.cf-row { display: flex; gap: 14px; }
.cf-field { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.cf-field label { font-size: .82rem; font-weight: 600; color: var(--slate-700); }
.cf-field input, .cf-field select, .cf-field textarea {
  width: 100%; padding: 13px 15px; border-radius: 12px; border: 1.5px solid var(--slate-200);
  font-size: .93rem; font-family: inherit; color: var(--ink); background: white; outline: none; transition: border-color .2s;
}
.cf-field textarea { resize: vertical; min-height: 120px; }
.cf-field input:focus, .cf-field select:focus, .cf-field textarea:focus { border-color: var(--primary); }
.cf-submit { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 15px; border: none; border-radius: 12px; background: var(--primary); color: white; font-size: 1rem; font-weight: 800; cursor: pointer; font-family: inherit; box-shadow: 0 10px 28px rgba(0,82,254,.28); transition: all .25s; margin-top: 4px; }
.cf-submit:hover { background: var(--primary-dark); transform: translateY(-2px); }
.cf-submit svg { width: 17px; height: 17px; }
.cf-success { display: none; text-align: center; padding: 20px 0; }
.cf-success .ic { width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 50%; background: var(--green); color: white; display: flex; align-items: center; justify-content: center; }
.cf-success .ic svg { width: 28px; height: 28px; }
.cf-success h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: 8px; }
.cf-success p { font-size: .9rem; color: var(--slate-700); }

/* ── FOOTER ── */
footer { background: var(--ink); padding: 30px 6%; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.footer-logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; }
.footer-logo img { height: 22px; width: auto; }
.footer-logo-text { font-size: 1.15rem; font-weight: 800; color: white; }
footer small { color: rgba(255,255,255,.4); font-size: .8rem; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: .8rem; color: rgba(255,255,255,.45); text-decoration: none; transition: color .2s; }
.footer-links a:hover { color: white; }

@media (max-width: 760px) {
  .contact-grid { grid-template-columns: 1fr; }
  .toc ol { grid-template-columns: 1fr; }
  .cf-row { flex-direction: column; }
}
@media (max-width: 600px) {
  .doc-hero { padding: 48px 6% 32px; }
  .doc-body { padding: 36px 6% 56px; }
  .contact-grid { padding-top: 36px; }
  .cf-card { padding: 26px 20px; }
  /* 16px inputs prevent iOS Safari auto-zoom on focus */
  .cf-field input, .cf-field select, .cf-field textarea { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
