ideas = {

    gp_immigration_policy = {
        law = yes
        use_list_view = yes

       open_borders = {

         available = {
            NOT = {
                has_government = fascism
            }
         }

         level = 6

         modifier = {
            political_power_factor = -0.05
            stability_factor = -0.10
            monthly_population = 0.30
            research_speed_factor = 0.05
            production_factory_efficiency_gain_factor = 0.10
            production_factory_max_efficiency_factor = 0.10
         }

         ai_will_do = {

            base = 10
           
            modifier = {
                has_government = democratic 
                add = 40
            }
            
            modifier = {
                has_government = communism
                add = 50
            }

            modifier = {
                factor = 3
            }

         }

         cancel_if_invalid = yes
       }

       citizenship = {
        available = {
            NOT = {
                has_government = fascism
            }
        }

        level = 5

        modifier = {
            political_power_factor = -0.025
            stability_factor = -0.05
            monthly_population = 0.15
            research_speed_factor = 0.025
            production_factory_efficiency_gain_factor = 0.05
            production_factory_max_efficiency_factor = 0.05
        }

        ai_will_do = {

            base = 20

            modifier = {
                has_government = democratic
                add = 40
            }

            modifier = {
                factor = 3
            }
        }

        cancel_if_invalid = yes
        
       }

       limited_citizenship = {
        available = {

        }
        
        level = 4

        modifier = {
            monthly_population = 0.10
            research_speed_factor = 0.01
            production_factory_efficiency_gain_factor = 0.01
            production_factory_max_efficiency_factor = 0.01
        }

        ai_will_do = {
            base = 30

            modifier = {
                has_government = neutrality
                add = 30
            }

            modifier = {
                factor = 3
            }
        }

        cancel_if_invalid = no

        default = yes

       }

       strict_immigration_controls = {
        available = {
            NOT = {
             has_government = democratic
            }
        }

        level = 3

        modifier = {
            political_power_factor = 0.05
            stability_factor = 0.05
            monthly_population = 0.05
            drift_defence_factor = 0.10

            
        }

        ai_will_do = { 
            base = 10

            modifier = {
                has_government = neutrality
                add = 30
            }

            modifier = {
                has_government = fascism
                add = 60
            }

            modifier = {
                factor = 3
            }
        }

        cancel_if_invalid = yes

       }

       closed_borders = {
        available = {
            NOT = { 
                OR = {
                    has_government = democratic
                    has_government = communism
                }
            }
        }

        level = 2

        modifier = {
            political_power_factor = 0.05
            stability_factor = 0.10
            drift_defence_factor = 0.20
        }

        ai_will_do = {
            base = 5
            
            modifier = {
                has_government = fascism
                add = 80
            }

            modifier = {
                factor = 3
            }
        }

        cancel_if_invalid = yes
       }

       political_refugees = {
        available = {
            has_government = communism
        }

        level = 1

        modifier = {
            #consumer_goods_factor = 0.05
            political_power_gain = 0.1
            #monthly_population = 0.1
            #drift_defence_factor = 0.3
            weekly_manpower = 100
            communism_drift = 0.10
            research_speed_factor = 0.05

        }

        ai_will_do = {
            base = 30
            modifier = {
              has_government = communism
              add = 80
            }

            modifier = {
                factor = 3
            }
        }

        cancel_if_invalid = yes
       }
    }
}