/* Legal & Compliance Page Luxury Styling */

.legal-header-hero {
  padding-top: 150px;
  padding-bottom: 60px;
  text-align: center;
  position: relative;
  border-bottom: 1px solid var(--border-subtle);
  background: radial-gradient(circle at 50% 20%, rgba(229, 9, 20, 0.15) 0%, transparent 65%);
}

.legal-meta-tags {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
}

.meta-chip strong {
  color: #FFFFFF;
}

/* Legal Content Layout */
.legal-layout-container {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 50px;
  padding: 60px 0 100px;
  position: relative;
}

/* Sticky Table of Contents */
.legal-toc-wrapper {
  position: sticky;
  top: 100px;
  height: fit-content;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.toc-title {
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gold-light);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.toc-list a {
  text-decoration: none;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  display: block;
}

.toc-list a:hover,
.toc-list a.active {
  color: #FFFFFF;
  background: rgba(229, 9, 20, 0.15);
  border-left: 2px solid var(--crimson-primary);
  padding-left: 10px;
}

/* Legal Body Content */
.legal-body-content {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-card);
}

.legal-section {
  margin-bottom: 48px;
  scroll-margin-top: 110px;
}

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

.legal-section h2 {
  font-size: 24px;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 12px;
}

.legal-section h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--gold-light);
  margin: 24px 0 12px;
}

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

.legal-section ul,
.legal-section ol {
  margin: 14px 0 18px 24px;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.legal-section li {
  line-height: 1.7;
  font-size: 15px;
}

.legal-section strong {
  color: #FFFFFF;
}

/* Callout Alert Boxes */
.legal-callout {
  background: rgba(255, 255, 255, 0.03);
  border-left: 4px solid var(--crimson-primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 20px 24px;
  margin: 24px 0;
}

.legal-callout.gold {
  border-left-color: var(--gold-primary);
  background: rgba(212, 175, 55, 0.06);
}

.legal-callout.shield {
  border-left-color: #10B981;
  background: rgba(16, 185, 129, 0.06);
}

.legal-callout h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #FFFFFF;
}

.legal-callout p {
  margin-bottom: 0;
  font-size: 14px;
}

/* Responsive Table */
.legal-table-responsive {
  width: 100%;
  overflow-x: auto;
  margin: 24px 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

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

.legal-table th {
  background: rgba(255, 255, 255, 0.06);
  color: #FFFFFF;
  font-weight: 700;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-medium);
  font-family: 'Outfit', sans-serif;
}

.legal-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  line-height: 1.6;
}

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

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

/* Deletion Action Card (Google Play compliance) */
.deletion-action-card {
  background: linear-gradient(135deg, rgba(229, 9, 20, 0.1) 0%, rgba(14, 14, 24, 0.8) 100%);
  border: 1px solid rgba(229, 9, 20, 0.35);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin: 28px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.deletion-action-card h3 {
  color: #FFFFFF;
  margin: 0;
}

/* Responsive */
@media (max-width: 960px) {
  .legal-layout-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .legal-toc-wrapper {
    position: static;
    max-height: none;
  }
  .legal-body-content {
    padding: 28px 20px;
  }
}
