/* ============================================================
   PRIVACY POLICY — privacy.css
   ACE Adaptive City Ecosystems
   Covers: ace-nav, mobile menu, hero, layout, sidebar,
           content, footer — fully responsive + hamburger
   ============================================================ */

/* ── RESET / BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --lime:       #84cc16;
  --lime-dim:   #65a30d;
  --dark:       #0d1117;
  --dark2:      #111827;
  --dark3:      #1f2937;
  --border:     #1f2937;
  --text:       #e5e7eb;
  --muted:      #9ca3af;
  --white:      #ffffff;
  --nav-h:      64px;
  --radius:     12px;
  --transition: 0.25s ease;
}

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 20px); }

body {
  background: var(--dark);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: var(--lime); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--lime-dim); }

/* ============================================================
   NAV — ace-nav classes
   ============================================================ */
.ace-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(13, 17, 23, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.ace-nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  height: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}

/* Logo */
.ace-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.ace-logo img { height: 32px; width: auto; display: block; }
.ace-logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.ace-logo-mark {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--lime);
}
.ace-logo-sub {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Desktop nav links */
.ace-nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.ace-nav-links a {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 6px 12px;
  border-radius: 6px;
  transition: color var(--transition), background var(--transition);
}
.ace-nav-links a:hover,
.ace-nav-links a.active {
  color: var(--white);
  background: var(--dark3);
}

/* Desktop CTA group */
.ace-nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.ace-nav-tel {
  font-size: 13px;
  font-weight: 600;
  color: var(--lime);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.ace-nav-tel:hover { color: var(--lime-dim); }
.ace-nav-btn {
  padding: 8px 20px;
  background: var(--lime);
  color: #000;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: 6px;
  transition: background var(--transition), transform var(--transition);
  white-space: nowrap;
}
.ace-nav-btn:hover { background: var(--lime-dim); color: #000; transform: translateY(-1px); }

/* ── HAMBURGER (ace-nav-toggle) ── */
.ace-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  margin-left: auto;
  flex-shrink: 0;
  transition: background var(--transition);
}
.ace-nav-toggle:hover { background: var(--dark3); }
.ace-nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
  transform-origin: center;
}
/* X state — toggled via JS adding .open */
.ace-nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ace-nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.ace-nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MOBILE MENU (ace-nav-mobile) ── */
.ace-nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-h);
  right: 0;
  width: min(320px, 85vw);
  height: calc(100dvh - var(--nav-h));
  background: var(--dark2);
  border-left: 1px solid var(--border);
  flex-direction: column;
  padding: 20px 0;
  z-index: 999;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}
.ace-nav-mobile.open { transform: translateX(0); }

.ace-nav-mobile a {
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  padding: 14px 28px;
  border-bottom: 1px solid var(--border);
  transition: color var(--transition), background var(--transition);
  display: block;
}
.ace-nav-mobile a:hover,
.ace-nav-mobile a.active {
  color: var(--lime);
  background: rgba(132, 204, 22, 0.05);
}

/* Overlay — reuse same ID pattern */
.ace-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(2px);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.ace-nav-overlay.open { opacity: 1; }

/* ============================================================
   HERO (bg-black section)
   The HTML uses Tailwind classes on the section/h1.
   We override / extend here so it looks great without Tailwind.
   ============================================================ */
section.py-20 {
  padding: 80px 24px 72px;
  text-align: center;
  background: #000;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
section.py-20::before {
  content: '';
  position: absolute;
  top: -100px; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(132,204,22,0.07) 0%, transparent 70%);
  pointer-events: none;
}

section.py-20 h1 {
  font-size: clamp(36px, 7vw, 64px);
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 20px;
  position: relative;
}
.text-green-500 { color: var(--lime); }

section.py-20 p {
  font-size: clamp(14px, 2vw, 17px);
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.75;
  position: relative;
}

/* ============================================================
   MAIN LAYOUT — flex row (max-7xl px-6 py-16)
   ============================================================ */
.max-w-7xl {
  max-width: 1200px;
  margin: 0 auto;
}
.px-6   { padding-left: 24px; padding-right: 24px; }
.py-16  { padding-top: 64px; padding-bottom: 64px; }
.flex   { display: flex; }
.gap-12 { gap: 48px; }
.flex-1 { flex: 1; min-width: 0; }
.space-y-12 > * + * { margin-top: 48px; }

/* ── SIDEBAR ── */
aside.w-64 {
  width: 240px;
  flex-shrink: 0;
  background: var(--dark2);
  padding: 24px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--lime);  /* matches border-green-500 */
  position: sticky;
  top: calc(var(--nav-h) + 20px);
  height: fit-content;
  align-self: flex-start;
}

aside h3 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 14px;
}

aside nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
aside nav a {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 6px;
  border-left: 2px solid transparent;
  transition: color var(--transition), background var(--transition), border-color var(--transition);
}
aside nav a:hover {
  color: var(--lime);
  background: rgba(132,204,22,0.07);
  border-left-color: var(--lime);
}

/* ── PRIVACY CONTENT sections ── */
.flex-1 section {
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}
.flex-1 section:last-child { border-bottom: none; padding-bottom: 0; }

.flex-1 h2 {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 700;
  color: var(--lime);
  margin-bottom: 16px;
  line-height: 1.2;
}

.flex-1 p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 12px;
}
.flex-1 p:last-child { margin-bottom: 0; }

.flex-1 ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.flex-1 ul li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
}
.flex-1 ul li::before {
  content: '';
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  margin-top: 8px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.ace-footer {
  background: var(--dark2);
  border-top: 1px solid var(--border);
  padding: 64px 24px 32px;
}

.ace-footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}

.ace-footer-logo-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.ace-footer-logo-row img { height: 32px; }
.ace-footer-logo-mark {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--lime);
}
.ace-footer-logo-sub {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

.ace-footer-tagline {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 20px;
  max-width: 300px;
}

.ace-footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ace-footer-contact a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  transition: color var(--transition);
}
.ace-footer-contact a:hover { color: var(--lime); }

.ace-footer-col-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 16px;
}

.ace-footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ace-footer-links a {
  font-size: 13px;
  color: var(--muted);
  transition: color var(--transition);
}
.ace-footer-links a:hover { color: var(--lime); }

.ace-footer-bottom {
  max-width: 1280px;
  margin: 28px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.ace-footer-copy { font-size: 12px; color: var(--muted); }

.ace-footer-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.ace-footer-pill {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--muted);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet: ≤ 1024px */
@media (max-width: 1024px) {
  .ace-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .ace-footer-brand { grid-column: 1 / -1; }

  aside.w-64 { width: 200px; }
  .gap-12 { gap: 28px; }
}

/* Phablet: ≤ 768px */
@media (max-width: 768px) {
  /* Show burger, hide desktop links + CTA */
  .ace-nav-links,
  .ace-nav-cta { display: none; }
  .ace-nav-toggle { display: flex; }
  .ace-nav-mobile { display: flex; }
  .ace-nav-overlay { display: block; }

  /* Collapse to single column */
  .max-w-7xl.flex.gap-12 {
    flex-direction: column;
    padding: 32px 16px 64px;
    gap: 0;
  }

  /* Sidebar → horizontal pill strip */
  aside.w-64 {
    width: 100%;
    position: static;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 32px;
  }
  aside nav {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 6px;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  aside nav::-webkit-scrollbar { display: none; }
  aside nav a {
    white-space: nowrap;
    border-left: none;
    border-bottom: 2px solid transparent;
    border-radius: 6px;
    font-size: 12px;
    padding: 6px 12px;
  }
  aside nav a:hover { border-bottom-color: var(--lime); }

  /* Hero */
  section.py-20 { padding: 60px 20px 52px; }

  /* Footer */
  .ace-footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .ace-footer-brand { grid-column: auto; }
  .ace-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Phone: ≤ 480px */
@media (max-width: 480px) {
  section.py-20 h1 { font-size: 30px; }
  .flex-1 h2 { font-size: 20px; }
  .ace-nav-inner { padding: 0 16px; }
  .ace-footer-bottom { gap: 12px; }
}
