/* Legal Pages CSS - Full-screen professional document styling */

:root {
  --legal-primary: #1a365d;
  --legal-secondary: #2d3748;
  --legal-accent: #2b6cb0;
  --legal-text-dark: #1a202c;
  --legal-text-muted: #4a5568;
  --legal-bg-document: #ffffff;
  --legal-bg-section: #f7fafc;
  --legal-border: #e2e8f0;
  --legal-border-accent: #3182ce;
}

/* Full-screen legal document container */
.legal-container {
  min-height: 100vh;
  background: var(--legal-bg-document);
  font-family: 'Georgia', 'Times New Roman', serif;
  line-height: 1.7;
  color: var(--legal-text-dark);
  padding: 0;
  margin: 0;
}

/* Document header section */
.legal-header {
  background: var(--legal-bg-document);
  padding: 4rem 8% 3rem 8%;
  border-bottom: 2px solid var(--legal-border);
  margin-bottom: 0;
  position: relative;
}

.legal-title {
  font-size: 3rem;
  font-weight: 400;
  color: var(--legal-primary);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  font-family: 'Georgia', serif;
}

.legal-subtitle {
  font-size: 1.3rem;
  color: var(--legal-text-muted);
  margin-bottom: 2rem;
  font-weight: 300;
  font-style: italic;
}

.legal-meta {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--legal-border);
}

.effective-date,
.last-updated {
  font-size: 0.95rem;
  color: var(--legal-text-muted);
  font-weight: 500;
}

/* Document content */
.legal-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 8%;
  line-height: 1.8;
  color: var(--legal-text-dark);
}

.legal-section {
  margin-bottom: 4rem;
  padding: 0;
  background: transparent;
}

.legal-section h2 {
  color: var(--legal-primary);
  font-size: 1.8rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  margin-top: 3rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--legal-border-accent);
  font-family: 'Georgia', serif;
}

.legal-section h3,
.legal-section h4 {
  color: var(--legal-secondary);
  font-size: 1.3rem;
  font-weight: 500;
  margin: 2rem 0 1rem 0;
  font-family: 'Georgia', serif;
}

.legal-section p {
  margin-bottom: 1.5rem;
  text-align: justify;
  font-size: 1.05rem;
  text-indent: 1.5rem;
}

.legal-section ul, .legal-section ol {
  margin: 1.5rem 0;
  padding-left: 3rem;
}

.legal-section li {
  margin-bottom: 1rem;
  line-height: 1.7;
  font-size: 1.05rem;
}

.legal-section li strong {
  color: var(--legal-primary);
  font-weight: 600;
}

/* Information boxes */
.info-box {
  background: var(--legal-bg-section);
  border: 1px solid var(--legal-border);
  border-left: 4px solid var(--legal-accent);
  padding: 2rem;
  margin: 2rem 0;
  border-radius: 4px;
}

.warning-box {
  background: #fef5e7;
  border: 1px solid #f6ad55;
  border-left: 4px solid #ed8936;
  padding: 2rem;
  margin: 2rem 0;
  border-radius: 4px;
}

.data-table {
  margin: 2rem 0;
  overflow-x: auto;
}

.data-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
}

.data-table th,
.data-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--legal-border);
}

.data-table th {
  background: var(--legal-bg-section);
  font-weight: 600;
  color: var(--legal-primary);
}

.contact-info {
  background: var(--legal-bg-section);
  padding: 2rem;
  border-radius: 4px;
  margin: 2rem 0;
}

.contact-card {
  background: white;
  padding: 1.5rem;
  border-radius: 4px;
  border: 1px solid var(--legal-border);
}

/* Table of contents */
.table-of-contents {
  background: var(--legal-bg-section);
  border: 1px solid var(--legal-border);
  padding: 2rem;
  margin: 3rem 8% 4rem 8%;
  border-radius: 4px;
}

.table-of-contents h3 {
  color: var(--legal-primary);
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  font-family: 'Georgia', serif;
}

.table-of-contents ul {
  list-style: none;
  padding: 0;
  columns: 2;
  column-gap: 3rem;
}

.table-of-contents li {
  margin-bottom: 0.75rem;
  break-inside: avoid;
}

.table-of-contents a {
  color: var(--legal-accent);
  text-decoration: none;
  font-size: 1rem;
  line-height: 1.5;
  transition: color 0.3s ease;
}

.table-of-contents a:hover {
  color: var(--legal-primary);
  text-decoration: underline;
}


/* Document footer */
.legal-footer {
  background: var(--legal-bg-section);
  border-top: 1px solid var(--legal-border);
  padding: 3rem 8%;
  margin-top: 4rem;
}

.footer-actions {
  text-align: center;
  margin-bottom: 2rem;
}

.footer-actions .btn {
  padding: 0.75rem 2rem;
  font-weight: 500;
  border-radius: 4px;
  transition: all 0.3s ease;
  margin: 0 0.5rem;
  font-size: 1rem;
}

.footer-actions .btn-primary {
  background: var(--legal-primary);
  border: 1px solid var(--legal-primary);
  color: white;
}

.footer-actions .btn-primary:hover {
  background: var(--legal-secondary);
  border-color: var(--legal-secondary);
}

.footer-actions .btn-outline-primary {
  border: 1px solid var(--legal-accent);
  color: var(--legal-accent);
  background: transparent;
}

.footer-actions .btn-outline-primary:hover {
  background: var(--legal-accent);
  color: white;
}

.footer-contact {
  text-align: center;
  color: var(--legal-text-muted);
  font-size: 0.95rem;
}

.footer-contact a {
  color: var(--legal-accent);
  text-decoration: none;
}

.footer-contact a:hover {
  text-decoration: underline;
}

/* Responsive design */
@media (max-width: 1024px) {
  .legal-header {
    padding: 3rem 5% 2.5rem 5%;
  }
  
  .legal-content {
    padding: 0 5%;
  }
  
  .table-of-contents {
    margin: 3rem 5% 4rem 5%;
  }
  
  .table-of-contents ul {
    columns: 1;
  }
  
  .legal-footer {
    padding: 3rem 5%;
  }
}

@media (max-width: 768px) {
  .legal-header {
    padding: 2.5rem 4% 2rem 4%;
  }
  
  .legal-title {
    font-size: 2.5rem;
  }
  
  .legal-subtitle {
    font-size: 1.1rem;
  }
  
  .legal-content {
    padding: 0 4%;
  }
  
  .table-of-contents {
    margin: 2rem 4% 3rem 4%;
  }
  
  .legal-meta {
    flex-direction: column;
    gap: 1rem;
  }
  
  .legal-section h2 {
    font-size: 1.6rem;
  }
  
  .legal-section p {
    text-indent: 0;
  }
  
  .legal-footer {
    padding: 2.5rem 4%;
  }
  
  .footer-actions .btn {
    display: block;
    width: 100%;
    margin: 0.5rem 0;
  }
}

@media (max-width: 576px) {
  .legal-header {
    padding: 2rem 3% 1.5rem 3%;
  }
  
  .legal-title {
    font-size: 2rem;
  }
  
  .legal-content {
    padding: 0 3%;
  }
  
  .table-of-contents {
    margin: 2rem 3% 3rem 3%;
    padding: 1.5rem;
  }
  
  .legal-section ul, .legal-section ol {
    padding-left: 2rem;
  }
  
  .info-box,
  .warning-box,
  .contact-info {
    padding: 1.5rem;
  }
  
  .legal-footer {
    padding: 2rem 3%;
  }
}

/* Print styles */
@media print {
  .legal-container {
    font-size: 12pt;
    line-height: 1.6;
  }
  
  .legal-header {
    padding: 2rem 0 1.5rem 0;
    border-bottom: 2pt solid #000;
  }
  
  .legal-title {
    font-size: 24pt;
    color: #000;
  }
  
  .legal-subtitle {
    font-size: 14pt;
    color: #333;
  }
  
  .legal-content {
    padding: 0;
  }
  
  .table-of-contents {
    margin: 1rem 0;
    padding: 1rem;
    background: #f9f9f9;
  }
  
  .legal-section h2 {
    font-size: 16pt;
    color: #000;
    page-break-after: avoid;
  }
  
  .legal-section {
    page-break-inside: avoid;
  }
  
  .info-box,
  .warning-box {
    background: #f9f9f9;
    border: 1pt solid #ccc;
  }
  
  .legal-footer {
    display: none;
  }
  
  a {
    color: #000;
    text-decoration: underline;
  }
}
