Peruvian-Style Roast Chicken

Chicken:
3 garlic cloves, finely chopped
1 tablespoon ground cumin
1 tablespoon olive oil
1 tablespoon paprika
1/2 teaspoon freshly ground black pepper
1/2 teaspoon dried oregano
1 1/2 teaspoons kosher salt, divided
2 lemons
1 (4-4 1/2-pound) whole chicken
Green sauce:
1 cup (packed) cilantro leaves with tender stems
1–2 medium jalapeños, coarsely chopped
1 garlic clove, finely chopped
1 tablespoon extra-virgin olive oil
2 1/2 teaspoons fresh lime juice
1/4 teaspoon kosher salt
1/3 cup mayonnaise
Salad:
1 cucumber, cubed
1 firm-ripe avocado, cubed
3 scallions, thinly sliced
1 tablespoon plus 1 teaspoon fresh lime juice
1 tablespoon extra-virgin olive oil
3/4 teaspoon kosher salt
1/2 cup cilantro leaves with tender stems, coarsely chopped, plus more for serving

Roast the chicken:
Arrange rack in middle of oven; preheat to 400°F.
Mix garlic, cumin, oil, paprika, pepper, oregano, 1/2 tsp. salt,
and finely grated zest from 1 lemon in a medium bowl.
Quarter zested lemon; set aside 2 quarters.
Squeeze juice from 1 whole lemon and remaining 2 quarters to yield 2 Tbsp. juice; stir into spice mixture.
Place chicken breast side down on work surface.
Spatchcock chicken by cutting along both sides of backbone with kitchen shears.
Remove backbone; reserve for stock. Turn chicken breast side up and splay open.
Press down on breastbone with palms until you hear it crack and chicken is as flat as possible.
Pat chicken dry with paper towels. Rub chicken all over with 2 reserved lemon quarters.
Squeeze juice over bird, then rub skin all over with inside of rinds.
From both edges of cavity, loosen skin from breasts and thighs, being careful not to tear skin.
Using your fingers, gently spread 2 heaping Tbsp. spice mixture under skin.
Reserve remaining spice mixture), then season chicken all over with remaining 1 tsp. salt.
Transfer chicken, spread flat and skin side up, to a roasting pan or large skillet.
Roast chicken 20 minutes, then brush with spice mixture and pan juices.
Continue roasting, basting with spice mixture and pan juices every 20 minutes.
Roast until a thermometer inserted into thickest part of thigh registers 165ºF, 50-60 minutes total.
Transfer chicken to a cutting board and let rest 15 minutes, reserving pan juices.
Make the green sauce:
Purée cilantro, jalapeños, garlic, oil, lime juice, and salt in a blender until combined.
Add mayonnaise and purée until well blended.
Transfer to a small bowl, cover, and chill until ready to use.
Make the salad:
Gently toss cucumbers, avocado, scallions, lime juice, oil, salt, and 1/2 cup cilantro in a large bowl.
Sprinkle with more cilantro.
Carve chicken and transfer to a platter; baste with reserved pan juices.
Serve with green sauce and salad alongside.