/* ==========================================================================
   WiFi Speaker – Privacy Policy Stylesheet
   Modern Glassmorphism & Cyber Neon Aesthetic
   ========================================================================== */

:root {
  --bg-deep: #020713;
  --bg-mid: #03112A;
  --bg-top: #071B42;
  --neon-cyan: #11C8F5;
  --neon-cyan-bright: #00E5FF;
  --neon-blue: #0A84FF;
  --neon-cyan-soft: #38BDF8;
  --glass-bg: rgba(11, 31, 68, 0.72);
  --glass-card: rgba(14, 38, 83, 0.65);
  --glass-border: rgba(30, 63, 120, 0.55);
  --glass-border-glow: rgba(0, 229, 255, 0.35);
  --text-primary: #FFFFFF;
  --text-secondary: #94A9CF;
  --text-muted: #627DAB;
  --status-green: #00E676;
  --status-amber: #FFB300;
  --status-red: #EF4444;
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Outfit', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 8px;
}

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

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 15% 10%, rgba(17, 200, 245, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 85% 30%, rgba(10, 132, 255, 0.10) 0%, transparent 40%),
    radial-gradient(circle at 50% 80%, rgba(0, 229, 255, 0.08) 0%, transparent 50%),
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg-mid) 25%, var(--bg-deep) 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

/* Container */
.container {
  width: 100%;
  max-width: 1020px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Ambient Glow Header */
.header-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(2, 7, 19, 0.78);
  border-bottom: 1px solid var(--glass-border);
  transition: all 0.3s ease;
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-blue));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.35);
}

.brand-icon svg {
  width: 24px;
  height: 24px;
  fill: #000;
}

.brand-text h1 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.brand-text h1 span {
  color: var(--neon-cyan-bright);
}

.brand-text p {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.badge-compliance {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 30px;
  background: rgba(0, 230, 118, 0.12);
  border: 1px solid rgba(0, 230, 118, 0.35);
  color: var(--status-green);
  font-size: 12px;
  font-weight: 600;
}

.badge-compliance .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--status-green);
  box-shadow: 0 0 8px var(--status-green);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

/* Hero Section */
.hero {
  padding: 56px 0 36px;
  text-align: center;
}

.hero-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--neon-cyan);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
  background: rgba(17, 200, 245, 0.1);
  padding: 4px 16px;
  border-radius: 20px;
  border: 1px solid rgba(17, 200, 245, 0.25);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 44px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #FFFFFF 30%, var(--neon-cyan-bright) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto 24px;
}

.meta-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-muted);
}

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

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

.highlight-card {
  background: var(--glass-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.highlight-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.highlight-card:hover {
  transform: translateY(-3px);
  border-color: var(--glass-border-glow);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.highlight-card:hover::before {
  opacity: 1;
}

.highlight-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(17, 200, 245, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  color: var(--neon-cyan-bright);
}

.highlight-card h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.highlight-card p {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Content Layout */
.content-wrapper {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 36px;
  margin-bottom: 60px;
}

/* Quick Nav Sidebar */
.sidebar {
  position: sticky;
  top: 90px;
  height: fit-content;
}

.toc-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 20px;
}

.toc-card h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--neon-cyan);
  margin-bottom: 14px;
}

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

.toc-list a {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.toc-list a:hover {
  color: var(--neon-cyan-bright);
  background: rgba(17, 200, 245, 0.08);
  padding-left: 14px;
}

/* Policy Content Sections */
.policy-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.section-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color 0.3s ease;
}

.section-card:hover {
  border-color: rgba(46, 95, 168, 0.8);
}

.section-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(30, 63, 120, 0.35);
}

.section-badge {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(10, 132, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--neon-cyan);
  font-weight: 700;
  font-size: 15px;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

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

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

.section-body ul {
  list-style: none;
  margin: 14px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.section-body ul li {
  font-size: 13.5px;
  color: var(--text-secondary);
  padding-left: 24px;
  position: relative;
  line-height: 1.6;
}

.section-body ul li::before {
  content: '▸';
  position: absolute;
  left: 4px;
  color: var(--neon-cyan);
  font-weight: bold;
}

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

/* Callout Box */
.callout {
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin: 18px 0;
  border-left: 4px solid var(--neon-cyan);
  background: rgba(17, 200, 245, 0.08);
}

.callout.callout-admob {
  border-left-color: var(--status-amber);
  background: rgba(255, 179, 0, 0.08);
}

.callout.callout-success {
  border-left-color: var(--status-green);
  background: rgba(0, 230, 118, 0.08);
}

.callout h4 {
  font-size: 14px;
  color: var(--text-primary);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.callout p {
  font-size: 13px !important;
  color: var(--text-secondary) !important;
  margin-bottom: 0 !important;
}

/* Data Table */
.data-table-container {
  overflow-x: auto;
  margin: 16px 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
}

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

.data-table th {
  background: rgba(14, 38, 83, 0.85);
  color: var(--text-primary);
  font-weight: 600;
  padding: 12px 16px;
  border-bottom: 1px solid var(--glass-border);
}

.data-table td {
  padding: 12px 16px;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(30, 63, 120, 0.25);
}

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

.data-table tr:hover td {
  background: rgba(17, 200, 245, 0.04);
}

.code-badge {
  font-family: var(--font-mono);
  font-size: 11.5px;
  background: rgba(3, 17, 42, 0.8);
  border: 1px solid rgba(30, 63, 120, 0.5);
  padding: 2px 8px;
  border-radius: 4px;
  color: var(--neon-cyan-soft);
}

/* Links */
a.link {
  color: var(--neon-cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

a.link:hover {
  color: var(--neon-cyan-bright);
}

/* Footer */
footer {
  border-top: 1px solid var(--glass-border);
  background: rgba(2, 7, 19, 0.95);
  padding: 36px 0 24px;
  margin-top: 60px;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 13px;
  color: var(--text-muted);
}

.footer-left p {
  margin-bottom: 4px;
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Responsive */
@media (max-width: 860px) {
  .content-wrapper {
    grid-template-columns: 1fr;
  }
  .sidebar {
    display: none;
  }
  .section-card {
    padding: 22px;
  }
}

@media (max-width: 580px) {
  .nav-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .badge-compliance {
    align-self: flex-start;
  }
  .footer-content {
    flex-direction: column;
    align-items: flex-start;
  }
}
