@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&family=DM+Mono:wght@400;500&display=swap');

:root {
  --bg:           #060b06;
  --bg-2:         #0d160d;
  --bg-3:         #131f13;
  --bg-card:      #0f1a0f;
  --bg-elevated:  #172417;
  --border:       #1f3320;
  --border-2:     #2e5030;
  --border-focus: #4ade80;
  --green:        #4ade80;
  --green-dim:    #34c265;
  --green-muted:  #2a9e52;
  --green-glow:   rgba(74, 222, 128, 0.18);
  --green-soft:   rgba(74, 222, 128, 0.08);
  --gold:         #f59e0b;
  --cyan:         #06b6d4;
  --text:         #e2f0e2;
  --text-2:       #9dbe9d;
  --text-3:       #5e7e5e;
  --text-inv:     #060b06;
  --danger:       #f87171;
  --sans:   'DM Sans', system-ui, -apple-system, sans-serif;
  --mono:   'DM Mono', 'Courier New', monospace;
  --pixel:  'Press Start 2P', cursive;
  --radius:    6px;
  --radius-lg: 12px;
  --radius-xl: 18px;
  --dur-fast:  0.15s;
  --dur-base:  0.22s;
  --dur-slow:  0.4s;
  --ease:      cubic-bezier(0.22, 1, 0.36, 1);
  --transition: all var(--dur-base) var(--ease);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.pixel {
  font-family: var(--pixel);
  letter-spacing: 0.05em;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

.skip-link {
  position: absolute;
  top: -50px;
  left: 0;
  background: var(--green);
  color: var(--bg);
  padding: 8px 16px;
  font-weight: 700;
  text-decoration: none;
  z-index: 999;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 0;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(6, 11, 6, 0.9);
  backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--border);
}
.nav-container {
  display: flex; align-items: center;
  justify-content: space-between;
  height: 68px; gap: 1rem;
}
.logo {
  display: flex; align-items: center; gap: 0.7rem;
  text-decoration: none; flex-shrink: 0;
  transition: var(--transition);
}
.logo-icon-svg {
  width: 34px; height: 34px; flex-shrink: 0;
  border-radius: 8px; border: 1px solid var(--border-2);
}
.logo-text {
  font-family: var(--pixel); font-size: 0.65rem;
  color: var(--green); letter-spacing: 0.1em;
  text-shadow: 0 0 16px rgba(74, 222, 128, 0.55);
  transition: color var(--dur-base) var(--ease);
}
.logo:hover .logo-text { color: #b9f5d0; }
.main-nav ul { display: flex; gap: 1.5rem; list-style: none; align-items: center; }
.main-nav a {
  font-family: var(--sans); font-size: 0.875rem;
  font-weight: 500; color: var(--text-2);
  text-decoration: none; letter-spacing: 0.01em;
  transition: color var(--dur-base) var(--ease);
  position: relative; padding-bottom: 2px;
}
.main-nav a::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--green); border-radius: 1px;
  transition: width var(--dur-base) var(--ease);
}
.main-nav a:hover        { color: var(--text); }
.main-nav a:hover::after { width: 100%; }
.main-nav a.active       { color: var(--green); }
.main-nav a.active::after { width: 100%; }
.nav-cta {
  background: var(--green-soft) !important;
  border: 1px solid var(--border-2) !important;
  border-radius: 999px !important;
  padding: 0.42rem 1.1rem !important;
  color: var(--green) !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
}
.nav-cta:hover {
  background: rgba(74, 222, 128, 0.14) !important;
  border-color: var(--green-muted) !important;
  color: #b9f5d0 !important;
}
.nav-cta::after { display: none !important; }
.mobile-menu-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 1px solid transparent; cursor: pointer;
  padding: 0.5rem; border-radius: var(--radius);
  transition: border-color var(--dur-base) var(--ease);
}
.mobile-menu-toggle:hover { border-color: var(--border-2); }
.burger-line {
  display: block; width: 22px; height: 2px;
  background: var(--text-2); border-radius: 2px;
  transition: var(--transition);
}

/* Page hero */
.page-hero {
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  padding: 3.5rem 0 2.5rem;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.65rem;
  color: var(--text-3);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.breadcrumb a {
  color: var(--text-3);
  text-decoration: none;
  transition: color 0.2s;
}
.breadcrumb a:hover {
  color: var(--green);
}
.breadcrumb-sep {
  color: var(--text-3);
}
.page-tag {
  display: inline-block;
  font-family: var(--pixel);
  font-size: 0.48rem;
  color: var(--green);
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.3);
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  letter-spacing: 0.08em;
}
.page-title {
  font-family: var(--pixel);
  font-size: clamp(0.7rem, 2.5vw, 1.1rem);
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}
.page-sub {
  font-size: 0.8rem;
  color: var(--text-2);
  max-width: 560px;
}
.page-meta {
  font-size: 0.65rem;
  color: var(--text-3);
  margin-top: 0.75rem;
}

/* Content layout */
.content-wrap {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 3rem;
  padding: 3rem 0 5rem;
  align-items: start;
}

/* Sticky TOC */
.toc {
  position: sticky;
  top: 84px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}
.toc-title {
  font-family: var(--pixel);
  font-size: 0.48rem;
  color: var(--text-3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}
.toc ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.toc a {
  display: block;
  font-size: 0.67rem;
  color: var(--text-3);
  text-decoration: none;
  padding: 0.35rem 0.5rem;
  border-radius: var(--radius);
  transition: all 0.18s;
  border-left: 2px solid transparent;
}
.toc a:hover {
  color: var(--green);
  background: rgba(74, 222, 128, 0.06);
  border-left-color: var(--green);
}

/* Article */
.article {
  min-width: 0;
}
.policy-section {
  margin-bottom: 3rem;
  scroll-margin-top: 88px;
}
.policy-section + .policy-section {
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}
.section-label {
  display: inline-block;
  font-family: var(--pixel);
  font-size: 0.42rem;
  color: var(--text-3);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}
.section-heading {
  font-family: var(--pixel);
  font-size: clamp(0.52rem, 1.5vw, 0.7rem);
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}
.article p {
  font-size: 0.78rem;
  color: var(--text-2);
  margin-bottom: 1rem;
}
.article ul,
.article ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}
.article li {
  font-size: 0.78rem;
  color: var(--text-2);
  margin-bottom: 0.5rem;
}
.article a {
  color: var(--green);
  text-decoration: none;
  border-bottom: 1px solid rgba(74, 222, 128, 0.3);
  transition: border-color 0.2s;
}
.article a:hover {
  border-bottom-color: var(--green);
}
.info-box {
  background: rgba(34, 211, 238, 0.06);
  border: 1px solid rgba(34, 211, 238, 0.2);
  border-left: 3px solid var(--cyan);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}
.info-box p {
  color: var(--text-2);
  font-size: 0.75rem;
  margin: 0;
}
.info-box strong {
  color: var(--cyan);
  font-size: 0.68rem;
}
.warn-box {
  background: rgba(251, 191, 36, 0.06);
  border: 1px solid rgba(251, 191, 36, 0.2);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}
.warn-box p {
  color: var(--text-2);
  font-size: 0.75rem;
  margin: 0;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.73rem;
}
.data-table th {
  text-align: left;
  font-family: var(--pixel);
  font-size: 0.44rem;
  color: var(--text-3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.65rem 0.85rem;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border-2);
}
.data-table td {
  padding: 0.75rem 0.85rem;
  color: var(--text-2);
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.data-table td:first-child {
  color: var(--text);
  font-weight: 700;
}
.data-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}
.contact-card {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  padding: 1rem 1.5rem;
  margin-top: 1rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.22s;
}
.contact-card:hover {
  border-color: var(--green);
  background: rgba(74, 222, 128, 0.04);
}
.contact-card span {
  font-size: 0.75rem;
  color: var(--text-2);
}
.contact-card strong {
  display: block;
  font-size: 0.7rem;
  color: var(--green);
  margin-top: 0.1rem;
}

/* Footer */
.site-footer {
  margin-top: auto;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
}
.footer-inner-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr;
  gap: 3rem;
  padding: 3.5rem 0 3rem;
}
.footer-brand { display: flex; flex-direction: column; gap: 1rem; }
.footer-logo {
  font-family: var(--pixel); font-size: 0.7rem;
  color: var(--green); letter-spacing: 0.1em;
  text-shadow: 0 0 12px rgba(74,222,128,0.4);
}
.footer-brand p {
  font-size: 0.85rem; color: var(--text-3);
  line-height: 1.7; max-width: 280px;
}
.footer-col h4 {
  font-family: var(--pixel); font-size: 0.5rem;
  color: var(--text-2); letter-spacing: 0.12em;
  text-transform: uppercase; margin-bottom: 1rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; }
.footer-col li { margin-bottom: 0; }
.footer-col a {
  font-size: 0.85rem; color: var(--text-3);
  text-decoration: none; transition: color var(--dur-base) var(--ease);
}
.footer-col a:hover { color: var(--green); }
.footer-bottom-bar {
  border-top: 1px solid var(--border);
  padding: 1rem 0;
  background: rgba(6,11,6,0.6);
}
.footer-bottom-inner {
  display: flex; align-items: center;
  justify-content: space-between; gap: 1rem;
}
.footer-bottom-inner small { font-size: 0.78rem; color: var(--text-3); }

/* Mobile */
@media (max-width: 768px) {
  .mobile-menu-toggle { display: flex; }
  .main-nav {
    position: fixed; top: 68px; left: 0; right: 0;
    background: rgba(6, 11, 6, 0.98); backdrop-filter: blur(20px);
    padding: 1.5rem; visibility: hidden; opacity: 0; pointer-events: none;
    transition: opacity var(--dur-base) var(--ease), visibility var(--dur-base) var(--ease);
    border-bottom: 1px solid var(--border); z-index: 199;
  }
  .main-nav.open { visibility: visible; opacity: 1; pointer-events: auto; }
  .main-nav ul { flex-direction: column; gap: 1.2rem; align-items: stretch; }
  .main-nav a { display: block; text-align: center; padding: 0.5rem 0; }
  .nav-cta { text-align: center; }
  .content-wrap { grid-template-columns: 1fr; gap: 2rem; }
  .toc { position: static; }
  .footer-inner-grid { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
  .footer-brand { align-items: center; }
  .footer-brand p { max-width: 100%; }
  .footer-col ul { align-items: center; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }
}
/* Prevent body scroll when mobile menu is open */
body.menu-open { overflow: hidden; }

/* ═══════════════════════════════════════════════════
   MOBILE OVERFLOW — FINAL GUARD
═══════════════════════════════════════════════════ */
@media (max-width: 768px) {
  html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
  }
  .container {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  img, video, iframe, canvas {
    max-width: 100% !important;
  }
}
