:root {
  --primary-navy: #2E3192;
  --primary-orange: #F15A24;
  --primary-cyan: #00AEEF;
  --primary-purple: #673AB7;
  --heading: #2E3192;
  --accent: #673AB7;
  --bg: #f4f6fc;
  --bg-gradient: linear-gradient(135deg, #f8faff 0%, #edf2f7 100%);
  --surface: #ffffff;
  --surface-alt: #f1f5f9;
  --navbar-bg: rgba(255, 255, 255, 0.95);
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-faint: #64748b;
  --border-color: #e2e8f0;
  --chip-bg: #eff6ff;
  --chip-border: #bfdbfe;
  --chip-text: #1e3a8a;
  --note-bg: #fef3c7;
  --note-text: #92400e;
  --ok: #047857;
  --btn-dark-bg: #0f172a;
  --btn-dark-text: #ffffff;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -1px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -2px rgba(0,0,0,0.04);
  --radius: 12px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --heading: #8fb2ff;
    --accent: #b9a2f2;
    --bg: #0b1020;
    --bg-gradient: linear-gradient(135deg, #0b1020 0%, #111830 100%);
    --surface: #141b34;
    --surface-alt: #1b2442;
    --navbar-bg: rgba(11, 16, 32, 0.92);
    --text-main: #e8ecf8;
    --text-muted: #b3bcd6;
    --text-faint: #96a1c2;
    --border-color: #27325a;
    --chip-bg: #1b2a52;
    --chip-border: #2f447f;
    --chip-text: #cfdcff;
    --note-bg: #3a2a12;
    --note-text: #fcd9a6;
    --ok: #34d399;
    --btn-dark-bg: #e8ecf8;
    --btn-dark-text: #0b1020;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.5);
    --shadow-md: 0 4px 8px rgba(0,0,0,0.5);
    --shadow-lg: 0 10px 20px rgba(0,0,0,0.5);
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  color: var(--text-main);
  background-color: var(--bg);
  background-image: var(--bg-gradient);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
  overflow-wrap: break-word;
}

img {
  max-width: 100%;
  height: auto;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--primary-cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--surface);
  color: var(--heading);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  z-index: 100;
  font-weight: 600;
}

.skip-link:focus {
  top: 0.5rem;
}

/* Header */
.navbar {
  background: var(--navbar-bg);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 0.75rem 1.5rem;
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--heading);
  letter-spacing: -0.5px;
}

.brand-logo img {
  border-radius: 8px;
}

.brand-name span {
  color: var(--primary-orange);
}

.nav-links {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  flex-wrap: wrap;
}

.nav-link {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav-link:hover, .nav-link.active {
  color: var(--heading);
}

.nav-toggle {
  display: none;
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  width: 44px;
  height: 44px;
  cursor: pointer;
}

.nav-toggle svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--primary-navy) 0%, var(--primary-purple) 100%);
  color: #ffffff;
  padding: 0.6rem 1.25rem;
  border-radius: 9999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 4px 12px rgba(46, 49, 146, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(46, 49, 146, 0.35);
}

@media (max-width: 820px) {
  .js .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .js .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    padding-top: 0.5rem;
  }
  .js .nav-links.open {
    display: flex;
  }
  .js .nav-links .nav-link {
    padding: 0.6rem 0;
    width: 100%;
  }
  .js .nav-links .btn-primary {
    margin: 0.25rem 0 0.5rem;
  }
}

/* Main Content Layout */
.main-wrapper {
  flex: 1;
  max-width: 900px;
  width: 100%;
  margin: 2.5rem auto;
  padding: 0 1.5rem;
}

/* Document Cards */
.legal-card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  padding: 2.5rem 3rem;
  box-shadow: var(--shadow-lg);
}

@media (max-width: 640px) {
  .legal-card {
    padding: 1.5rem 1.25rem;
  }
}

.doc-header {
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
}

.doc-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--chip-bg);
  color: var(--chip-text);
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
}

.doc-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--heading);
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.doc-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.legal-section {
  margin-bottom: 2rem;
}

.legal-section h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.legal-section h3 {
  font-size: 1.05rem;
  color: var(--accent);
  margin: 1rem 0 0.5rem;
}

.legal-section p {
  color: var(--text-main);
  margin-bottom: 0.85rem;
  text-align: justify;
}

.legal-section ul, .legal-section ol {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.legal-section li {
  margin-bottom: 0.5rem;
}

.legal-section a, .legal-link {
  color: var(--heading);
  font-weight: 600;
}

.alert-box {
  background: var(--note-bg);
  border-left: 4px solid var(--primary-orange);
  padding: 1rem 1.25rem;
  border-radius: 8px;
  margin: 1.25rem 0;
  font-size: 0.95rem;
  color: var(--note-text);
}

.panel-box {
  background: var(--surface-alt);
  border-radius: 8px;
  padding: 1.25rem;
  margin: 1rem 0;
}

.panel-box h4 {
  color: var(--heading);
  margin-bottom: 0.5rem;
}

.panel-box ol {
  margin-left: 1.25rem;
  margin-bottom: 0;
}

.panel-box li {
  margin-bottom: 0.5rem;
}

.contact-highlight {
  background: var(--chip-bg);
  border: 1px solid var(--chip-border);
  border-radius: 8px;
  padding: 1rem 1.5rem;
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.contact-email {
  font-weight: 700;
  color: var(--heading);
}

/* Footer */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border-color);
  padding: 2rem 1.5rem;
  text-align: center;
  margin-top: auto;
}

.footer-content {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-align: left;
}

.footer-brand img {
  border-radius: 8px;
}

.footer-brand strong {
  display: block;
  color: var(--heading);
  font-size: 1.1rem;
  line-height: 1.2;
}

.footer-brand span {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 0.5rem 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--heading);
  text-decoration: underline;
}

.footer-copy {
  color: var(--text-faint);
  font-size: 0.85rem;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}
