@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* =====================
   VARIABLES & RESET
   ===================== */
:root {
  --navy: #1a2b4a;
  --navy-dark: #0f1c32;
  --navy-light: #243460;
  --blue: #2563eb;
  --blue-light: #3b82f6;
  --blue-pale: #eff6ff;
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --amber-bg: #fffbeb;
  --amber-border: #f59e0b;
  --amber-dark: #92400e;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,.10), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);
  --transition: 0.2s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.65;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }

/* =====================
   LAYOUT HELPERS
   ===================== */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
.section {
  padding: 3.5rem 0;
}
.section-alt {
  background: var(--gray-50);
}

/* =====================
   WARNING BANNER
   ===================== */
.warning-banner {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--amber-bg);
  border-bottom: 2px solid var(--amber-border);
  padding: 0.6rem 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}
.warning-banner .w-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 0.05rem;
}
.warning-banner p {
  font-size: 0.8rem;
  color: var(--amber-dark);
  line-height: 1.45;
  font-weight: 500;
}
@media (min-width: 640px) {
  .warning-banner p { font-size: 0.85rem; }
}

/* =====================
   NAVIGATION
   ===================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: var(--navy);
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}

/* Re-calculate sticky position after banner; JS will update if needed */
.site-header { top: 0; }

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
  gap: 1rem;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--white);
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-brand:hover { text-decoration: none; opacity: 0.9; }
.nav-brand svg { width: 22px; height: 22px; flex-shrink: 0; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  flex-wrap: wrap;
}
.nav-links li a {
  color: rgba(255,255,255,0.85);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.45rem 0.65rem;
  border-radius: var(--radius);
  display: block;
  transition: background var(--transition), color var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.nav-links li a:hover,
.nav-links li a.active {
  background: rgba(255,255,255,0.12);
  color: var(--white);
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  border-radius: var(--radius);
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}
.hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 820px) {
  .hamburger { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy-dark);
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1rem 1rem;
    gap: 0.1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,.3);
  }
  .nav-links.open { display: flex; }
  .nav-links li a { padding: 0.65rem 0.75rem; font-size: 0.95rem; }
  .site-header { position: relative; }
}

/* =====================
   FOOTER
   ===================== */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.7);
  padding: 2.5rem 0 2rem;
  margin-top: auto;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 1.25rem;
}
.footer-links a {
  color: rgba(255,255,255,0.7);
  font-size: 0.875rem;
  transition: color var(--transition);
  text-decoration: none;
}
.footer-links a:hover { color: var(--white); text-decoration: underline; }
.footer-tagline {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  max-width: 560px;
  line-height: 1.5;
}
.footer-copy {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
}

/* =====================
   PAGE WRAPPER
   ===================== */
.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.main-content {
  flex: 1;
}

/* =====================
   HERO
   ===================== */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  padding: 4.5rem 0 5rem;
  text-align: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50px;
  padding: 0.3rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}
.hero h1 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.25;
  max-width: 700px;
  margin: 0 auto 1.25rem;
}
.hero p {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(255,255,255,0.8);
  max-width: 580px;
  margin: 0 auto 2rem;
}
.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* =====================
   BUTTONS
   ===================== */
.btn {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1;
}
.btn-primary {
  background: var(--white);
  color: var(--navy);
}
.btn-primary:hover {
  background: var(--gray-100);
  text-decoration: none;
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.5);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.8);
  text-decoration: none;
}

/* =====================
   CARDS GRID
   ===================== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}
.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--blue-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.card-icon svg {
  width: 22px;
  height: 22px;
  color: var(--blue);
  stroke: var(--blue);
}
.card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.45rem;
}
.card p {
  font-size: 0.875rem;
  color: var(--gray-600);
  line-height: 1.55;
}
.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.card-link:hover { text-decoration: none; }
.card-link .card { cursor: pointer; }
.card-link-text {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--blue);
  margin-top: 0.9rem;
}

/* =====================
   PAGE HEADER
   ===================== */
.page-header {
  background: var(--navy);
  color: var(--white);
  padding: 3rem 0 3.5rem;
}
.page-header h1 {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 0.6rem;
}
.page-header p {
  font-size: 1rem;
  color: rgba(255,255,255,0.75);
  max-width: 600px;
}

/* =====================
   BREADCRUMB
   ===================== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 1rem;
}
.breadcrumb a { color: rgba(255,255,255,0.65); text-decoration: none; }
.breadcrumb a:hover { color: rgba(255,255,255,0.9); }
.breadcrumb span { color: rgba(255,255,255,0.4); }

/* =====================
   DOCUMENT SECTIONS
   ===================== */
.doc-section {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
}
.doc-section-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.4rem 1.5rem;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
}
.doc-section-icon {
  width: 42px;
  height: 42px;
  background: var(--blue-pale);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.doc-section-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--blue);
}
.doc-section-header h2 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy);
}
.doc-section-body {
  padding: 1.5rem;
  display: grid;
  gap: 1rem;
}
@media (min-width: 640px) {
  .doc-section-body { grid-template-columns: 1fr 1fr; }
}
.doc-field label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 0.25rem;
}
.doc-field p {
  font-size: 0.9rem;
  color: var(--gray-700);
  line-height: 1.55;
}
.doc-field ul {
  list-style: disc;
  padding-left: 1.1rem;
  font-size: 0.9rem;
  color: var(--gray-700);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

/* =====================
   INFO BOXES
   ===================== */
.info-box {
  background: var(--blue-pale);
  border-left: 4px solid var(--blue);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}
.info-box p {
  font-size: 0.9rem;
  color: var(--navy);
  line-height: 1.55;
}
.info-box strong { font-weight: 600; }

.tip-box {
  background: #f0fdf4;
  border-left: 4px solid #22c55e;
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}
.tip-box p { font-size: 0.9rem; color: #14532d; line-height: 1.55; }

/* =====================
   SECTION TITLE
   ===================== */
.section-title {
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.section-subtitle {
  font-size: 0.975rem;
  color: var(--gray-600);
  margin-bottom: 2rem;
  max-width: 600px;
}

/* =====================
   STEPS LIST
   ===================== */
.steps-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.step-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.step-number {
  width: 34px;
  height: 34px;
  background: var(--navy);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.15rem;
}
.step-content h3 {
  font-size: 0.975rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.25rem;
}
.step-content p {
  font-size: 0.875rem;
  color: var(--gray-600);
  line-height: 1.55;
}

/* =====================
   CHECKLIST
   ===================== */
.checklist {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--gray-700);
  line-height: 1.5;
}
.checklist li::before {
  content: '';
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
  margin-top: 0.2rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 11px;
  background-repeat: no-repeat;
  background-position: center;
}

/* =====================
   GLOSSARY
   ===================== */
.glossary-search {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--gray-800);
  background: var(--white);
  margin-bottom: 2rem;
  outline: none;
  transition: border-color var(--transition);
}
.glossary-search:focus { border-color: var(--blue); }

.glossary-letter-group { margin-bottom: 2rem; }
.glossary-letter {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--blue);
  border-bottom: 2px solid var(--gray-200);
  padding-bottom: 0.4rem;
  margin-bottom: 0.75rem;
}
.glossary-entry {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--gray-100);
}
.glossary-entry:last-child { border-bottom: none; }
.glossary-term {
  font-weight: 600;
  color: var(--navy);
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}
.glossary-def {
  font-size: 0.875rem;
  color: var(--gray-600);
  line-height: 1.55;
}

/* =====================
   FAQ / DETAILS
   ===================== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
details.faq-item {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
}
details.faq-item[open] {
  box-shadow: var(--shadow);
}
details.faq-item summary {
  padding: 1.1rem 1.25rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  user-select: none;
  transition: background var(--transition);
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after {
  content: '+';
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--gray-500);
  flex-shrink: 0;
  margin-left: 1rem;
  transition: transform var(--transition);
}
details.faq-item[open] summary::after {
  content: '−';
}
details.faq-item summary:hover { background: var(--gray-50); }
details.faq-item[open] summary { background: var(--gray-50); border-bottom: 1px solid var(--gray-200); }
.faq-answer {
  padding: 1rem 1.25rem 1.25rem;
  font-size: 0.9rem;
  color: var(--gray-700);
  line-height: 1.65;
}
.faq-answer p + p { margin-top: 0.6rem; }
.faq-answer ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

/* =====================
   TABLE
   ===================== */
.table-wrap { overflow-x: auto; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
th {
  background: var(--navy);
  color: var(--white);
  text-align: left;
  padding: 0.75rem 1rem;
  font-weight: 600;
}
td {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--gray-200);
  color: var(--gray-700);
  vertical-align: top;
}
tr:last-child td { border-bottom: none; }
tr:nth-child(even) td { background: var(--gray-50); }

/* =====================
   LEGAL PAGE
   ===================== */
.legal-content {
  max-width: 760px;
}
.legal-content h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  margin-top: 2.25rem;
  margin-bottom: 0.75rem;
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content p {
  font-size: 0.9rem;
  color: var(--gray-700);
  line-height: 1.7;
  margin-bottom: 0.6rem;
}
.legal-content ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin: 0.5rem 0 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.legal-content ul li {
  font-size: 0.9rem;
  color: var(--gray-700);
  line-height: 1.6;
}

/* =====================
   CONTACT
   ===================== */
.contact-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  max-width: 520px;
}
.contact-email {
  display: inline-block;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--blue);
  margin: 0.75rem 0;
  word-break: break-all;
}
.contact-card p {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.6;
}

/* =====================
   NOTICE SECTION
   ===================== */
.notice-section {
  background: var(--navy);
  color: var(--white);
  padding: 2.5rem 0;
  text-align: center;
}
.notice-section h2 { font-size: 1.2rem; font-weight: 600; margin-bottom: 0.6rem; }
.notice-section p { font-size: 0.9rem; color: rgba(255,255,255,0.75); max-width: 600px; margin: 0 auto; }

/* =====================
   ABOUT STATS
   ===================== */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}
.about-item {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
}
.about-item .a-icon { font-size: 1.8rem; margin-bottom: 0.5rem; }
.about-item h3 { font-size: 0.95rem; font-weight: 600; color: var(--navy); margin-bottom: 0.3rem; }
.about-item p { font-size: 0.8rem; color: var(--gray-600); line-height: 1.45; }

/* =====================
   RENEWAL TIMELINE
   ===================== */
.timeline {
  position: relative;
  padding-left: 2rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gray-200);
}
.timeline-item {
  position: relative;
  margin-bottom: 1.75rem;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -1.6rem;
  top: 0.4rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--blue);
  border: 2px solid var(--white);
  box-shadow: 0 0 0 2px var(--blue);
}
.timeline-item h3 {
  font-size: 0.975rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.3rem;
}
.timeline-item p {
  font-size: 0.875rem;
  color: var(--gray-600);
  line-height: 1.55;
}

/* =====================
   TWO-COL LAYOUT
   ===================== */
.two-col {
  display: grid;
  gap: 2rem;
}
@media (min-width: 768px) {
  .two-col { grid-template-columns: 1fr 1fr; }
  .two-col-wide { grid-template-columns: 2fr 1fr; }
}

/* =====================
   TAG BADGES
   ===================== */
.badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
  font-size: 0.73rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.badge-blue { background: var(--blue-pale); color: var(--blue); }
.badge-navy { background: rgba(26,43,74,0.08); color: var(--navy); }

/* =====================
   RESPONSIVE HELPERS
   ===================== */
@media (max-width: 640px) {
  .section { padding: 2.5rem 0; }
  .cards-grid { grid-template-columns: 1fr; }
  .hero { padding: 3rem 0 3.5rem; }
}
