/* ==========================================================================
   LeetToGit – Ultra-Modern Dark Theme Stylesheet for Privacy Policy
   ========================================================================== */

:root {
  --bg-canvas: #090d16;
  --bg-surface: #121826;
  --bg-surface-elevated: #182032;
  --bg-surface-hover: #1e283e;
  --bg-pill: rgba(255, 255, 255, 0.05);

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-card: rgba(255, 255, 255, 0.12);
  --border-hover: rgba(255, 255, 255, 0.22);
  --border-focus: #6366f1;

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --primary-glow: rgba(99, 102, 241, 0.25);

  --accent: #38bdf8;
  --accent-glow: rgba(56, 189, 248, 0.2);

  --success: #10b981;
  --success-glow: rgba(16, 185, 129, 0.2);
  --warning: #f59e0b;

  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --shadow-card: 0 4px 20px -2px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Reset & Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  font-size: 15px;
  position: relative;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Ambient Background Glows */
.glow-orb {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  opacity: 0.15;
  z-index: 0;
}

.glow-top-left {
  top: -100px;
  left: -100px;
  background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
}

.glow-top-right {
  top: 100px;
  right: -100px;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(13, 17, 26, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 50;
  padding: 14px 24px;
}

.header-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
}

.brand-logo-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--primary) 0%, #4338ca 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 2px 8px var(--primary-glow);
}

.brand-name {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.brand-accent {
  color: var(--primary);
}

.header-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #34d399;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.status-pulse-dot {
  width: 7px;
  height: 7px;
  background: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--success);
}

/* Page Container */
.page-container {
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  padding: 48px 24px 80px 24px;
  position: relative;
  z-index: 1;
  flex: 1;
}

/* Hero Section */
.hero-section {
  text-align: center;
  margin-bottom: 48px;
}

.hero-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--accent);
  background: var(--accent-glow);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}

.hero-title {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.8px;
  color: #ffffff;
  margin-bottom: 16px;
}

.hero-subtitle {
  max-width: 680px;
  margin: 0 auto 20px auto;
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.hero-meta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12.5px;
  color: var(--text-muted);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 6px 16px;
  border-radius: var(--radius-full);
}

.meta-separator {
  color: var(--text-muted);
}

/* Policy Card Grid */
.policy-card-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.policy-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-card);
  display: flex;
  gap: 20px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.policy-card:hover {
  border-color: var(--border-hover);
}

.highlight-card {
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.08) 0%, var(--bg-surface) 100%);
  border-color: rgba(99, 102, 241, 0.35);
}

.card-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-shield { color: var(--accent); }
.icon-eye-off { color: #a78bfa; }
.icon-key { color: var(--warning); }
.icon-code { color: var(--success); }
.icon-external { color: #38bdf8; }
.icon-mail { color: #f43f5e; }

.card-body {
  flex: 1;
}

.card-title {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}

.card-body p {
  color: var(--text-secondary);
  font-size: 14.5px;
  margin-bottom: 14px;
}

/* Feature Bullets */
.feature-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.feature-bullets li {
  position: relative;
  padding-left: 20px;
  color: var(--text-secondary);
  font-size: 14px;
}

.feature-bullets li::before {
  content: "•";
  position: absolute;
  left: 4px;
  top: -1px;
  color: var(--primary);
  font-size: 18px;
}

/* Code Pills */
.code-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  background: rgba(255, 255, 255, 0.08);
  color: #e0e7ff;
  padding: 2px 7px;
  border-radius: var(--radius-xs);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Checkbox Features Grid */
.grid-checks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.check-box-item {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.check-icon {
  width: 20px;
  height: 20px;
  background: rgba(16, 185, 129, 0.18);
  color: var(--success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 2px;
}

.check-box-item strong {
  display: block;
  font-size: 13.5px;
  color: var(--text-primary);
  margin-bottom: 3px;
}

.check-box-item p {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 0;
  line-height: 1.4;
}

/* Permissions Table */
.table-responsive {
  overflow-x: auto;
  margin-top: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.policy-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  text-align: left;
}

.policy-table th {
  background: var(--bg-surface-elevated);
  padding: 12px 16px;
  color: var(--text-primary);
  font-weight: 600;
  border-bottom: 1px solid var(--border-subtle);
}

.policy-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  vertical-align: top;
}

.policy-table tr:last-child td {
  border-bottom: none;
}

/* Badge Tags */
.badge-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-xs);
  white-space: nowrap;
}

.badge-local { background: rgba(56, 189, 248, 0.15); color: #38bdf8; }
.badge-background { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.badge-ui { background: rgba(167, 139, 250, 0.15); color: #a78bfa; }
.badge-api { background: rgba(16, 185, 129, 0.15); color: #10b981; }
.badge-content { background: rgba(244, 63, 94, 0.15); color: #f43f5e; }

/* Links */
.policy-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.15s ease;
}

.policy-link:hover {
  color: #7dd3fc;
  text-decoration: underline;
}

.contact-highlight {
  background: var(--bg-surface-elevated);
  border-left: 3px solid var(--primary);
  padding: 12px 16px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 14px;
}

/* Footer */
.site-footer {
  margin-top: auto;
  background: var(--bg-canvas);
  padding: 24px 24px 36px 24px;
}

.solid-divider-line {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  max-width: 960px;
  margin: 0 auto 20px auto;
}

.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 12px;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-dev-text {
  font-weight: 500;
  color: var(--text-secondary);
}

.footer-brand-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.footer-brand-link:hover {
  text-decoration: underline;
}

.footer-dot {
  color: var(--text-muted);
}

.footer-community-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.footer-community-link:hover {
  text-decoration: underline;
}

/* Mobile Responsiveness */
@media (max-width: 640px) {
  .hero-title {
    font-size: 26px;
  }
  .policy-card {
    flex-direction: column;
    padding: 20px;
  }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .header-status-badge {
    display: none;
  }
}