/* ================ LEGAL PAGES STYLES ================ */
/* Base styles for all legal pages (terms, privacy, cookies) */

.legal-content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 8rem 5% 6rem;
  line-height: 1.7;
  color: var(--color-grey-20);
  margin-top: 5%;
  font-family: 'Figtree', Arial, Helvetica, sans-serif;
}

.legal-content h1 {
  font-size: 2.8rem; /* Reduced from 4.2rem */
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--color-cyan-14);
  line-height: 1.2;
  position: relative;
  padding-bottom: 1rem;
  font-family: var(--meterbolic-figtree-bold-font-family);
}

.legal-content h1::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--color-yellow-36);
  border-radius: 2px;
}

.legal-content h2 {
  font-size: 1.8rem; /* Reduced from 2.8rem */
  font-weight: 600;
  margin: 3rem 0 1.5rem;
  color: var(--color-cyan-14);
  line-height: 1.3;
  font-family: var(--meterbolic-figtree-bold-font-family);
}

.legal-content h3 {
  font-size: 1.4rem; /* Reduced from 2.2rem */
  font-weight: 600;
  margin: 2.5rem 0 1rem;
  color: var(--color-grey-20);
  font-family: var(--meterbolic-figtree-bold-font-family);
}

.legal-content p {
  font-size: 1.1rem; /* Reduced from 1.8rem */
  margin-bottom: 1.5rem;
  line-height: 1.7;
  color: var(--color-grey-40);
  font-family: var(--meterbolic-figtree-regular-font-family);
}

.legal-content ul,
.legal-content ol {
  margin-bottom: 2rem;
  padding-left: 2rem;
}

.legal-content li {
  font-size: 1.1rem; /* Reduced from 1.8rem */
  margin-bottom: 1rem;
  position: relative;
  line-height: 1.6;
  color: var(--color-grey-40);
  font-family: var(--meterbolic-figtree-regular-font-family);
}

.legal-content li::before {
  content: '•';
  color: var(--color-yellow-36);
  font-weight: bold;
  display: inline-block;
  width: 1em;
  margin-left: -1em;
  position: absolute;
  left: 0;
}

.legal-content strong {
  color: var(--color-cyan-14);
  font-weight: 600;
}

.legal-content a {
  color: var(--color-yellow-36);
  text-decoration: underline;
  transition: all 0.3s ease;
  font-weight: 500;
}

.legal-content a:hover {
  color: var(--color-cyan-14);
  text-decoration: none;
}

.legal-content .last-updated {
  font-size: 0.9rem;
  color: var(--color-grey-40);
  margin-bottom: 3rem;
  font-style: italic;
  font-family: var(--meterbolic-figtree-regular-font-family);
}

/* Table styles for complex legal documents */
.legal-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 1rem;
  font-family: var(--meterbolic-figtree-regular-font-family);
}

.legal-content th,
.legal-content td {
  padding: 1rem;
  text-align: left;
  border: 1px solid #e0e0e0;
}

.legal-content th {
  background-color: rgba(142, 178, 5, 0.1);
  color: var(--color-cyan-14);
  font-weight: 600;
  font-family: var(--meterbolic-figtree-bold-font-family);
}

.legal-content tr:nth-child(even) {
  background-color: rgba(6, 64, 52, 0.02);
}

/* Blockquote for important notices */
.legal-content blockquote {
  background: rgba(142, 178, 5, 0.05);
  border-left: 4px solid var(--color-yellow-36);
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 0 8px 8px 0;
  font-style: italic;
}

.legal-content blockquote p {
  margin-bottom: 0;
  color: var(--color-grey-20);
}

/* Section dividers */
.legal-content hr {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-yellow-36), transparent);
  margin: 3rem 0;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .legal-content {
    padding: 7rem 5% 5rem;
    margin-top: 8%;
  }
  
  .legal-content h1 {
    font-size: 2.4rem;
  }
  
  .legal-content h2 {
    font-size: 1.6rem;
  }
  
  .legal-content h3 {
    font-size: 1.3rem;
  }
}

@media (max-width: 768px) {
  .legal-content {
    padding: 6rem 5% 4rem;
    margin-top: 12%;
  }
  
  .legal-content h1 {
    font-size: 2.2rem;
    padding-bottom: 0.8rem;
  }
  
  .legal-content h1::after {
    width: 50px;
    height: 2px;
  }
  
  .legal-content h2 {
    font-size: 1.5rem;
    margin: 2.5rem 0 1.2rem;
  }
  
  .legal-content h3 {
    font-size: 1.2rem;
    margin: 2rem 0 0.8rem;
  }
  
  .legal-content p,
  .legal-content li {
    font-size: 1rem;
    line-height: 1.6;
  }
  
  .legal-content ul,
  .legal-content ol {
    padding-left: 1.5rem;
  }
  
  .legal-content table {
    font-size: 0.9rem;
  }
  
  .legal-content th,
  .legal-content td {
    padding: 0.8rem;
  }
}

@media (max-width: 576px) {
  .legal-content {
    padding: 5rem 4% 3rem;
    margin-top: 15%;
  }
  
  .legal-content h1 {
    font-size: 1.8rem;
  }
  
  .legal-content h2 {
    font-size: 1.3rem;
  }
  
  .legal-content h3 {
    font-size: 1.1rem;
  }
  
  .legal-content p,
  .legal-content li {
    font-size: 0.95rem;
  }
  
  .legal-content ul,
  .legal-content ol {
    padding-left: 1rem;
  }
  
  .legal-content table {
    font-size: 0.85rem;
    display: block;
    overflow-x: auto;
  }
  
  .legal-content th,
  .legal-content td {
    padding: 0.6rem;
    min-width: 120px;
  }
}

/* Print styles */
@media print {
  .legal-content {
    padding: 2rem 0;
    margin-top: 0;
  }
  
  .legal-content h1 {
    font-size: 1.8rem;
  }
  
  .legal-content h2 {
    font-size: 1.4rem;
  }
  
  .legal-content h3 {
    font-size: 1.2rem;
  }
  
  .legal-content p,
  .legal-content li {
    font-size: 1rem;
  }
  
  .legal-content a {
    color: #000;
    text-decoration: underline;
  }
}