/* ===== Policy Page: line-height override ===== */
body.policy-page {
  line-height: 1.7;
}

/* ===== Policy Hero ===== */
.policy-hero {
  padding: 140px 0 60px;
  text-align: center;
  position: relative;
}

.policy-hero::before {
  content: '';
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 400px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.policy-hero h1 {
  font-size: clamp(32px, 5vw, 50px);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 12px;
  position: relative;
}

.policy-hero .app-name {
  font-size: clamp(18px, 3vw, 24px);
  font-weight: 600;
  color: var(--accent-green);
  margin-bottom: 12px;
}

.policy-hero .updated {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
}

.policy-hero .scope {
  color: var(--text-secondary);
  font-size: 14px;
  margin-top: 6px;
  font-style: italic;
}

.policy-hero .app-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 8px 20px;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.15);
  border-radius: 50px;
  color: var(--accent-green);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
}

.policy-hero .app-badge:hover {
  background: rgba(34, 197, 94, 0.15);
}

/* ===== Policy Content ===== */
.policy-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px 120px;
}

.policy-content .intro {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 48px;
  padding: 24px 28px;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
}

/* ===== Policy Sections ===== */
.policy-section {
  margin-bottom: 48px;
}

.policy-section h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  gap: 12px;
}

.policy-section h2 .num {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(139, 92, 246, 0.12);
  color: var(--accent-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

/* Variant: green numbered badge (for app-specific pages) */
.policy-section h2 .num.green {
  background: rgba(34, 197, 94, 0.12);
  color: var(--accent-green);
}

.policy-section h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 20px 0 10px;
  color: var(--accent-cyan);
}

.policy-section p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 12px;
}

.policy-section ul {
  list-style: none;
  margin: 8px 0 16px;
  padding-left: 0;
}

.policy-section ul li {
  color: var(--text-secondary);
  font-size: 14.5px;
  line-height: 1.7;
  padding: 5px 0 5px 24px;
  position: relative;
}

.policy-section ul li::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 13px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-purple);
  opacity: 0.6;
}

/* Variant: green bullets for app-specific pages */
.policy-section ul.green li::before {
  background: var(--accent-green);
}

.policy-section a {
  color: var(--accent-blue);
  text-decoration: none;
  border-bottom: 1px solid rgba(59, 130, 246, 0.3);
  transition: var(--transition);
}

.policy-section a:hover {
  color: var(--accent-cyan);
  border-bottom-color: var(--accent-cyan);
}

/* ===== Permission Table ===== */
.perm-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 16px 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.perm-table th,
.perm-table td {
  padding: 12px 16px;
  text-align: left;
  font-size: 14px;
  line-height: 1.6;
}

.perm-table th {
  background: rgba(139, 92, 246, 0.1);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.perm-table td {
  background: var(--bg-card);
  color: var(--text-secondary);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

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

.perm-table code {
  background: rgba(139, 92, 246, 0.12);
  color: var(--accent-purple);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-family: 'SF Mono', 'Fira Code', monospace;
  white-space: nowrap;
}

/* ===== Section Divider ===== */
.section-divider {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.2), transparent);
  margin: 64px 0;
}

/* ===== Terms Badge ===== */
.terms-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 8px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-blue);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

/* ===== New Badge ===== */
.new-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 2px 8px;
  background: rgba(34, 197, 94, 0.15);
  color: var(--accent-green);
  border-radius: 6px;
  margin-left: 8px;
  vertical-align: middle;
}

/* ===== Scrollbar variant: green for app-specific pages ===== */
.policy-page-green ::-webkit-scrollbar-thumb {
  background: var(--accent-green);
}

/* ===== Policy Responsive ===== */
@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  .policy-content {
    padding: 0 16px 80px;
  }

  .policy-section h2 {
    font-size: 19px;
  }

  .perm-table th,
  .perm-table td {
    padding: 10px 12px;
    font-size: 13px;
  }

  .perm-table code {
    font-size: 11px;
  }

  .footer .container {
    flex-direction: column;
    text-align: center;
  }
}
