/* ============================================================
   EMPIRE CLIMB — LEGAL PAGES CSS (Privacy, Terms, Cookies)
   ============================================================ */

/* Main layout for legal document reader */
.legal-page-wrapper {
  padding-top: 140px; /* Space for the fixed navbar */
  padding-bottom: 80px;
  position: relative;
  z-index: 2;
}

.legal-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 50px 60px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), inset 0 0 30px rgba(255, 215, 0, 0.02);
  backdrop-filter: blur(10px);
}

.legal-header {
  text-align: center;
  margin-bottom: 50px;
}

.legal-title {
  font-family: 'Cinzel Decorative', serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.2;
  background: linear-gradient(180deg, #FFFFFF 0%, var(--gold-light) 50%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
}

.legal-subtitle {
  font-family: 'Orbitron', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  color: var(--text-dim);
  text-transform: uppercase;
}

.legal-body {
  font-family: 'Rajdhani', sans-serif;
}

.legal-section {
  margin-bottom: 40px;
}

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

.legal-section h2 {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.legal-section h2::before {
  content: '✦';
  color: var(--gold);
  font-size: 0.95rem;
  text-shadow: 0 0 10px var(--gold);
}

.legal-section p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-dim);
  margin-bottom: 18px;
}

.legal-section pstrong, 
.legal-section p strong {
  color: var(--gold-light);
  font-weight: 600;
}

.legal-section ul {
  list-style: none;
  padding-left: 20px;
  margin-bottom: 18px;
}

.legal-section li {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-dim);
  position: relative;
  margin-bottom: 10px;
}

.legal-section li::before {
  content: '▪';
  color: var(--gold);
  position: absolute;
  left: -18px;
  font-size: 0.75rem;
  top: 0;
}

.legal-highlight {
  background: rgba(229, 169, 30, 0.04);
  border-left: 3px solid var(--gold);
  border-radius: 0 8px 8px 0;
  padding: 20px 24px;
  margin: 25px 0;
}

.legal-highlight p {
  margin-bottom: 0;
  color: var(--text);
  font-style: italic;
}

/* Back button in header/nav */
.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Light mode support overrides */
[data-theme="light"] .legal-card {
  background: var(--glass);
  border-color: var(--border);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .legal-title {
  background: linear-gradient(180deg, #1A1408 0%, var(--gold-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

[data-theme="light"] .legal-section h2 {
  color: var(--gold-dark);
}

[data-theme="light"] .legal-highlight {
  background: rgba(165, 117, 12, 0.06);
}

/* Support form styling */
.support-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 30px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}

.form-group label {
  font-family: 'Orbitron', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--gold);
  text-transform: uppercase;
  font-weight: 600;
}

.form-group input,
.form-group textarea {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1rem;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  transition: all 0.3s ease;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 15px rgba(229, 169, 30, 0.15);
}

.form-group textarea {
  height: 140px;
  resize: none;
}

.counter-wrap {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-top: 4px;
  font-family: 'Orbitron', monospace;
}

.counter-wrap.limit-reached {
  color: var(--red-glow);
  text-shadow: 0 0 8px var(--red-glow);
}

.support-btn {
  font-family: 'Orbitron', monospace;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--bg);
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  border: none;
  border-radius: 6px;
  padding: 16px 36px;
  cursor: pointer;
  text-transform: uppercase;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
  align-self: flex-start;
}

.support-btn:hover:not(:disabled) {
  box-shadow: 0 0 25px rgba(229, 169, 30, 0.4);
  transform: translateY(-2px);
}

.support-btn:active:not(:disabled) {
  transform: translateY(0);
}

.support-btn:disabled {
  background: var(--glass);
  border: 1px solid var(--border);
  color: var(--text-dim);
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

/* Success Card */
.success-card {
  text-align: center;
  padding: 40px 0;
}

.success-icon {
  font-size: 4rem;
  margin-bottom: 24px;
  animation: successPulse 2s ease-in-out infinite;
}

.success-card h2 {
  font-family: 'Cinzel', serif;
  color: var(--gold-light);
  font-size: 2rem;
  margin-bottom: 16px;
}

.success-card p {
  font-size: 1.1rem;
  color: var(--text-dim);
  line-height: 1.8;
  max-width: 550px;
  margin: 0 auto 30px;
}

@keyframes successPulse {
  0%, 100% { transform: scale(1); opacity: 1; filter: drop-shadow(0 0 5px rgba(229,169,30,0.1)); }
  50% { transform: scale(1.06); opacity: 0.8; filter: drop-shadow(0 0 20px rgba(229,169,30,0.5)); }
}

/* Light mode overrides for support form */
[data-theme="light"] .form-group input,
[data-theme="light"] .form-group textarea {
  background: rgba(0, 0, 0, 0.02);
}

[data-theme="light"] .form-group input:focus,
[data-theme="light"] .form-group textarea:focus {
  background: rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .support-btn {
  color: #FFF;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
}

[data-theme="light"] .success-card h2 {
  color: var(--gold-dark);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .legal-page-wrapper {
    padding-top: 100px;
    padding-bottom: 40px;
  }

  .legal-card {
    padding: 35px 20px;
    border-radius: 12px;
  }

  .legal-section h2 {
    font-size: 1.2rem;
  }

  nav .nav-links {
    display: none;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  
  .support-btn {
    width: 100%;
    align-self: stretch;
  }
}

