/* ==========================================================================
   Car Parking - Privacy Policy & Legal Portal Stylesheet
   Modern, responsive, dark/light theme, accessible & mobile-optimized
   ========================================================================== */

:root {
  /* Color Palette - Dark Theme (Default) */
  --bg-primary: #0b0f19;
  --bg-secondary: #111827;
  --bg-card: rgba(17, 24, 39, 0.85);
  --bg-card-hover: rgba(31, 41, 55, 0.9);
  --bg-glass: rgba(17, 24, 39, 0.85);
  --border-color: #1f2937;
  --border-light: #374151;
  --border-highlight: #3b82f6;

  --text-primary: #f9fafb;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  --text-accent: #60a5fa;

  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --primary-glow: rgba(59, 130, 246, 0.35);
  --accent: #8b5cf6;
  --accent-glow: rgba(139, 92, 246, 0.3);
  --success: #10b981;
  --success-bg: rgba(16, 185, 129, 0.12);
  --warning: #f59e0b;
  --warning-bg: rgba(245, 158, 11, 0.12);
  --info: #06b6d4;
  --info-bg: rgba(6, 182, 212, 0.12);
  --danger-bg: rgba(239, 68, 68, 0.1);
  --danger-border: rgba(239, 68, 68, 0.25);
  --danger-text: #f87171;

  --sidebar-width: 290px;
  --header-height: 70px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 25px var(--primary-glow);

  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Outfit', 'Inter', sans-serif;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.95);
  --bg-card-hover: #f1f5f9;
  --bg-glass: rgba(255, 255, 255, 0.9);
  --border-color: #e2e8f0;
  --border-light: #cbd5e1;
  --border-highlight: #2563eb;

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-accent: #2563eb;

  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-glow: rgba(37, 99, 235, 0.2);
  --accent: #7c3aed;
  --accent-glow: rgba(124, 58, 237, 0.15);
  --success: #059669;
  --success-bg: rgba(5, 150, 105, 0.1);
  --warning: #d97706;
  --warning-bg: rgba(217, 119, 6, 0.1);
  --info: #0284c7;
  --info-bg: rgba(2, 132, 199, 0.1);
  --danger-bg: #fef2f2;
  --danger-border: #fee2e2;
  --danger-text: #b91c1c;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 36px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 0 25px var(--primary-glow);
}

/* Base Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Top Scroll Progress Bar */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6, #06b6d4);
  z-index: 1100;
  transition: width 0.1s linear;
}

/* ==========================================================================
   Site Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  height: var(--header-height);
  background: var(--bg-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: var(--transition);
}

.header-container {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
  flex-shrink: 0;
}

.brand-icon-wrapper {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  overflow: hidden;
  box-shadow: 0 4px 12px var(--primary-glow);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1e293b;
  flex-shrink: 0;
}

.brand-icon-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #60a5fa, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
}

.brand-subtitle {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 6px;
}

.nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
  background: var(--bg-secondary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.btn-icon {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.05rem;
  transition: var(--transition);
}

.btn-icon:hover {
  background: var(--border-color);
  color: var(--primary);
  transform: translateY(-1px);
}

.mobile-menu-btn {
  display: none;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  padding: 50px 20px 36px;
  text-align: center;
  background: radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.12) 0%, transparent 65%);
  border-bottom: 1px solid var(--border-color);
}

.hero-container {
  max-width: 860px;
  margin: 0 auto;
}

.app-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 18px;
}

.brand-icon-large {
  width: 90px;
  height: 90px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.06);
  padding: 3px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.15);
  margin-bottom: 16px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-icon-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 19px;
}

.hero-badge-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 12.5px;
  font-weight: 600;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.badge-playstore { background: rgba(59, 130, 246, 0.12); color: #60a5fa; border-color: rgba(59, 130, 246, 0.3); }
.badge-package { background: rgba(139, 92, 246, 0.12); color: #c084fc; border-color: rgba(139, 92, 246, 0.3); }
.badge-update { background: rgba(16, 185, 129, 0.12); color: #34d399; border-color: rgba(16, 185, 129, 0.3); }
.badge-rating { background: rgba(245, 158, 11, 0.12); color: #fbbf24; border-color: rgba(245, 158, 11, 0.3); }
.badge-date { background: rgba(6, 182, 212, 0.12); color: #22d3ee; border-color: rgba(6, 182, 212, 0.3); }

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 5vw, 38px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 10px;
  line-height: 1.25;
}

.hero-subtitle {
  font-size: clamp(14px, 2.5vw, 16.5px);
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ==========================================================================
   Main Layout & Content Area
   ========================================================================== */
.main-layout {
  max-width: 1360px;
  margin: 0 auto;
  padding: 36px 20px 70px;
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}

/* Sidebar Table of Contents */
.sidebar-wrapper {
  position: sticky;
  top: calc(var(--header-height) + 18px);
  max-height: calc(100vh - var(--header-height) - 36px);
  overflow-y: auto;
  padding-right: 4px;
}

.sidebar-wrapper::-webkit-scrollbar {
  width: 4px;
}
.sidebar-wrapper::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}

.toc-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}

.toc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}

.toc-title {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Search Box */
.search-box, .toc-search {
  position: relative;
  margin-bottom: 12px;
}

.search-box input, .toc-search input {
  width: 100%;
  padding: 9px 12px 9px 34px;
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 0.85rem;
  outline: none;
  transition: var(--transition);
}

.search-box input:focus, .toc-search input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-glow);
}

.search-icon, .toc-search svg {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  width: 15px;
  height: 15px;
  pointer-events: none;
}

.toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.toc-link {
  display: flex;
  align-items: center;
  padding: 7px 10px;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  border-left: 2px solid transparent;
  line-height: 1.4;
}

.toc-link:hover {
  color: var(--text-primary);
  background: var(--bg-secondary);
  padding-left: 14px;
}

.toc-link.active {
  color: var(--primary);
  background: rgba(59, 130, 246, 0.1);
  border-left-color: var(--primary);
  font-weight: 600;
}

.toc-actions {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  width: 100%;
}

.btn-action:hover {
  background: var(--border-color);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.btn-action.primary {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.btn-action.primary:hover {
  background: var(--primary-hover);
}

/* ==========================================================================
   Content Sections
   ========================================================================== */
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

/* Alert Boxes */
.alert-box {
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  border: 1px solid;
  line-height: 1.6;
}

.alert-info {
  background: rgba(59, 130, 246, 0.08);
  border-color: rgba(59, 130, 246, 0.25);
  color: var(--text-primary);
}

.alert-info .alert-icon { font-size: 1.4rem; line-height: 1; }

.alert-success {
  background: var(--success-bg);
  border-color: rgba(16, 185, 129, 0.3);
  color: var(--text-primary);
}

.alert-success .alert-icon { font-size: 1.4rem; line-height: 1; }

.alert-content {
  font-size: 14.5px;
  color: var(--text-secondary);
}

.alert-content strong {
  color: var(--text-primary);
}

.alert-content a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
}

/* Policy Card Section */
.policy-section {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.policy-section:hover {
  border-color: var(--border-light);
}

.policy-section.highlighted {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-glow);
}

.section-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-color);
}

.section-number {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--primary);
  background: rgba(59, 130, 246, 0.12);
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.subsection-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 22px 0 12px;
}

.section-body p {
  color: var(--text-secondary);
  font-size: 14.8px;
  margin-bottom: 14px;
}

.section-body p:last-child {
  margin-bottom: 0;
}

.section-body strong {
  color: var(--text-primary);
}

.section-body a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.section-body a:hover {
  text-decoration: underline;
}

/* Feature Lists */
.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 14px 0;
}

.feature-list li {
  position: relative;
  padding-left: 22px;
  color: var(--text-secondary);
  font-size: 14.5px;
}

.feature-list li::before {
  content: '•';
  position: absolute;
  left: 6px;
  top: -1px;
  color: var(--primary);
  font-size: 1.25rem;
}

.feature-list li strong {
  color: var(--text-primary);
}

/* ==========================================================================
   Grids & Cards
   ========================================================================== */
.grid-two {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 16px 0;
}

.grid-three {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 16px 0;
}

.card-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  transition: var(--transition);
}

.card-item strong {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
}

.card-item p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

.card-item.danger {
  background: var(--danger-bg);
  border-color: var(--danger-border);
}

.card-item.danger strong {
  color: var(--danger-text);
}

.card-item.info {
  background: rgba(59, 130, 246, 0.08);
  border-color: rgba(59, 130, 246, 0.2);
}

.card-item.info strong {
  color: var(--text-accent);
}

/* ==========================================================================
   Responsive Tables
   ========================================================================== */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 16px 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13.5px;
  min-width: 520px;
}

.data-table th {
  background: rgba(31, 41, 55, 0.7);
  padding: 12px 16px;
  font-weight: 700;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-color);
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

[data-theme="light"] .data-table th {
  background: #f1f5f9;
}

.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-secondary);
  vertical-align: top;
  line-height: 1.55;
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* Badge Pills */
.badge-pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
}

.badge-pill.blue   { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
.badge-pill.green  { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.badge-pill.amber  { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.badge-pill.purple { background: rgba(139, 92, 246, 0.15); color: #c084fc; }

/* ==========================================================================
   Permissions
   ========================================================================== */
.permission-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin-bottom: 12px;
}

.perm-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.perm-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  word-break: break-all;
}

.perm-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.55;
}

/* ==========================================================================
   Accordion FAQ
   ========================================================================== */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 16px 0;
}

.faq-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item.active {
  border-color: var(--border-highlight);
}

.faq-question {
  width: 100%;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  gap: 16px;
  font-family: inherit;
  min-height: 48px;
}

.faq-icon {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  color: var(--primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  padding: 0 20px;
}

.faq-answer p {
  padding-bottom: 16px;
  color: var(--text-secondary);
  font-size: 14.5px;
  line-height: 1.6;
  margin: 0;
}

/* ==========================================================================
   Contact Developer Card
   ========================================================================== */
.contact-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 22px;
  margin-top: 16px;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 14.5px;
  color: var(--text-secondary);
}

.contact-detail strong {
  min-width: 140px;
  color: var(--text-primary);
  flex-shrink: 0;
}

.contact-detail code {
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 6px;
  border-radius: 4px;
}

.contact-detail a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  word-break: break-all;
}

.contact-detail a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Site Footer Styles
   ========================================================================== */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 40px 20px 30px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13.5px;
  margin-top: 40px;
  width: 100%;
}

.footer-container {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.footer-logo {
  width: 38px;
  height: 38px;
  max-width: 38px;
  max-height: 38px;
  border-radius: 9px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  display: block;
  flex-shrink: 0;
}

.footer-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.footer-copy {
  color: var(--text-secondary);
  font-size: 13.5px;
  margin: 2px 0;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 13px;
}

.footer-links a {
  color: var(--text-accent);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
  word-break: break-all;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: calc(100vw - 40px);
}

.toast {
  background: var(--bg-card);
  border: 1px solid var(--border-highlight);
  color: var(--text-primary);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 500;
  backdrop-filter: blur(8px);
}

/* ==========================================================================
   Mobile & Responsive Media Queries
   ========================================================================== */
@media (max-width: 1024px) {
  .main-layout {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 28px 18px 60px;
  }

  .sidebar-wrapper {
    position: static;
    max-height: none;
    padding-right: 0;
  }

  .toc-card {
    margin-bottom: 16px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }

  /* Header Mobile Menu */
  .header-container {
    padding: 0 16px;
  }

  .header-nav {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
    padding: 16px 20px 24px;
    flex-direction: column;
    z-index: 999;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }

  .header-nav.active {
    display: flex !important;
  }

  .header-nav .nav-links {
    flex-direction: column;
    width: 100%;
    gap: 4px;
  }

  .header-nav .nav-link {
    width: 100%;
    padding: 12px 14px;
    font-size: 0.95rem;
    display: block;
  }

  .mobile-menu-btn {
    display: flex;
  }

  /* Hero Section Mobile */
  .hero-section {
    padding: 36px 16px 28px;
  }

  .brand-icon-large {
    width: 76px;
    height: 76px;
    border-radius: 18px;
    margin-bottom: 12px;
  }

  .brand-icon-large img {
    border-radius: 15px;
  }

  .hero-title {
    font-size: 1.65rem;
    margin-bottom: 8px;
  }

  .hero-subtitle {
    font-size: 0.92rem;
  }

  .badge {
    font-size: 11.5px;
    padding: 4px 10px;
  }

  /* Content Cards Mobile */
  .policy-section {
    padding: 22px 18px;
    border-radius: var(--radius-md);
  }

  .section-title {
    font-size: 1.2rem;
  }

  .section-number {
    width: 30px;
    height: 30px;
    font-size: 0.8rem;
  }

  .grid-three {
    grid-template-columns: 1fr;
  }

  .contact-detail {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .contact-detail strong {
    min-width: unset;
  }
}

@media (max-width: 640px) {
  .grid-two {
    grid-template-columns: 1fr;
  }

  .alert-box {
    padding: 14px 16px;
    gap: 10px;
  }

  .alert-icon {
    font-size: 1.2rem;
  }

  .alert-content {
    font-size: 13.8px;
  }

  .faq-question {
    padding: 14px 16px;
    font-size: 14.5px;
  }

  .faq-answer {
    padding: 0 16px;
  }

  .faq-answer p {
    font-size: 13.8px;
    padding-bottom: 14px;
  }

  .footer-brand {
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 420px) {
  .main-layout {
    padding: 20px 12px 50px;
  }

  .policy-section {
    padding: 18px 14px;
  }

  .hero-badge-group {
    gap: 6px;
  }

  .badge {
    font-size: 11px;
    padding: 3px 8px;
  }

  .data-table th, .data-table td {
    padding: 10px 12px;
  }
}

/* ==========================================================================
   Print Stylesheet
   ========================================================================== */
@media print {
  body {
    background: #ffffff !important;
    color: #111827 !important;
    font-size: 12pt;
  }

  .site-header,
  .sidebar-wrapper,
  .btn-action,
  .header-actions,
  .scroll-progress-bar,
  .toast-container,
  .site-footer {
    display: none !important;
  }

  .main-layout {
    display: block;
    padding: 0;
    max-width: 100%;
  }

  .policy-section {
    border: none !important;
    box-shadow: none !important;
    padding: 15px 0 !important;
    page-break-inside: avoid;
  }

  .data-table th {
    background: #f3f4f6 !important;
    color: #000 !important;
  }

  .data-table td, .data-table th {
    border: 1px solid #e5e7eb !important;
  }
}
