/* ============================================
   Legal Pages Shared Styles
   Consistent with the Top Profit Club main site.
   ============================================ */

/* ---- Page Background ---- */
.legal-page {
  min-height: 100vh;
  background-color: var(--bg-page);
  background-image: var(--gradient-bg);
  background-attachment: fixed;
  color: var(--text-primary);
  font-family: var(--font-content);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---- Top Navigation Bar ---- */
.legal-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(201, 168, 76, 0.1);
}

.legal-nav-logo {
  height: 40px;
  filter: drop-shadow(0 0 6px rgba(201, 168, 76, 0.15));
  transition: filter 0.3s ease;
}

.legal-nav-logo:hover {
  filter: drop-shadow(0 0 12px rgba(201, 168, 76, 0.35));
}

.legal-nav-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  text-decoration: none;
  font-family: var(--font-content);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.3s ease, transform 0.3s ease;
}

.legal-nav-back:hover {
  color: var(--gold-light);
  transform: translateX(-3px);
}

.legal-nav-back svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* ---- Main Container ---- */
.legal-wrapper {
  max-width: 780px;
  margin: 0 auto;
  padding: 64px 48px 80px;
}

/* ---- Header ---- */
.legal-header {
  text-align: center;
  margin-bottom: 56px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
}

.legal-header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 1px;
  background: var(--gradient-gold-h);
}

.legal-badge {
  display: inline-block;
  font-family: var(--font-content);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-dim);
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: var(--radius-pill);
  padding: 6px 20px;
  margin-bottom: 24px;
}

.legal-title {
  font-family: var(--font-headline);
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-white);
  margin: 0 0 16px 0;
  line-height: 1.1;
}

.legal-title span {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.legal-date {
  font-size: 14px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  margin: 0;
}

/* ---- Alert / Callout Box ---- */
.legal-callout {
  position: relative;
  background: rgba(201, 168, 76, 0.04);
  border: 1px solid rgba(201, 168, 76, 0.12);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 24px 28px;
  margin-bottom: 40px;
}

.legal-callout p {
  margin: 0;
  font-size: 15px;
  font-weight: 400;
  font-style: italic;
  line-height: 1.75;
  color: rgba(240, 230, 204, 0.85);
}

/* ---- Content ---- */
.legal-content h2 {
  font-family: var(--font-headline);
  font-size: 22px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-white);
  margin: 52px 0 20px 0;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
}

.legal-content h2::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 40px;
  height: 1px;
  background: var(--gold);
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.85;
  color: rgba(226, 220, 208, 0.82);
  margin: 0 0 20px 0;
}

.legal-content p strong {
  color: var(--text-primary);
  font-weight: 500;
}

.legal-content ul {
  margin: 0 0 24px 0;
  padding-left: 0;
  list-style: none;
}

.legal-content li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 14px;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.75;
  color: rgba(226, 220, 208, 0.82);
}

.legal-content li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

.legal-content li strong {
  color: var(--text-primary);
  font-weight: 500;
}

.legal-content a {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(201, 168, 76, 0.25);
  padding-bottom: 1px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.legal-content a:hover {
  color: var(--gold-light);
  border-color: var(--gold-light);
}

/* ---- Cross-links between legal pages ---- */
.legal-crosslinks {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--border-subtle);
}

.legal-crosslinks-title {
  font-family: var(--font-content);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.legal-crosslinks-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.legal-crosslinks-list a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--gold);
  background: rgba(201, 168, 76, 0.05);
  border: 1px solid rgba(201, 168, 76, 0.15);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all 0.25s ease;
}

.legal-crosslinks-list a:hover {
  background: rgba(201, 168, 76, 0.1);
  border-color: rgba(201, 168, 76, 0.35);
  color: var(--gold-light);
}

.legal-crosslinks-list a svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* ---- Footer ---- */
.legal-footer {
  padding: 30px 20px;
  background-color: rgba(10, 10, 10, 0.3);
  border-top: 1px solid rgba(201, 168, 76, 0.1);
  font-family: var(--font-content);
  text-align: center;
}

.legal-footer-inner {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legal-footer-copy {
  font-size: 13px;
  color: rgba(240, 230, 204, 0.5);
  margin: 0;
}

.legal-footer-links {
  font-size: 12px;
  margin: 0;
}

.legal-footer-links a {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(201, 168, 76, 0.2);
  transition: color 0.2s ease;
}

.legal-footer-links a:hover {
  color: var(--gold-light);
}

.legal-footer-links .sep {
  color: rgba(240, 230, 204, 0.2);
  margin: 0 8px;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .legal-nav {
    padding: 14px 20px;
  }

  .legal-nav-logo {
    height: 32px;
  }

  .legal-wrapper {
    padding: 40px 24px 60px;
  }

  .legal-title {
    font-size: 34px;
  }

  .legal-content h2 {
    font-size: 20px;
    margin-top: 40px;
  }

  .legal-crosslinks-list {
    flex-direction: column;
  }

  .legal-crosslinks-list a {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .legal-wrapper {
    padding: 32px 18px 48px;
  }

  .legal-nav {
    padding: 12px 16px;
  }
}
