/* Legal Pages Specific Styles */

.legal-main {
  padding-top: 100px;
  min-height: 100vh;
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #1f2937 100%);
}

.legal-header {
  text-align: center;
  padding: 3rem 0;
  border-bottom: 1px solid rgba(107, 70, 193, 0.3);
  margin-bottom: 3rem;
}

.legal-header h1 {
  font-size: 3rem;
  font-weight: 900;
  background: var(--gradient-secondary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.legal-subtitle {
  font-size: 1.2rem;
  opacity: 0.8;
  color: var(--light-text);
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem 4rem;
}

.legal-section {
  margin-bottom: 3rem;
  background: rgba(31, 41, 55, 0.6);
  border-radius: 15px;
  padding: 2.5rem;
  border: 1px solid rgba(107, 70, 193, 0.3);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.legal-section:hover {
  border-color: var(--accent-gold);
  box-shadow: var(--shadow-glow);
}

.legal-section h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent-gold);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.legal-section h3 {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--accent-gold);
  margin-bottom: 1rem;
  margin-top: 1.5rem;
}

.legal-section p {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 1rem;
  opacity: 0.9;
  color: var(--light-text);
}

.legal-section ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1.5rem;
}

.legal-section li {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 0.8rem;
  padding-left: 2rem;
  position: relative;
  opacity: 0.9;
  color: var(--light-text);
}

.legal-section li::before {
  content: "🔹";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-gold);
}

.contact-info {
  background: rgba(107, 70, 193, 0.1);
  border: 1px solid rgba(107, 70, 193, 0.3);
  border-radius: 10px;
  padding: 1.5rem;
  margin-top: 1rem;
}

.contact-info p {
  margin-bottom: 0.5rem;
  font-weight: 500;
}

/* Cookie Policy Specific Styles */
.cookie-type {
  background: rgba(55, 65, 81, 0.4);
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border-left: 4px solid var(--accent-gold);
}

.cookie-type h3 {
  margin-top: 0;
  font-size: 1.3rem;
}

.cookie-management {
  background: rgba(107, 70, 193, 0.1);
  border-radius: 10px;
  padding: 1.5rem;
  margin-top: 1rem;
}

.cookie-management h3 {
  color: var(--accent-gold);
  margin-top: 1rem;
}

.cookie-management h3:first-child {
  margin-top: 0;
}

/* Responsible Gaming Specific Styles */
.responsible-tip {
  background: linear-gradient(
    45deg,
    rgba(107, 70, 193, 0.1) 0%,
    rgba(245, 158, 11, 0.1) 100%
  );
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 15px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.responsible-tip:hover {
  border-color: var(--accent-gold);
  box-shadow: 0 5px 15px rgba(245, 158, 11, 0.2);
}

.responsible-tip h3 {
  margin-top: 0;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.control-tool {
  background: rgba(31, 41, 55, 0.8);
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border-left: 4px solid var(--primary-purple);
}

.control-tool h3 {
  margin-top: 0;
  color: var(--light-text);
}

.support-resources {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.resource {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 10px;
  padding: 1.5rem;
}

.resource h3 {
  margin-top: 0;
  color: #f87171;
  font-size: 1.2rem;
}

.resource p {
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.resource a {
  color: var(--accent-gold);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.resource a:hover {
  color: #fde047;
  text-decoration: underline;
}

/* Legal section links */
.legal-section a {
  color: var(--accent-gold);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.legal-section a:hover {
  color: #fde047;
  text-decoration: underline;
}

/* Table of Contents (if needed for long pages) */
.table-of-contents {
  background: rgba(31, 41, 55, 0.8);
  border: 1px solid rgba(107, 70, 193, 0.3);
  border-radius: 15px;
  padding: 2rem;
  margin-bottom: 3rem;
  position: sticky;
  top: 120px;
  z-index: 10;
}

.table-of-contents h3 {
  color: var(--accent-gold);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.table-of-contents ul {
  columns: 2;
  column-gap: 2rem;
}

.table-of-contents a {
  color: var(--light-text);
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 0.95rem;
}

.table-of-contents a:hover {
  color: var(--accent-gold);
}

/* Responsive Design */
@media (max-width: 768px) {
  .legal-main {
    padding-top: 80px;
  }

  .legal-header h1 {
    font-size: 2.5rem;
  }

  .legal-content {
    /* padding: 0 1rem 4rem; */
  }

  .container {
    padding: 0;
    margin: 0;
  }

  .legal-section {
    padding: 2rem 10px;
  }

  .legal-section h2 {
    font-size: 1.5rem;
  }

  .legal-section h3 {
    font-size: 1.2rem;
  }

  .legal-section p,
  .legal-section li {
    font-size: 1rem;
  }

  .table-of-contents ul {
    columns: 1;
  }

  .table-of-contents {
    position: relative;
    top: auto;
  }

  .support-resources {
    grid-template-columns: 1fr;
  }

  .contact-info .mobile-email {
    font-size: 13px;
  }
}

/* Print Styles */
@media print {
  .header,
  .footer,
  #cookie-consent {
    display: none;
  }

  .legal-main {
    background: white;
    color: black;
    padding-top: 0;
  }

  .legal-section {
    background: white;
    border: 1px solid #ccc;
    box-shadow: none;
  }

  .legal-header h1 {
    color: black;
    background: none;
    -webkit-text-fill-color: initial;
  }

  .legal-section h2,
  .legal-section h3 {
    color: #333;
  }

  .legal-section p,
  .legal-section li {
    color: black;
    opacity: 1;
  }
}

/* Accessibility Improvements */
.legal-section:focus-within {
  border-color: var(--accent-gold);
  box-shadow: var(--shadow-glow);
}

.legal-section a:focus {
  outline: 2px solid var(--accent-gold);
  outline-offset: 2px;
  border-radius: 3px;
}

/* Animation for scroll reveal */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.legal-section {
  animation: fadeInUp 0.6s ease forwards;
}

.legal-section:nth-child(even) {
  animation-delay: 0.1s;
}

.legal-section:nth-child(odd) {
  animation-delay: 0.2s;
}
