/* =========================================================
   LEGAL & POLICY PAGES STYLING - 100% AD-SAFE & COMPLIANT
   ========================================================= */

:root {
  --bg-dark: #070926;
  --bg-deep-blue: #0c0f38;
  --bg-card: rgba(18, 22, 68, 0.75);
  --bg-card-border: rgba(99, 102, 241, 0.25);
  --primary-gold: #ffbe0b;
  --primary-orange: #fb5607;
  --accent-cyan: #38bdf8;
  --text-light: #ffffff;
  --text-body: #cbd5e1;
  --text-muted: #94a3b8;
  --font-main: 'Poppins', sans-serif;
}

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

body {
  background-color: var(--bg-dark);
  background-image: 
    radial-gradient(circle at 50% 0%, #1e1145 0%, transparent 60%),
    radial-gradient(circle at 10% 40%, #0d1e4c 0%, transparent 50%),
    radial-gradient(circle at 90% 80%, #20083b 0%, transparent 50%);
  color: var(--text-body);
  font-family: var(--font-main);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow-x: hidden;
  line-height: 1.6;
}

.legal-app-wrapper {
  width: 100%;
  max-width: 680px;
  min-height: 100vh;
  background: linear-gradient(180deg, #090a2a 0%, #0c0e3a 30%, #070822 70%, #100624 100%);
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
  position: relative;
  overflow: hidden;
  padding-bottom: 50px;
}

/* Top Navigation Bar */
.legal-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: rgba(9, 10, 42, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.5px;
}

.back-home-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  text-decoration: none;
  transition: all 0.2s ease;
}
.back-home-btn:hover {
  background: linear-gradient(135deg, #ffbe0b, #fb5607);
  color: #000;
  border-color: transparent;
}

/* Hero Title Header */
.legal-hero {
  padding: 28px 20px 18px 20px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.legal-badge {
  display: inline-block;
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent-cyan);
  border: 1px solid rgba(56, 189, 248, 0.3);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 12px;
  border-radius: 12px;
  margin-bottom: 10px;
}

.legal-hero h1 {
  font-size: 26px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.legal-hero p {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 10px auto;
}

.legal-updated {
  font-size: 11px;
  color: #64748b;
  font-weight: 600;
}

/* Document Body Content */
.legal-content-card {
  padding: 22px 20px;
}

.toc-box {
  background: rgba(18, 22, 68, 0.7);
  border: 1px solid var(--bg-card-border);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 24px;
}
.toc-box h4 {
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}
.toc-box ol {
  padding-left: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 6px;
}
.toc-box a {
  color: var(--accent-cyan);
  font-size: 12px;
  text-decoration: none;
  font-weight: 500;
}
.toc-box a:hover {
  text-decoration: underline;
  color: #fff;
}

/* Section Headings & Paragraphs */
.legal-section {
  margin-bottom: 24px;
}

.legal-section h2 {
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.legal-section ul {
  padding-left: 20px;
  margin-bottom: 12px;
}
.legal-section li {
  font-size: 13px;
  color: var(--text-body);
  margin-bottom: 6px;
  line-height: 1.6;
}

/* Highlight / Alert Note Box */
.compliance-note-box {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.35);
  border-radius: 12px;
  padding: 14px;
  margin: 14px 0;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.note-icon {
  font-size: 22px;
  flex-shrink: 0;
}
.compliance-note-box h4 {
  font-size: 13px;
  font-weight: 800;
  color: #22c55e;
  margin-bottom: 4px;
}
.compliance-note-box p {
  font-size: 12px;
  color: #e2e8f0;
  margin: 0;
  line-height: 1.5;
}

/* Contact / Support Cards */
.contact-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.contact-card-item {
  background: rgba(18, 22, 68, 0.8);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-card-item .icon {
  font-size: 24px;
  margin-bottom: 4px;
}

.contact-card-item h4 {
  font-size: 14px;
  font-weight: 800;
  color: #fff;
}

.contact-card-item p {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
}

.contact-card-item a {
  color: var(--accent-cyan);
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  margin-top: 4px;
}
.contact-card-item a:hover {
  text-decoration: underline;
}

/* Footer on Legal Pages */
.legal-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
}
.legal-footer a {
  color: var(--accent-cyan);
  text-decoration: none;
  margin: 0 4px;
}
.legal-footer a:hover {
  color: #fff;
}
