/* Modal overlay */
.terms-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #f6f6f672;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(10px);
  }
  
  .terms-modal-overlay.show {
    opacity: 1;
    visibility: visible;
  }
  
  /* Modal container */
  .terms-modal {
    background-color: white;
    border-radius: 12px;
    max-width: 800px;
    width: 90%;
    max-height: 85vh;
    position: relative;
    transform: scale(0.95);
    transition: transform 0.3s ease;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
  }
  
  .terms-modal-overlay.show .terms-modal {
    transform: scale(1);
  }
  
  /* Modal header */
  .terms-modal-header {
    padding: 24px 24px 0 24px;
    border-bottom: 1px solid #e5e7eb;
    position: relative;
  }
  
  .terms-modal-title {
    font-size: 24px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 16px 0;
  }
  
  .terms-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #6b7280;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: background-color 0.2s ease, color 0.2s ease;
  }
  
  .terms-modal-close:hover {
    background-color: #f3f4f6;
    color: #374151;
  }
  
  /* Tab navigation */
  .terms-modal-tabs {
    display: flex;
    border-bottom: 1px solid #e5e7eb;
  }
  
  .terms-modal-tab {
    flex: 1;
    padding: 12px 24px;
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease;
    border-bottom: 2px solid transparent;
    position: relative;
  }
  
  .terms-modal-tab:hover {
    color: #374151;
  }
  
  .terms-modal-tab.active {
    color: #4d20a1;
    border-bottom-color: #4d20a1;
  }
  
  /* Modal content */
  .terms-modal-content {
    height: 60vh;
    overflow-y: auto;
    padding: 0;
  }
  
  .terms-modal-tab-content {
    display: none;
    padding: 24px;
    line-height: 1.6;
    color: #374151;
  }
  
  .terms-modal-tab-content.active {
    display: block;
  }
  
  /* Typography within content */
  .terms-modal-tab-content h1,
  .terms-modal-tab-content h2,
  .terms-modal-tab-content h3 {
    color: #111827;
    font-weight: 600;
    margin-top: 24px;
    margin-bottom: 12px;
  }
  
  .terms-modal-tab-content h1 {
    font-size: 20px;
    margin-top: 0;
  }
  
  .terms-modal-tab-content h2 {
    font-size: 18px;
  }
  
  .terms-modal-tab-content h3 {
    font-size: 16px;
  }
  
  .terms-modal-tab-content p {
    margin-bottom: 16px;
  }
  
  .terms-modal-tab-content strong {
    font-weight: 600;
    color: #111827;
  }
  
  /* Table styles for GDPR content */
  .terms-modal-tab-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 14px;
  }
  
  .terms-modal-tab-content table th,
  .terms-modal-tab-content table td {
    border: 1px solid #e5e7eb;
    padding: 12px;
    text-align: left;
    vertical-align: top;
  }
  
  .terms-modal-tab-content table th {
    background-color: #f9fafb;
    font-weight: 600;
    color: #111827;
  }
  
  .terms-modal-tab-content table td {
    background-color: white;
  }
  
  /* Scrollbar styling */
  .terms-modal-content::-webkit-scrollbar {
    width: 6px;
  }
  
  .terms-modal-content::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
  }
  
  .terms-modal-content::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
  }
  
  .terms-modal-content::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
  }
  
  /* Mobile responsiveness */
  @media (max-width: 768px) {
    .terms-modal {
      width: 95%;
      max-height: 90vh;
      margin: 20px;
    }
    
    .terms-modal-header {
      padding: 16px 16px 0 16px;
    }
    
    .terms-modal-title {
      font-size: 20px;
      margin-right: 40px;
    }
    
    .terms-modal-tab-content {
      padding: 16px;
    }
    
    .terms-modal-content {
      height: 70vh;
    }
    
    .terms-modal-tab {
      padding: 12px 16px;
      font-size: 13px;
    }
  }