/* ==========================================================================
   LEGAL & POLICY PAGES STYLESHEET (Google Play Console Compliance)
   ========================================================================== */

.legal-header {
  background: linear-gradient(180deg, #0F2942 0%, #183B5E 100%);
  color: var(--white);
  padding: 4rem 0 3.5rem;
  text-align: center;
}

.legal-header h1 {
  color: var(--white);
  font-size: 2.4rem;
  margin-bottom: 0.75rem;
}

.legal-header p {
  color: #CBD5E1;
  font-size: 1rem;
}

.legal-meta-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.12);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  margin-top: 1rem;
  color: var(--accent-light);
}

.legal-content-wrap {
  padding: 3.5rem 0 5rem;
  background: var(--white);
}

.legal-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3.5rem;
}

.legal-sidebar {
  position: sticky;
  top: 100px;
  height: fit-content;
}

.toc-card {
  background: var(--bg-main);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 1px solid var(--border);
}

.toc-card h4 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
  color: var(--primary);
}

.toc-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.toc-links a {
  font-size: 0.88rem;
  color: var(--text-body);
  display: block;
  padding: 0.3rem 0.5rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.toc-links a:hover {
  background: var(--white);
  color: var(--primary);
  font-weight: 600;
}

.legal-body {
  font-size: 1rem;
  line-height: 1.75;
  color: #334155;
}

.legal-body h2 {
  font-size: 1.6rem;
  color: var(--primary);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--bg-muted);
}

.legal-body h2:first-of-type {
  margin-top: 0;
}

.legal-body h3 {
  font-size: 1.25rem;
  color: var(--text-dark);
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
}

.legal-body p {
  margin-bottom: 1.2rem;
}

.legal-body ul, .legal-body ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.legal-body li {
  margin-bottom: 0.5rem;
}

.legal-alert-box {
  background: #F0FDF4;
  border-left: 4px solid var(--emerald);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  margin: 1.75rem 0;
}

.legal-alert-box strong {
  display: block;
  color: #166534;
  margin-bottom: 0.25rem;
}

.legal-alert-box p {
  margin: 0;
  font-size: 0.92rem;
  color: #14532D;
}

.legal-entity-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.75rem 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
}

.legal-entity-table th, .legal-entity-table td {
  padding: 0.85rem 1.25rem;
  text-align: left;
  font-size: 0.92rem;
}

.legal-entity-table th {
  background: var(--bg-muted);
  font-weight: 700;
  color: var(--primary);
  width: 35%;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.legal-entity-table td {
  background: var(--white);
  color: var(--text-dark);
  font-weight: 500;
  border-bottom: 1px solid var(--border);
}

@media (max-width: 900px) {
  .legal-layout {
    grid-template-columns: 1fr;
  }
  
  .legal-sidebar {
    display: none;
  }
}
