/* =========================================================
   Nuqlatech — policy pages (general + each app)
   Same "Paper, Ink & Lime" system as the main site, laid out
   for reading: one calm column, clear numbered sections.
   ========================================================= */
:root {
  --paper: #f6f3ec;
  --paper-2: #fffdf8;
  --ink: #111111;
  --ink-soft: #45433d;
  --line: rgba(17, 17, 17, 0.12);
  --blue: #006996;
  --blue-deep: #004d6e;
  --lime: #d4f25a;
  --shadow: #a9c9d7;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --display: 'Alexandria', 'Cairo', sans-serif;
  --logo-radius: 22%;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--paper); scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Cairo', sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  caret-color: var(--blue);
}
::selection { background: var(--lime); color: var(--ink); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
a { color: var(--blue); }

/* ---------- Top bar ---------- */
.p-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(246, 243, 236, 0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.p-topbar-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.p-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--display);
  font-weight: 800;
  font-size: 18px;
}
.p-brand img { width: 36px; height: 36px; border-radius: var(--logo-radius); display: block; }
.p-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: var(--bw-sm) solid var(--ink);
  border-radius: 10px;
  background: var(--paper-2);
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  box-shadow: 3px 3px 0 0 var(--shadow);
  transition: transform 0.18s var(--ease-out), box-shadow 0.18s var(--ease-out);
}
.p-back svg { width: 16px; height: 16px; }
.p-back:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 0 var(--shadow); }
.p-back:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 0 var(--shadow); }

/* ---------- Page header ---------- */
.page-header {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 20px 12px;
  text-align: center;
}
.app-logo-wrap { display: flex; justify-content: center; }
.app-logo-wrap img {
  width: 76px;
  height: 76px;
  object-fit: cover;
  border-radius: var(--logo-radius);
  border: var(--bw-sm) solid var(--ink);
  box-shadow: 5px 5px 0 0 var(--shadow);
  display: block;
}
.page-header h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(26px, 5.5vw, 40px);
  line-height: 1.3;
  color: var(--blue);
  margin: 20px 0 6px;
  text-wrap: balance;
}
.page-header .subtitle { margin: 0; color: var(--ink-soft); font-weight: 600; font-size: 15px; }

/* ---------- Document ---------- */
.privacy-container { max-width: 760px; margin: 0 auto; padding: 20px 20px 48px; }
.card {
  background: var(--paper-2);
  border: 1.5px solid var(--ink);
  border-radius: 20px;
  padding: 8px 36px 24px;
  box-shadow: 6px 6px 0 0 var(--shadow);
}
.card-label { display: none; }

/* last-updated: a chip when it sits at the top, a quiet line at the end */
.card .footer-note {
  margin: 8px 0 0 !important;
  padding: 18px 0 0 !important;
  border: 0 !important;
  border-top: 1px solid var(--line) !important;
  text-align: center !important;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
  opacity: 1;
}
.card-label + .footer-note {
  display: table;
  margin: 24px 0 4px !important;
  padding: 4px 14px !important;
  border: 1.5px solid var(--ink) !important;
  border-radius: 99px;
  background: var(--lime);
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 700;
}
.card-label + .footer-note ~ .footer-note { display: none; }

.policy-item { padding: 26px 0; border-bottom: 1px solid var(--line); margin: 0; }
.policy-item:last-of-type { border-bottom: 0; }
.policy-item h3 {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 10px;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(18px, 3.6vw, 21px);
  line-height: 1.5;
  color: var(--ink);
}
.policy-item h3 .num {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--blue);
  color: #ffffff;
  font-family: 'Cairo', sans-serif;
  font-weight: 800;
  font-size: 14px;
  line-height: 1;
}
.policy-item p {
  margin: 0;
  padding-inline-start: 48px;
  color: var(--ink-soft);
  font-size: 16.5px;
  line-height: 1.95;
}
.policy-item p + p { margin-top: 12px; }
.policy-item strong { color: var(--ink); font-weight: 800; }
.policy-item ul {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  padding-inline-start: 48px;
  display: grid;
  gap: 10px;
}
.policy-item li {
  position: relative;
  padding-inline-start: 22px;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.9;
}
.policy-item li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.8em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--blue);
}
.note-box {
  margin: 16px 0 0;
  margin-inline-start: 48px;
  padding: 14px 18px;
  border: 1.5px solid var(--ink);
  border-radius: 14px;
  background: #eef6d2;
}
.note-box p { padding: 0; color: var(--ink); font-weight: 600; font-size: 15px; }
.note-box.warn { background: #fff1cc; }
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
  padding-inline-start: 48px;
}
.contact-links a {
  padding: 8px 14px;
  border: var(--bw-sm) solid var(--ink);
  border-radius: 10px;
  background: var(--paper-2);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 3px 3px 0 0 var(--shadow);
}

/* ---------- Footer: every policy, one tap away ---------- */
.p-footer { border-top: var(--bw) solid var(--ink); }
.p-footer-inner { max-width: 760px; margin: 0 auto; padding: 32px 20px 40px; }
.p-footer-title {
  margin: 0 0 16px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 20px;
  color: var(--ink);
}
.p-policies {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}
.p-policies a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: var(--bw-sm) solid var(--ink);
  border-radius: 12px;
  background: var(--paper-2);
  color: var(--ink);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  box-shadow: 3px 3px 0 0 var(--shadow);
  transition: transform 0.18s var(--ease-out), box-shadow 0.18s var(--ease-out);
}
.p-policies a img { width: 30px; height: 30px; border-radius: var(--logo-radius); flex: none; display: block; }
.p-policies a:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 0 var(--shadow); }
.p-policies a[aria-current="page"] { background: var(--lime); }
.p-copy { margin: 24px 0 0; color: var(--ink-soft); font-size: 13px; text-align: center; }

/* ---------- Phones ---------- */
@media (max-width: 560px) {
  .page-header { padding-top: 32px; }
  .card { padding: 4px 18px 18px; border-radius: 16px; }
  .policy-item { padding: 22px 0; }
  .policy-item p,
  .policy-item ul,
  .contact-links { padding-inline-start: 0; }
  .note-box { margin-inline-start: 0; }
  .policy-item p { font-size: 16px; }
  .p-policies { grid-template-columns: 1fr 1fr; }
}

/* =========================================================
   v2 layout: policy tabs on top, text spans the page width
   ========================================================= */
.p-topbar-inner,
.page-header,
.privacy-container,
.p-tabs-inner { max-width: 1160px; }
.p-topbar-inner,
.p-tabs-inner { padding-inline: clamp(20px, 5vw, 64px); }

/* ---------- Policy tabs (top) ---------- */
.p-tabs { border-bottom: 1px solid var(--line); background: var(--paper); }
.p-tabs-inner {
  margin: 0 auto;
  padding-block: 14px;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.p-tabs-inner::-webkit-scrollbar { display: none; }
.p-tabs a {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 12px;
  border: var(--bw-sm) solid var(--ink);
  border-radius: 99px;
  background: var(--paper-2);
  color: var(--ink);
  font-weight: 700;
  font-size: 14.5px;
  text-decoration: none;
  box-shadow: 3px 3px 0 0 var(--shadow);
  transition: transform 0.18s var(--ease-out), box-shadow 0.18s var(--ease-out);
}
.p-tabs a img { width: 24px; height: 24px; border-radius: var(--logo-radius); display: block; }
.p-tabs a:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 0 var(--shadow); }
.p-tabs a[aria-current="page"] { background: var(--lime); }
@media (min-width: 900px) { .p-tabs-inner { justify-content: center; } }

/* ---------- Full-width document (no boxed card) ---------- */
.page-header { padding: 44px clamp(20px, 5vw, 64px) 8px; }
.privacy-container { margin: 0 auto; padding: 12px clamp(20px, 5vw, 64px) 56px; }
.card {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}
.card-label + .footer-note { margin-inline: auto !important; }
.policy-item { padding: 30px 0; }
.policy-item p,
.policy-item li { font-size: 17px; }

.note-standalone { margin: 22px 0 0; margin-inline-start: 0; }

/* ---------- Contact (identical on every policy) ---------- */
.contact-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.contact-links a svg { width: 18px; height: 18px; flex: none; }
.contact-links a:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 0 var(--shadow); }
.contact-links a { transition: transform 0.18s var(--ease-out), box-shadow 0.18s var(--ease-out); }

/* ---------- Footer ---------- */
.p-footer { border-top: var(--bw) solid var(--ink); padding: 22px 20px 30px; }
.p-copy { margin: 0; text-align: center; color: var(--ink); font-weight: 700; font-size: 13px; }

@media (max-width: 560px) {
  .page-header { padding-top: 28px; }
  .policy-item { padding: 24px 0; }
  .policy-item p,
  .policy-item li { font-size: 16px; }
  .p-tabs a { font-size: 13.5px; padding: 7px 12px 7px 10px; }
}
/* single divider before the closing "last updated" line */
.card .footer-note { border-top: 0 !important; padding-top: 6px !important; }

/* Responsive border thickness (same steps as the main site) */
:root { --bw: 3px; --bw-sm: 2px; }
@media (max-width: 1439px) { :root { --bw: 2.5px;  --bw-sm: 2px; } }   /* laptop */
@media (max-width: 1024px) { :root { --bw: 2.5px;  --bw-sm: 1.5px; } } /* tablet / iPad */
@media (max-width: 600px)  { :root { --bw: 2px;    --bw-sm: 1.5px; } }
/* icon-only back button */
.p-back { width: 42px; height: 42px; padding: 0; justify-content: center; }
.p-back svg { width: 20px; height: 20px; }
