/* ==========================================================================
   UDHAYAA TEXTILES — TERMS & CONDITIONS STYLES
   Minimalist-Industrial Commercial Contract Presentation
   ========================================================================== */

/* --- Anchor Scrolling Offset (Header Clearance) --- */
.legal-section {
  scroll-margin-top: 110px;
}

/* --- Table of Contents Active Spy & Transitions --- */
.toc-link {
  transition: all 0.2s ease-in-out;
  border-left: 2px solid transparent;
}

.toc-link:hover {
  color: #fe6b00;
  border-left-color: #fe6b00;
  padding-left: 1.25rem;
}

.toc-link.active {
  color: #000000;
  font-weight: 600;
  border-left-color: #fe6b00;
  background: rgba(254, 107, 0, 0.05);
  padding-left: 1.25rem;
}

/* --- Industrial Callout Card --- */
.industrial-callout {
  border-left: 4px solid #fe6b00;
  background: #fbf9f8;
  position: relative;
}

/* --- Commercial Tolerance Table --- */
.spec-table th {
  background-color: #1b1c1c;
  color: #ffffff;
  font-family: 'Montserrat', sans-serif;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  padding: 0.75rem 1rem;
}

.spec-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #cfc4c5;
  font-size: 0.875rem;
}

.spec-table tr:nth-child(even) td {
  background-color: #f5f3f3;
}

/* ==========================================================================
   PRINT STYLESHEET (PDF / Export Commercial Contracts)
   ========================================================================== */
@media print {
  /* Hide navigation, widgets, drawers, and buttons */
  #header-container,
  #footer-container,
  #whatsapp-container,
  .toc-sidebar,
  .no-print,
  .site-header,
  #mobile-menu,
  #mobile-backdrop {
    display: none !important;
  }

  body {
    background: #ffffff !important;
    color: #000000 !important;
    padding: 0 !important;
    font-size: 11pt !important;
    line-height: 1.5 !important;
  }

  main {
    padding-top: 0 !important;
  }

  .legal-content-grid {
    display: block !important;
    width: 100% !important;
  }

  .legal-card {
    border: 1px solid #cccccc !important;
    box-shadow: none !important;
    page-break-inside: avoid;
    break-inside: avoid;
    margin-bottom: 2rem !important;
    padding: 1.5rem !important;
  }

  h1, h2, h3, h4 {
    color: #000000 !important;
    page-break-after: avoid;
    break-after: avoid;
  }

  a {
    text-decoration: none !important;
    color: #000000 !important;
  }

  .print-header {
    display: block !important;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #000000;
  }
}
