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

:root {
  --primary-color: #3b82f6;
  --primary-hover: #2563eb;
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-light: #64748b;
  --bg-page: #f8fafc;
  --bg-card: rgba(255, 255, 255, 0.9);
  --border-color: #e2e8f0;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
}

/* Header / Navigation */
.policy-navbar {
  background: var(--bg-card);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.navbar-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.brand-link {
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-main);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-link span {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-item {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.nav-item:hover {
  color: var(--primary-color);
  background-color: rgba(59, 130, 246, 0.05);
}

.nav-item.active {
  color: #fff;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
  box-shadow: 0 4px 10px rgba(59, 130, 246, 0.25);
}

/* Main Container */
.policy-container {
  max-width: 1000px;
  margin: 40px auto;
  padding: 0 24px;
  box-sizing: border-box;
}

.policy-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
}

@media (max-width: 868px) {
  .policy-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .policy-sidebar {
    display: none; /* Hide sidebar on mobile, top nav is enough */
  }
}

/* Sidebar */
.policy-sidebar {
  position: sticky;
  top: 100px;
  height: fit-content;
}

.sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.sidebar-title {
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-light);
  margin-top: 0;
  margin-bottom: 16px;
}

.sidebar-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-link {
  display: block;
  padding: 10px 16px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.sidebar-link:hover {
  color: var(--primary-color);
  background-color: rgba(59, 130, 246, 0.05);
}

.sidebar-link.active {
  color: var(--primary-color);
  background-color: rgba(59, 130, 246, 0.08);
  font-weight: 600;
  border-left: 3px solid var(--primary-color);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding-left: 13px;
}

/* Content Area */
.policy-content-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-md);
}

@media (max-width: 640px) {
  .policy-content-card {
    padding: 24px;
  }
  .policy-container {
    margin: 20px auto;
  }
}

.policy-header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 24px;
  margin-bottom: 32px;
}

.policy-header h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 8px 0;
  color: var(--text-main);
  background: linear-gradient(135deg, var(--text-main) 30%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.policy-last-updated {
  font-size: 13px;
  color: var(--text-light);
  margin: 0;
}

/* Text Styling */
.policy-body h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--text-main);
  margin-top: 32px;
  margin-bottom: 16px;
}

.policy-body p {
  margin-top: 0;
  margin-bottom: 16px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
}

.policy-body ul, .policy-body ol {
  margin-top: 0;
  margin-bottom: 20px;
  padding-left: 24px;
  color: var(--text-muted);
  font-size: 15px;
}

.policy-body li {
  margin-bottom: 8px;
}

/* Highlight Box (Alert) */
.policy-highlight-box {
  background: rgba(59, 130, 246, 0.04);
  border-left: 4px solid var(--primary-color);
  border-radius: 4px var(--radius-sm) var(--radius-sm) 4px;
  padding: 16px 20px;
  margin: 24px 0;
}

.policy-highlight-box p {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--primary-hover);
}

.policy-highlight-box.warning {
  background: rgba(245, 158, 11, 0.04);
  border-left-color: #f59e0b;
}

.policy-highlight-box.warning p {
  color: #b45309;
}

/* Back Link */
.back-to-checkout {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 24px;
  transition: color 0.2s ease;
}

.back-to-checkout:hover {
  color: var(--primary-color);
}

.back-to-checkout svg {
  transition: transform 0.2s ease;
}

.back-to-checkout:hover svg {
  transform: translateX(-4px);
}

/* Footer */
.policy-footer {
  text-align: center;
  padding: 40px 24px;
  border-top: 1px solid var(--border-color);
  margin-top: 80px;
  color: var(--text-light);
  font-size: 13px;
}
