// Общие стили для всех правовых и информационных страниц
.legal-page {
  min-height: calc(100vh - 200px);
  padding: 2rem 0;
  background-color: var(--bg-secondary);

  .legal-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2.5rem;
    background-color: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    animation: fadeIn 0.5s ease-in;

    h1 {
      font-size: 2.25rem;
      font-weight: 700;
      margin-bottom: 2rem;
      color: var(--text-primary);
      border-bottom: 3px solid var(--primary-color);
      padding-bottom: 1rem;
      position: relative;
      
      &::after {
        content: '';
        position: absolute;
        bottom: -3px;
        left: 0;
        width: 120px;
        height: 3px;
        background: var(--gradient-primary);
      }
    }

    h2 {
      font-size: 1.5rem;
      font-weight: 600;
      margin-top: 2.5rem;
      margin-bottom: 1rem;
      color: var(--primary-color);
      position: relative;
      padding-left: 1rem;
      
      &::before {
        content: '';
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 4px;
        height: 24px;
        background: var(--gradient-primary);
        border-radius: 2px;
      }
    }

    h3 {
      font-size: 1.25rem;
      font-weight: 600;
      margin-top: 1.5rem;
      margin-bottom: 0.75rem;
      color: var(--text-primary);
    }

    p {
      max-width: 70ch;
      line-height: 1.8;
      color: var(--text-secondary);
      margin-bottom: 1rem;
      font-size: 1rem;
    }

    ul, ol {
      max-width: 70ch;
      line-height: 1.8;
      color: var(--text-secondary);
      margin-bottom: 1.5rem;
      padding-left: 2rem;

      li {
        margin-bottom: 0.5rem;
        position: relative;
        
        &::marker {
          color: var(--primary-color);
        }
      }
    }

    ul {
      list-style-type: disc;
    }

    .legal-section {
      margin-bottom: 2.5rem;
      padding: 1.5rem;
      background: var(--bg-secondary);
      border-radius: var(--radius-md);
      border-left: 4px solid var(--primary-color);

      &:last-child {
        margin-bottom: 0;
      }
    }

    strong {
      color: var(--text-primary);
      font-weight: 600;
    }

    a {
      color: var(--primary-color);
      text-decoration: none;
      
      &:hover {
        text-decoration: underline;
      }
    }

    .highlight {
      background: linear-gradient(135deg, color-mix(in srgb, var(--primary-color) 10%, transparent) 0%, color-mix(in srgb, var(--secondary-color) 10%, transparent) 100%);
      padding: 1rem;
      border-radius: var(--radius-sm);
      border-left: 3px solid var(--accent-color);
      margin: 1.5rem 0;
    }

    .info-box {
      background: var(--bg-secondary);
      padding: 1.25rem;
      border-radius: var(--radius-md);
      margin: 1.5rem 0;
      border: 1px solid var(--border-color);
      
      &.success {
        border-left: 4px solid var(--success-color);
        background: rgba(16, 185, 129, 0.05);
      }
      
      &.warning {
        border-left: 4px solid var(--warning-color);
        background: rgba(245, 158, 11, 0.05);
      }
      
      &.info {
        border-left: 4px solid var(--info-color);
        background: rgba(59, 130, 246, 0.05);
      }
    }
  }

  @media (max-width: 768px) {
    padding: 1rem 0;

    .legal-container {
      padding: 1.5rem;
      margin: 0 1rem;
      border-radius: var(--radius-md);

      h1 {
        font-size: 1.75rem;
      }

      h2 {
        font-size: 1.25rem;
        padding-left: 0.75rem;
        
        &::before {
          width: 3px;
          height: 20px;
        }
      }

      h3 {
        font-size: 1.1rem;
      }

      p, ul, ol {
        font-size: 0.95rem;
      }

      .legal-section {
        padding: 1rem;
        
        &:hover {
          transform: none;
        }
      }
    }
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

// ========== novo STYLES ==========
// Modern card-based layout for novo theme

.novo-header {
  text-align: center;
  margin-bottom: 3rem;
  animation: fadeIn 0.6s ease-in;
  
  h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    border: none;
    padding-bottom: 0;
    
    &::after {
      display: none;
    }
  }
  
  .subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 400;
  }
}

.novo-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  animation: fadeIn 0.8s ease-in;
  
  .info-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal), background var(--transition-normal);
    
    &:hover {
      box-shadow: var(--shadow-md);
      transform: translateY(-4px);
      border-color: var(--primary-color);
    }
    
    &.wide {
      grid-column: span 2;
      
      @media (max-width: 968px) {
        grid-column: span 1;
      }
    }
    
    .card-icon {
      font-size: 2.5rem;
      margin-bottom: 1rem;
      display: block;
    }
    
    h3 {
      font-size: 1.3rem;
      font-weight: 600;
      color: var(--text-primary);
      margin: 0 0 1rem 0;
      padding: 0;
    }
    
    p {
      color: var(--text-secondary);
      line-height: 1.6;
      margin-bottom: 0.5rem;
      
      &:last-child {
        margin-bottom: 0;
      }
    }
    
    .note {
      font-size: 0.85rem;
      color: var(--text-light);
      font-style: italic;
    }
  }
}

.compact-list {
  list-style: none;
  padding: 0;
  
  li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    
    &::before {
      content: '✓';
      position: absolute;
      left: 0;
      color: var(--primary-color);
      font-weight: bold;
    }
  }
}

.features-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.75rem;
  
  .feature {
    padding: 0.75rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    text-align: center;
    font-weight: 500;
    color: var(--text-primary);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal), background var(--transition-normal);
    
    &:hover {
      background: var(--primary-color);
      color: white;
      transform: scale(1.05);
    }
  }
}

.process-steps-compact {
  p {
    padding: 0.75rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    margin-bottom: 0.75rem;
    border-left: 3px solid var(--primary-color);
    
    &:last-child {
      margin-bottom: 0;
    }
  }
}

.delivery-info,
.offices-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  
  .delivery-item,
  .office {
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    
    strong {
      display: block;
      color: var(--primary-color);
      font-size: 1.05rem;
      margin-bottom: 0.5rem;
    }
    
    p {
      margin: 0;
      font-size: 0.95rem;
    }
  }
}

.contacts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  
  .contact-item,
  .contact-link {
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    text-decoration: none;
    display: block;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal), background var(--transition-normal);
    
    &:hover {
      background: var(--primary-color);
      transform: translateY(-2px);
      box-shadow: var(--shadow-sm);
      
      *, strong, p, a, .contact-label, .contact-value {
        color: white !important;
      }
    }
    
    strong, .contact-label {
      display: block;
      color: var(--text-secondary);
      margin-bottom: 0.5rem;
      font-size: 0.85rem;
    }
    
    p, a, .contact-value {
      margin: 0;
      color: var(--text-primary);
      font-weight: 500;
    }
  }
}

.timeline {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  
  .timeline-item {
    flex: 1;
    text-align: center;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    position: relative;
    
    &::after {
      content: '→';
      position: absolute;
      right: -1.5rem;
      top: 50%;
      transform: translateY(-50%);
      color: var(--primary-color);
      font-size: 1.5rem;
    }
    
    &:last-child::after {
      display: none;
    }
    
    strong {
      display: block;
      font-size: 1.3rem;
      color: var(--primary-color);
      margin-bottom: 0.5rem;
    }
  }
}

.contact-email {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--gradient-primary);
  color: white !important;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 600;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), background var(--transition-normal);
  margin-top: 0.5rem;
  
  &:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    text-decoration: none;
  }
}

.support-note {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--text-light);
  text-align: center;
}

// Mobile responsiveness for novo
@media (max-width: 768px) {
  .novo-header h1 {
    font-size: 2rem;
  }
  
  .novo-cards {
    grid-template-columns: 1fr;
    gap: 1rem;
    
    .info-card {
      padding: 1.5rem;
      
      &.wide {
        grid-column: span 1;
      }
    }
  }
  
  .timeline {
    flex-direction: column;
    gap: 1rem;
    
    .timeline-item::after {
      content: '↓';
      right: auto;
      bottom: -1rem;
      top: auto;
      left: 50%;
      transform: translateX(-50%);
    }
  }
}
