/* ===== Shared styles for Zuqah legal pages ===== */
/* Tokens mirror index.html so legal pages match the main site. */

:root {
  --bg: #fafafa;
  --bg-2: #ffffff;
  --bg-dark: #0b0b12;
  --ink: #0b0b12;
  --ink-soft: #2c2c3a;
  --ink-mute: #6b6b7b;
  --line: #e7e7ec;
  --p1: #6366f1;
  --radius: 16px;
  --radius-lg: 28px;
  --max: 1200px;
  --doc-max: 780px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ===== NAV ===== */
nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 250, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  max-width: var(--max);
  margin: 0 auto;
}
.logo {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1;
}
.logo-zuqah {
  background: linear-gradient(135deg, #a855f7 0%, #3b82f6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}
.nav-back {
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.2s;
}
.nav-back:hover { color: var(--ink); }

/* ===== DOC ===== */
.doc-wrap {
  max-width: var(--doc-max);
  margin: 0 auto;
  padding: 72px 24px 96px;
}
.doc-head { margin-bottom: 40px; }
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--p1);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}
h1 {
  font-size: clamp(26px, 5vw, 46px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.15;
  margin-bottom: 18px;
}
.doc-updated {
  display: inline-block;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 13px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-mute);
}

.doc-body {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.75;
}
.doc-body h2 {
  font-size: 23px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.025em;
  line-height: 1.25;
  margin: 46px 0 16px;
}
.doc-body h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.015em;
  margin: 30px 0 10px;
}
.doc-body p { margin-bottom: 16px; }
.doc-body ul { margin: 0 0 18px 22px; }
.doc-body li { margin-bottom: 8px; }
.doc-body strong { color: var(--ink); font-weight: 600; }
.doc-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2px 6px;
}
.doc-body a { color: var(--p1); font-weight: 500; }
.doc-body a:hover { text-decoration: underline; }
.doc-body hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 40px 0;
}
.doc-body address {
  font-style: normal;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-bottom: 16px;
  line-height: 1.7;
}

/* Callout for the key action on a page */
.doc-note {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--p1);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin: 0 0 20px;
}
.doc-note p:last-child { margin-bottom: 0; }

/* ===== FOOTER ===== */
footer {
  background: var(--bg-dark);
  color: white;
  padding: 60px 0 24px;
}
.footer-legal {
  color: #8b8b9c;
  font-size: 12px;
  line-height: 1.6;
  margin-top: 14px;
  max-width: 300px;
  font-style: normal;
}
.footer-legal a { color: #8b8b9c; transition: color 0.2s; }
.footer-legal a:hover { color: white; }
footer .logo { color: white; }
footer .logo-zuqah {
  background: linear-gradient(135deg, #c084fc 0%, #60a5fa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 28px;
}
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
.footer-col h5 {
  font-size: 13px;
  font-weight: 700;
  color: white;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col a {
  color: #a1a1b3;
  font-size: 14px;
  transition: color 0.2s;
}
.footer-col a:hover { color: white; }
.footer-bottom {
  padding-top: 18px;
  border-top: 1px solid #1c1c28;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  color: #71717a;
  font-size: 13px;
}

@media (max-width: 600px) {
  .nav-inner { padding: 12px 16px; gap: 10px; }
  .logo { font-size: 16px; min-width: 0; }
  .nav-back { font-size: 12px; }
  .doc-wrap { padding: 30px 20px 52px; }
  .doc-head { margin-bottom: 28px; }
  .eyebrow { font-size: 10.5px; margin-bottom: 12px; }
  h1 { font-size: 26px; margin-bottom: 14px; }
  .doc-updated { font-size: 11.5px; padding: 5px 11px; }
  .doc-body { font-size: 15px; line-height: 1.7; }
  .doc-body h2 { font-size: 18px; margin: 30px 0 10px; }
  .doc-body h3 { font-size: 15.5px; margin: 22px 0 8px; }
  .doc-body p { margin-bottom: 13px; }
  .doc-body ul { margin-left: 18px; margin-bottom: 14px; }
  .doc-body hr { margin: 28px 0; }
  .doc-body address, .doc-note { padding: 14px 16px; }
  footer { padding: 44px 0 18px; }
  .footer-legal { font-size: 11.5px; margin-top: 10px; }
  /* Brand spans the row. Products + Company share a row (short labels);
     Legal takes the full width because its labels are long. */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 22px 14px;
    margin-bottom: 22px;
  }
  .footer-brand { grid-column: 1 / -1; margin-bottom: 2px; }
  .footer-col:last-child { grid-column: 1 / -1; }
  .footer-col:last-child ul {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px 20px;
  }
  .footer-col h5 { font-size: 10px; margin-bottom: 9px; letter-spacing: 0.06em; }
  .footer-col ul { gap: 8px; }
  .footer-col a { font-size: 12.5px; white-space: nowrap; }
  .footer-bottom {
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    gap: 10px;
    font-size: 9.5px;
    padding-top: 18px;
    line-height: 1.4;
  }
  .footer-bottom > div { white-space: nowrap; }
}

@media (max-width: 359px) {
  .footer-bottom { font-size: 8.5px; gap: 6px; }
}
