/* ============================================================
   KEN HRMS — Privacy Policy
   Palette taken from the KEN HRMS app; layout is a standard
   legal document page, not a replica of the app screens.
   ============================================================ */

:root{
  --blue-800:#173FA8;
  --blue-700:#1D4FD8;
  --blue-600:#2563EB;
  --blue-500:#3B82F6;
  --blue-050:#EAF1FE;

  --green-600:#16A34A;

  --bg:#F4F7FC;
  --surface:#FFFFFF;
  --ink:#0F2242;
  --ink-2:#3D4C63;
  --ink-3:#7A8AA0;
  --line:#E3EAF4;

  --maxw:1140px;
}

*{box-sizing:border-box}

html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}

body{
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-family:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;
  font-size:16px;
  line-height:1.75;
  -webkit-font-smoothing:antialiased;
}

a{color:var(--blue-600)}
a:hover{color:var(--blue-800)}

:focus-visible{outline:3px solid var(--blue-500);outline-offset:3px;border-radius:4px}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *{transition:none !important}
}

/* ================= Top bar ================= */

.topbar{
  background:var(--surface);
  border-bottom:1px solid var(--line);
  position:sticky;
  top:0;
  z-index:40;
}

.topbar__inner{
  max-width:var(--maxw);
  margin:0 auto;
  padding:12px 24px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}

.logo{
  display:flex;
  align-items:center;
  gap:12px;
  text-decoration:none;
  color:inherit;
}

.logo__img{
  height:42px;
  width:auto;
  display:block;
}

.logo__text{display:flex;flex-direction:column;line-height:1.25}

.logo__name{
  font-size:15.5px;
  font-weight:700;
  color:var(--ink);
  letter-spacing:-.01em;
}

.logo__sub{
  font-size:11px;
  font-weight:500;
  color:var(--ink-3);
  letter-spacing:.04em;
}

.topbar__link{
  font-size:14px;
  font-weight:600;
  color:var(--blue-600);
  text-decoration:none;
}

.topbar__link:hover{text-decoration:underline}

/* ================= Masthead ================= */

.masthead{
  background:linear-gradient(120deg,var(--blue-800) 0%,var(--blue-600) 62%,var(--blue-500) 100%);
  color:#fff;
}

.masthead__inner{
  max-width:var(--maxw);
  margin:0 auto;
  padding:52px 24px 46px;
}

.masthead__eyebrow{
  margin:0 0 14px;
  font-size:12px;
  font-weight:600;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:rgba(255,255,255,.7);
}

.masthead h1{
  margin:0 0 14px;
  font-size:clamp(32px,5vw,44px);
  font-weight:700;
  line-height:1.1;
  letter-spacing:-.025em;
}

.masthead__lead{
  margin:0 0 32px;
  max-width:64ch;
  font-size:clamp(15px,1.7vw,17px);
  color:rgba(255,255,255,.82);
}

.meta{
  display:flex;
  flex-wrap:wrap;
  gap:0 56px;
  margin:0;
  padding-top:22px;
  border-top:1px solid rgba(255,255,255,.2);
}

.meta dt{
  font-size:11.5px;
  font-weight:600;
  letter-spacing:.11em;
  text-transform:uppercase;
  color:rgba(255,255,255,.6);
  margin:0 0 3px;
}

.meta dd{
  margin:0;
  font-size:15.5px;
  font-weight:600;
}

/* ================= Layout ================= */

.shell{
  max-width:var(--maxw);
  margin:0 auto;
  padding:0 24px 80px;
}

.layout{
  display:grid;
  grid-template-columns:250px 1fr;
  gap:48px;
  align-items:start;
}

/* ---------- Sidebar ---------- */

.sidebar{
  position:sticky;
  top:88px;
  padding-top:44px;
}

.sidebar__title{
  margin:0 0 14px;
  font-size:11.5px;
  font-weight:700;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--ink-3);
}

.toc{
  list-style:none;
  margin:0;
  padding:0;
  border-left:1px solid var(--line);
  max-height:calc(100vh - 190px);
  overflow-y:auto;
}

.toc a{
  display:flex;
  gap:10px;
  align-items:baseline;
  padding:7px 0 7px 16px;
  margin-left:-1px;
  border-left:2px solid transparent;
  font-size:13.5px;
  line-height:1.45;
  color:var(--ink-2);
  text-decoration:none;
  transition:color .15s ease, border-color .15s ease;
}

.toc a:hover{color:var(--blue-600);border-left-color:var(--blue-500)}

.toc a.is-active{
  color:var(--blue-700);
  font-weight:600;
  border-left-color:var(--blue-600);
}

.toc a span{
  flex:none;
  font-size:11.5px;
  font-weight:600;
  color:var(--ink-3);
  font-variant-numeric:tabular-nums;
  min-width:14px;
}

.toc a.is-active span{color:var(--blue-600)}

/* ---------- Document ---------- */

.doc{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:14px;
  padding:52px clamp(24px,4.2vw,64px) 60px;
  margin-top:-30px;
  position:relative;
  z-index:1;
  box-shadow:0 1px 2px rgba(15,34,66,.03), 0 20px 44px -34px rgba(15,34,66,.3);
}

.scope{
  margin:0 0 44px;
  padding:16px 20px;
  background:var(--blue-050);
  border-left:3px solid var(--blue-600);
  border-radius:0 8px 8px 0;
  font-size:14.8px;
  color:var(--ink-2);
}

.doc section{scroll-margin-top:92px;padding-top:38px}
.doc section:first-of-type{padding-top:0}
.doc section + section{border-top:1px solid var(--line);margin-top:42px}

.doc h2{
  margin:0 0 18px;
  font-size:clamp(21px,2.6vw,26px);
  font-weight:700;
  line-height:1.25;
  letter-spacing:-.02em;
}

.doc h2 .num{
  color:var(--blue-600);
  margin-right:8px;
  font-variant-numeric:tabular-nums;
}

.doc h3{
  margin:32px 0 10px;
  font-size:15.5px;
  font-weight:700;
  color:var(--ink);
}

.doc p{
  margin:0 0 16px;
  color:var(--ink-2);
  max-width:76ch;
}

.doc p:last-child{margin-bottom:0}

.doc strong{color:var(--ink);font-weight:600}

/* ---------- Lists ---------- */

.doc ul{
  list-style:none;
  margin:0 0 20px;
  padding:0;
  max-width:76ch;
}

.doc ul li{
  position:relative;
  padding-left:20px;
  margin-bottom:7px;
  color:var(--ink-2);
}

.doc ul li::before{
  content:"";
  position:absolute;
  left:0;
  top:.72em;
  width:6px;
  height:6px;
  border-radius:50%;
  background:var(--blue-500);
}

.doc ul.two-col{columns:2;column-gap:44px;max-width:none}
.doc ul.two-col li{break-inside:avoid}

/* ---------- Highlight line ---------- */

.highlight{
  padding:12px 18px;
  background:#F0FAF4;
  border-left:3px solid var(--green-600);
  border-radius:0 8px 8px 0;
  font-weight:600;
  color:#125C36 !important;
}

/* ---------- Permission definitions ---------- */

.perms{
  margin:4px 0 20px;
  padding:0;
  max-width:76ch;
}

.perms dt{
  font-size:15px;
  font-weight:700;
  color:var(--ink);
  margin-top:16px;
  padding-left:14px;
  border-left:2px solid var(--blue-500);
}

.perms dt:first-child{margin-top:0}

.perms dd{
  margin:4px 0 0 0;
  padding-left:16px;
  color:var(--ink-2);
}

/* ---------- Contact table ---------- */

.contact{
  width:100%;
  max-width:620px;
  border-collapse:collapse;
  margin-top:6px;
  border:1px solid var(--line);
  border-radius:10px;
  overflow:hidden;
}

.contact th,
.contact td{
  text-align:left;
  vertical-align:top;
  padding:13px 18px;
  border-bottom:1px solid var(--line);
  font-size:15px;
}

.contact tr:last-child th,
.contact tr:last-child td{border-bottom:0}

.contact th{
  width:130px;
  font-weight:500;
  color:var(--ink-3);
  background:#FAFCFF;
}

.contact td{font-weight:500;color:var(--ink)}

.contact a{text-decoration:none}
.contact a:hover{text-decoration:underline}

/* ---------- End mark ---------- */

.endmark{
  margin-top:52px;
  padding-top:22px;
  border-top:1px solid var(--line);
  text-align:center;
  font-size:11.5px;
  font-weight:600;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:var(--ink-3) !important;
}

/* ================= Footer ================= */

.site-footer{
  background:var(--blue-800);
  color:#fff;
}

.site-footer__inner{
  max-width:var(--maxw);
  margin:0 auto;
  padding:36px 24px 28px;
  display:flex;
  flex-wrap:wrap;
  gap:24px;
  justify-content:space-between;
  align-items:flex-start;
}

.site-footer__brand{display:flex;gap:14px;align-items:center}

.site-footer__logo{
  height:46px;
  width:auto;
  background:#fff;
  border-radius:10px;
  padding:5px 7px;
}

.site-footer__name{
  margin:0;
  font-size:16px;
  font-weight:700;
}

.site-footer__addr{
  margin:2px 0 0;
  font-size:13.5px;
  color:rgba(255,255,255,.68);
}

.site-footer__links{
  display:flex;
  flex-direction:column;
  gap:4px;
  font-size:14px;
}

.site-footer__links a{
  color:rgba(255,255,255,.85);
  text-decoration:none;
}

.site-footer__links a:hover{color:#fff;text-decoration:underline}

.site-footer__bar{
  border-top:1px solid rgba(255,255,255,.15);
}

.site-footer__bar{
  max-width:var(--maxw);
  margin:0 auto;
  padding:16px 24px 26px;
  display:flex;
  flex-wrap:wrap;
  gap:8px 24px;
  justify-content:space-between;
  font-size:12.5px;
  color:rgba(255,255,255,.55);
}

/* ================= Responsive ================= */

@media (max-width:940px){
  .layout{grid-template-columns:1fr;gap:0}

  .sidebar{
    position:static;
    order:2;
    padding:32px 4px 0;
  }

  .toc{
    columns:2;
    column-gap:30px;
    border-left:0;
    border-top:1px solid var(--line);
    padding-top:14px;
    max-height:none;
    overflow:visible;
  }

  .toc a{
    padding-left:0;
    border-left:0;
  }

  .toc a:hover,
  .toc a.is-active{border-left-color:transparent}

  .doc{order:1;margin-top:0}
  .doc ul.two-col{columns:1}
}

@media (max-width:600px){
  body{font-size:15.5px}
  .topbar__inner{padding:10px 16px}
  .logo__img{height:36px}
  .logo__sub{display:none}
  .topbar__link{display:none}

  .masthead__inner{padding:36px 16px 34px}
  .meta{gap:0 34px}
  .meta > div{margin-bottom:12px}

  .shell{padding:0 16px 56px}
  .doc{padding:32px 20px 40px;border-radius:12px}
  .toc{columns:1}
  .contact th{width:auto}
  .contact th,.contact td{padding:11px 14px;font-size:14.5px}

  .site-footer__inner{padding:28px 16px 22px}
  .site-footer__bar{padding:14px 16px 22px}
}

/* ================= Print ================= */

@media print{
  body{background:#fff;font-size:11pt;line-height:1.5}
  .topbar{position:static;border-bottom:1px solid #000}
  .topbar__link,.sidebar{display:none}
  .masthead{background:#fff;color:#000;border-bottom:2px solid #000}
  .masthead__eyebrow,.masthead__lead,.meta dt{color:#444}
  .meta{border-top:1px solid #999}
  .meta dd{color:#000}
  .layout{display:block}
  .doc{border:0;box-shadow:none;margin:0;padding:0}
  .doc section{page-break-inside:avoid}
  .scope,.highlight{background:#fff;border-left:2px solid #000}
  .site-footer{background:#fff;color:#000;border-top:1px solid #000}
  .site-footer__name,.site-footer__addr,.site-footer__links a,.site-footer__bar{color:#000}
}