/* BHIOS Privacy Policy - Standalone Site Design System */
:root {
  --bg-main: #08090c;
  --bg-surface1: #0f121a;
  --bg-surface2: #161a24;
  --bg-surface-translucent: rgba(15, 18, 26, 0.85);
  --bg-glass: rgba(18, 22, 32, 0.7);

  --color-primary: #00e676;
  --color-secondary: #00e5ff;
  --color-amber: #e8a33d;
  --color-danger: #ff5470;
  --color-blue: #4e9cff;

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-dim: #475569;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.15);
  --border-glow-green: rgba(0, 230, 118, 0.35);
  --border-glow-cyan: rgba(0, 229, 255, 0.35);

  --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.65);
  --glow-primary: 0 0 24px rgba(0, 230, 118, 0.18);
  --glow-cyan: 0 0 24px rgba(0, 229, 255, 0.18);

  --transition-smooth: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  background-color: var(--bg-main);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Background Ambient Glow */
.bg-mesh {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 15% 10%, rgba(0, 230, 118, 0.07) 0%, transparent 40%),
    radial-gradient(circle at 85% 20%, rgba(0, 229, 255, 0.06) 0%, transparent 45%),
    radial-gradient(circle at 50% 80%, rgba(232, 163, 61, 0.04) 0%, transparent 50%);
}

.site-wrapper {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 9, 12, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition-smooth);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 20px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  transition: opacity 0.2s ease;
}

.brand-link img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: block;
  box-shadow: 0 2px 10px rgba(0, 230, 118, 0.2);
}

.brand-link:hover {
  opacity: 0.9;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 3px;
  height: 38px;
}

.lang-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0 10px;
  height: 100%;
  border-radius: 999px;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lang-btn:hover {
  color: var(--text-primary);
}

.lang-btn.active {
  background: rgba(0, 230, 118, 0.18);
  color: var(--color-primary);
  border-color: rgba(0, 230, 118, 0.35);
}

/* Header Action Buttons */
.btn-main-site {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 230, 118, 0.1);
  border: 1px solid var(--border-glow-green);
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0 16px;
  height: 38px;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  transition: var(--transition-smooth);
}

.btn-main-site:hover {
  background: rgba(0, 230, 118, 0.2);
  border-color: var(--color-primary);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--glow-primary);
}

/* Main Content Area */
.main-content {
  flex: 1;
  padding: 56px 0 80px 0;
}

/* Hero Header for Document */
.doc-header {
  margin-bottom: 40px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: rgba(0, 230, 118, 0.08);
  border: 1px solid var(--border-glow-green);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.doc-header h1 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.doc-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  font-size: 0.875rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.doc-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Privacy Key Guarantees Grid */
.guarantees-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 48px;
}

.guarantee-card {
  background: var(--bg-surface1);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 20px;
  transition: var(--transition-smooth);
}

.guarantee-card:hover {
  border-color: var(--border-medium);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.guarantee-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(0, 230, 118, 0.1);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.guarantee-icon.cyan {
  background: rgba(0, 229, 255, 0.1);
  color: var(--color-secondary);
}

.guarantee-icon.amber {
  background: rgba(232, 163, 61, 0.1);
  color: var(--color-amber);
}

.guarantee-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.guarantee-desc {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Legal Document Body */
.legal-card {
  background: var(--bg-surface1);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 48px;
  box-shadow: var(--shadow-md);
  margin-bottom: 40px;
}

.legal-section {
  margin-bottom: 40px;
}

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

.legal-section h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 10px;
}

.legal-section h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: #e2e8f0;
  margin: 24px 0 12px 0;
}

.legal-section p {
  margin-bottom: 16px;
  color: #cbd5e1;
  font-size: 0.96rem;
  line-height: 1.75;
}

.legal-section ul, .legal-section ol {
  margin: 12px 0 20px 24px;
  color: #cbd5e1;
}

.legal-section li {
  margin-bottom: 10px;
  line-height: 1.65;
  font-size: 0.95rem;
}

.legal-section strong {
  color: var(--text-primary);
  font-weight: 600;
}

.legal-callout {
  background: var(--bg-surface2);
  border-left: 3px solid var(--color-primary);
  border-radius: 0 12px 12px 0;
  padding: 18px 22px;
  margin: 20px 0;
}

.legal-callout.cyan {
  border-left-color: var(--color-secondary);
}

.legal-callout.amber {
  border-left-color: var(--color-amber);
}

.legal-callout p:last-child {
  margin-bottom: 0;
}

.permission-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  padding: 2px 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  color: var(--color-secondary);
}

/* Footer */
.site-footer {
  background: #050608;
  border-top: 1px solid var(--border-subtle);
  padding: 48px 0 32px 0;
  margin-top: auto;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
}

.footer-brand img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  list-style: none;
}

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

.footer-links a:hover {
  color: var(--color-primary);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 24px;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.footer-bottom a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-bottom a:hover {
  color: var(--color-primary);
}

/* Multi-language Tab Switching */
.lang-content {
  display: none;
}

.lang-content.active {
  display: block;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-inner {
    height: auto;
    padding: 16px 0;
    flex-wrap: wrap;
  }

  .legal-card {
    padding: 24px 20px;
    border-radius: 14px;
  }

  .doc-header h1 {
    font-size: 1.85rem;
  }

  .footer-nav {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }

  .footer-links {
    justify-content: center;
  }
}
